49 : texture_registry_(std::make_shared<TextureRegistry>()),
50 preroll_context_{
51
52 .raster_cache = nullptr,
54 .view_embedder = nullptr,
55 .state_stack = preroll_state_stack_,
57 .surface_needs_readback = false,
58 .raster_time = raster_time_,
59 .ui_time = ui_time_,
60 .texture_registry = texture_registry_,
61 .has_platform_view = false,
62 .raster_cached_entries = &cacheable_items_,
63
64 },
65 paint_context_{
66
69 .gr_context = nullptr,
70 .view_embedder = nullptr,
71 .raster_time = raster_time_,
72 .ui_time = ui_time_,
73 .texture_registry = texture_registry_,
74 .raster_cache = nullptr,
75
76 },
77 display_list_builder_(k_dl_bounds_),
78 display_list_paint_context_{
79
81 .canvas = &display_list_builder_,
82 .gr_context = nullptr,
83 .view_embedder = nullptr,
84 .raster_time = raster_time_,
85 .ui_time = ui_time_,
86 .texture_registry = texture_registry_,
87 .raster_cache = nullptr,
88
89 } {
93 display_list_state_stack_.
set_delegate(&display_list_builder_);
94 }
static const SkMatrix & I()
void set_preroll_delegate(const SkRect &cull_rect, const SkMatrix &matrix)
void set_delegate(DlCanvas *canvas)
MockCanvas & mock_canvas()
sk_sp< SkColorSpace > mock_color_space()
void use_null_raster_cache()
Use no raster cache in the preroll_context() and paint_context() structures.
static constexpr SkRect kGiantRect
LayerStateStack & state_stack
GrDirectContext * gr_context