AppendQuadsData* append_quads_data) {
viz::SharedQuadState* shared_quad_state =
render_pass->CreateAndAppendSharedQuadState();
- PopulateSharedQuadState(shared_quad_state, true);
- AppendDebugBorderQuad(render_pass, gfx::Rect(bounds()), shared_quad_state,
- append_quads_data);
+ absl::optional<gfx::Rect> clip_rect;
+ if (draw_properties().is_clipped) {
+ clip_rect = draw_properties().clip_rect;
+ }
+
+ shared_quad_state->SetAll(draw_properties().target_space_transform, gfx::Rect(bounds()),
+ draw_properties().visible_layer_rect,
+ draw_properties().mask_filter_info, clip_rect, true,
+ draw_properties().opacity,
+ SkBlendMode::kSrc,
+ GetSortingContextId(), static_cast<uint32_t>(id()),
+ draw_properties().is_fast_rounded_corner);
AppendSolidQuads(render_pass, draw_properties().occlusion_in_content_space,
shared_quad_state, gfx::Rect(bounds()), background_color().toSkColor(),