Searched refs:layer_rect (Results 1 - 25 of 33) sorted by relevance

12

/external/chromium_org/cc/resources/
H A Dcontent_layer_updater.cc50 gfx::Rect layer_rect = content_rect; local
56 layer_rect = gfx::ScaleToEnclosingRect(
61 layer_rect.x(), layer_rect.y(), layer_rect.width(), layer_rect.height());
73 painter_->Paint(canvas, layer_rect, &opaque_layer_rect);
H A Dpicture_unittest.cc27 gfx::Rect layer_rect(100, 100);
50 content_layer_client.add_draw_rect(layer_rect, red_paint);
51 scoped_refptr<Picture> one_rect_picture = Picture::Create(layer_rect);
64 DrawPicture(one_rect_buffer, layer_rect, one_rect_picture);
66 DrawPicture(one_rect_buffer_check, layer_rect, one_rect_picture_check);
77 scoped_refptr<Picture> two_rect_picture = Picture::Create(layer_rect);
91 DrawPicture(two_rect_buffer, layer_rect, two_rect_picture);
93 DrawPicture(two_rect_buffer_check, layer_rect, two_rect_picture_check);
104 gfx::Rect layer_rect(2048, 2048);
136 scoped_refptr<Picture> picture = Picture::Create(layer_rect);
[all...]
H A Dpicture.h46 static scoped_refptr<Picture> Create(gfx::Rect layer_rect);
87 PixelRefIterator(gfx::Rect layer_rect, const Picture* picture);
123 explicit Picture(gfx::Rect layer_rect);
127 gfx::Rect layer_rect,
132 gfx::Rect layer_rect,
H A Dpicture.cc84 scoped_refptr<Picture> Picture::Create(gfx::Rect layer_rect) { argument
85 return make_scoped_refptr(new Picture(layer_rect));
88 Picture::Picture(gfx::Rect layer_rect) argument
89 : layer_rect_(layer_rect),
90 cell_size_(layer_rect.size()) {
110 gfx::Rect layer_rect(skpicture->width(), skpicture->height());
113 return make_scoped_refptr(new Picture(skpicture, layer_rect, opaque_rect));
131 if (!value->Get("params.layer_rect", &layer_rect_value))
134 gfx::Rect layer_rect;
135 if (!MathUtil::FromValue(layer_rect_value, &layer_rect))
154 Picture(SkPicture* picture, gfx::Rect layer_rect, gfx::Rect opaque_rect) argument
163 Picture(const skia::RefPtr<SkPicture>& picture, gfx::Rect layer_rect, gfx::Rect opaque_rect, const PixelRefMap& pixel_refs) argument
393 gfx::Rect layer_rect = picture->layer_rect_; local
[all...]
H A Dpicture_pile_impl.cc154 gfx::Rect layer_rect = gfx::ScaleToEnclosingRect( local
172 for (TilingData::Iterator tile_iter(&tiling_, layer_rect, include_borders);
297 gfx::Rect layer_rect(tiling_.total_size());
299 if (layer_rect.IsEmpty())
303 layer_rect.width(),
304 layer_rect.height(),
307 RasterToBitmap(canvas, layer_rect, 1.0, NULL);
328 gfx::Rect layer_rect = gfx::ScaleToEnclosingRect( local
331 layer_rect.Intersect(gfx::Rect(tiling_.total_size()));
335 layer_rect
[all...]
H A Dpicture_pile_base.cc192 gfx::Rect layer_rect = gfx::ScaleToEnclosingRect(
194 layer_rect.Intersect(gfx::Rect(tiling_.total_size()));
197 if (recorded_viewport_.Contains(layer_rect)) {
199 DCHECK(CanRasterSlowTileCheck(layer_rect));
203 return CanRasterSlowTileCheck(layer_rect);
207 const gfx::Rect& layer_rect) const {
209 for (TilingData::Iterator tile_iter(&tiling_, layer_rect, include_borders);
235 gfx::Rect layer_rect(tiling_.total_size());
238 for (TilingData::Iterator tile_iter(&tiling_, layer_rect, include_borders);
H A Dpicture_pile_unittest.cc27 bool CanRasterLayerRect(const gfx::Rect& layer_rect) { argument
28 return CanRaster(1.f, layer_rect);
357 Update(layer_rect(), viewport);
381 Update(gfx::Rect(), layer_rect());
385 Update(gfx::Rect(gfx::Rect(0, 0, 1, 1)), layer_rect());
H A Dpicture_pile_base.h97 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const;
/external/chromium_org/cc/trees/
H A Dlayer_tree_host_pixeltest_on_demand_raster.cc61 explicit BlueYellowLayerClient(gfx::Rect layer_rect) argument
62 : layer_rect_(layer_rect) {}
93 gfx::Rect layer_rect(200, 200);
94 BlueYellowLayerClient client(layer_rect);
99 layer->SetBounds(layer_rect.size());
100 layer->SetPosition(layer_rect.origin());
H A Dquad_culler_unittest.cc55 gfx::Rect layer_rect,
64 tiler->SetBounds(layer_rect.size());
70 layer->draw_properties().visible_content_rect = layer_rect;
73 layer->SetBounds(layer_rect.size());
74 layer->SetContentBounds(layer_rect.size());
53 MakeLayer(TiledLayerImpl* parent, const gfx::Transform& draw_transform, gfx::Rect layer_rect, float opacity, bool opaque, gfx::Rect layer_opaque_rect, LayerImplList& surface_layer_list) argument
H A Dlayer_tree_host_impl.cc661 gfx::Rect layer_rect = local
667 shared_quad_state, layer_rect, screen_background_color, false);
674 gfx::Rect layer_rect = local
680 layer_rect,
681 layer_rect,
684 gfx::PointF(layer_rect.x() / overhang_resource_scaled_size.width(),
685 layer_rect.y() / overhang_resource_scaled_size.height()),
686 gfx::PointF(layer_rect.right() /
688 layer_rect.bottom() /
H A Dlayer_tree_host_impl_unittest.cc3079 gfx::Rect layer_rect(viewport_size_);
3080 child_->SetPosition(layer_rect.origin());
3081 child_->SetBounds(layer_rect.size());
3082 child_->SetContentBounds(layer_rect.size());
3083 child_->SetQuadRect(gfx::Rect(layer_rect.size()));
3084 child_->SetQuadVisibleRect(gfx::Rect(layer_rect.size()));
3100 gfx::Rect layer_rect(0, 0, 0, 0);
3101 child_->SetPosition(layer_rect.origin());
3102 child_->SetBounds(layer_rect.size());
3103 child_->SetContentBounds(layer_rect
[all...]
/external/chromium_org/cc/test/
H A Dskia_common.cc62 gfx::Rect layer_rect,
66 layer_rect.width(),
67 layer_rect.height());
71 canvas.clipRect(gfx::RectToSkRect(layer_rect));
72 picture->Raster(&canvas, NULL, layer_rect, 1.0f);
61 DrawPicture(unsigned char* buffer, gfx::Rect layer_rect, scoped_refptr<Picture> picture) argument
H A Dskia_common.h56 gfx::Rect layer_rect,
/external/chromium_org/skia/ext/
H A Dlazy_pixel_ref_utils_unittest.cc143 SkCanvas* StartRecording(SkPicture* picture, gfx::Rect layer_rect) { argument
145 layer_rect.width(),
146 layer_rect.height(),
151 canvas->translate(-layer_rect.x(), -layer_rect.y());
153 layer_rect.x(), layer_rect.y(), layer_rect.width(), layer_rect.height()));
166 gfx::Rect layer_rect(
[all...]
/external/chromium_org/cc/layers/
H A Dscrollbar_layer_impl_base.cc38 gfx::RectF layer_rect) const {
40 // layer_rect here might be in coordinates of the containing layer.
41 gfx::RectF content_rect = gfx::ScaleRect(layer_rect,
H A Dpainted_scrollbar_layer.cc151 gfx::Rect layer_rect) const {
153 // layer_rect here might be in coordinates of the containing layer.
155 layer_rect, contents_scale_y(), contents_scale_y());
233 gfx::Rect layer_rect = gfx::ScaleToEnclosingRect( local
235 SkRect layer_skrect = RectToSkRect(layer_rect);
242 scrollbar_->PaintPart(&skcanvas, part, layer_rect);
H A Dpicture_layer.cc73 void PictureLayer::SetNeedsDisplayRect(const gfx::RectF& layer_rect) { argument
74 gfx::Rect rect = gfx::ToEnclosedRect(layer_rect);
80 Layer::SetNeedsDisplayRect(layer_rect);
H A Dpicture_layer.h32 virtual void SetNeedsDisplayRect(const gfx::RectF& layer_rect) OVERRIDE;
H A Dscrollbar_layer_impl_base.h56 gfx::Rect ScrollbarLayerRectToContentRect(gfx::RectF layer_rect) const;
H A Dpainted_scrollbar_layer.h65 gfx::Rect ScrollbarLayerRectToContentRect(gfx::Rect layer_rect) const;
H A Dtiled_layer_unittest.cc1891 gfx::Rect layer_rect(0, 0, 30, 31);
1892 layer->SetPosition(layer_rect.origin());
1893 layer->SetBounds(layer_rect.size());
1917 EXPECT_RECT_EQ(layer_rect, layer->tracking_layer_painter()->PaintedRect());
1927 gfx::Rect layer_rect(0, 0, 30, 31);
1928 layer->SetPosition(layer_rect.origin());
1929 layer->SetBounds(layer_rect.size());
1949 layer->SetNeedsDisplayRect(layer_rect);
1952 EXPECT_RECT_EQ(layer_rect, layer->tracking_layer_painter()->PaintedRect());
H A Dlayer.h429 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const;
H A Dlayer.cc211 gfx::Rect Layer::LayerRectToContentRect(const gfx::RectF& layer_rect) const {
213 gfx::ScaleRect(layer_rect, contents_scale_x(), contents_scale_y());
/external/chromium-trace/trace-viewer/src/cc/
H A Dpicture.js103 layer_rect: this.args.params.layerRect,
133 layer_rect: this.args.params.layerRect,

Completed in 1023 milliseconds

12