[Impeller] Disable the offscreen layer checkerboard drawing function on Impeller. (flutter/engine#42221)

This function creates a Skia bitmap that can not be rendered by Impeller.

See https://github.com/flutter/flutter/issues/127080
This commit is contained in:
Jason Simmons
2023-05-24 10:11:01 -07:00
committed by GitHub
parent 072ef18be0
commit a5f4c7ffba

View File

@@ -111,7 +111,9 @@ void LayerTree::Paint(CompositorContext::ScopedFrame& frame,
}
LayerStateStack state_stack;
if (checkerboard_offscreen_layers_) {
// DrawCheckerboard is not supported on Impeller.
if (checkerboard_offscreen_layers_ && !frame.aiks_context()) {
state_stack.set_checkerboard_func(DrawCheckerboard);
}