21 bool render_to_surface =
true);
27 bool IsValid()
override;
39 bool render_to_surface_ =
true;
40 bool disable_partial_repaint_ =
false;
44 std::map<uintptr_t, SkIRect> damage_;
47 std::unique_ptr<SurfaceFrame> AcquireFrame(
const SkISize& size)
override;
50 SkMatrix GetRootTransformation()
const override;
56 std::unique_ptr<GLContextResult> MakeRenderContextCurrent()
override;
59 bool AllowsDrawingWhenGpuDisabled()
const override;
61 std::unique_ptr<SurfaceFrame> AcquireFrameFromCAMetalLayer(
64 std::unique_ptr<SurfaceFrame> AcquireFrameFromMTLTexture(
67 void PrecompileKnownSkSLsIfNecessary();