Lines Matching refs:layer

66 void DebugRectHistory::SavePaintRects(LayerImpl* layer) {
67 // We would like to visualize where any layer's paint rect (update rect) has
68 // changed, regardless of whether this layer is skipped for actual drawing or
72 if (!layer->update_rect().IsEmpty() && layer->DrawsContent()) {
73 float width_scale = layer->content_bounds().width() /
74 static_cast<float>(layer->bounds().width());
75 float height_scale = layer->content_bounds().height() /
76 static_cast<float>(layer->bounds().height());
78 gfx::ScaleRect(layer->update_rect(), width_scale, height_scale);
81 MathUtil::MapClippedRect(layer->screen_space_transform(),
85 for (unsigned i = 0; i < layer->children().size(); ++i)
86 SavePaintRects(layer->children()[i]);
102 LayerImpl* layer = layer_list[layer_index];
105 layer, render_surface_layer->id()))
108 if (layer->LayerIsAlwaysDamaged())
111 if (layer->LayerPropertyChanged()) {
115 layer->screen_space_transform(),
116 gfx::RectF(gfx::PointF(), layer->content_bounds()))));
177 void DebugRectHistory::SaveTouchEventHandlerRects(LayerImpl* layer) {
179 layer,
184 void DebugRectHistory::SaveTouchEventHandlerRectsCallback(LayerImpl* layer) {
185 for (Region::Iterator iter(layer->touch_event_handler_region());
189 layer->contents_scale_x(),
190 layer->contents_scale_y());
193 layer->screen_space_transform(),
198 void DebugRectHistory::SaveWheelEventHandlerRects(LayerImpl* layer) {
200 layer,
205 void DebugRectHistory::SaveWheelEventHandlerRectsCallback(LayerImpl* layer) {
206 if (!layer->have_wheel_event_handlers())
209 gfx::RectF wheel_rect = gfx::RectF(layer->content_bounds());
210 wheel_rect.Scale(layer->contents_scale_x(), layer->contents_scale_y());
213 layer->screen_space_transform(),
217 void DebugRectHistory::SaveNonFastScrollableRects(LayerImpl* layer) {
219 layer,
224 void DebugRectHistory::SaveNonFastScrollableRectsCallback(LayerImpl* layer) {
225 for (Region::Iterator iter(layer->non_fast_scrollable_region());
229 layer->contents_scale_x(),
230 layer->contents_scale_y());
233 layer->screen_space_transform(),