Home
last modified time | relevance | path

Searched refs:layer_rect (Results 1 – 25 of 31) sorted by relevance

12

/external/chromium_org/cc/resources/
Dpicture_unittest.cc26 gfx::Rect layer_rect(100, 100); in TEST() local
52 content_layer_client.add_draw_rect(layer_rect, red_paint); in TEST()
56 Picture::Create(layer_rect, in TEST()
71 DrawPicture(one_rect_buffer, layer_rect, one_rect_picture); in TEST()
73 DrawPicture(one_rect_buffer_check, layer_rect, one_rect_picture_check); in TEST()
88 Picture::Create(layer_rect, in TEST()
104 DrawPicture(two_rect_buffer, layer_rect, two_rect_picture); in TEST()
106 DrawPicture(two_rect_buffer_check, layer_rect, two_rect_picture_check); in TEST()
118 gfx::Rect layer_rect(2048, 2048); in TEST() local
151 scoped_refptr<Picture> picture = Picture::Create(layer_rect, in TEST()
[all …]
Dcontent_layer_updater.cc53 gfx::Rect layer_rect = content_rect; in PaintContents() local
58 layer_rect = gfx::ScaleToEnclosingRect( in PaintContents()
63 layer_rect.x(), layer_rect.y(), layer_rect.width(), layer_rect.height()); in PaintContents()
75 painter_->Paint(canvas, layer_rect, &opaque_layer_rect); in PaintContents()
Dpicture.cc87 const gfx::Rect& layer_rect, in Create() argument
93 scoped_refptr<Picture> picture = make_scoped_refptr(new Picture(layer_rect)); in Create()
103 Picture::Picture(const gfx::Rect& layer_rect) in Picture() argument
104 : layer_rect_(layer_rect), in Picture()
105 cell_size_(layer_rect.size()) { in Picture()
125 gfx::Rect layer_rect(skpicture->width(), skpicture->height()); in CreateFromSkpValue() local
128 return make_scoped_refptr(new Picture(skpicture, layer_rect, opaque_rect)); in CreateFromSkpValue()
149 gfx::Rect layer_rect; in CreateFromValue() local
150 if (!MathUtil::FromValue(layer_rect_value, &layer_rect)) in CreateFromValue()
166 return make_scoped_refptr(new Picture(skpicture, layer_rect, opaque_rect)); in CreateFromValue()
[all …]
Dpicture.h58 const gfx::Rect& layer_rect,
99 PixelRefIterator(const gfx::Rect& layer_rect, const Picture* picture);
135 explicit Picture(const gfx::Rect& layer_rect);
139 const gfx::Rect& layer_rect,
144 const gfx::Rect& layer_rect,
Dpicture_pile_base.cc198 gfx::Rect layer_rect = gfx::ScaleToEnclosingRect( in CanRaster() local
200 layer_rect.Intersect(tiling_.tiling_rect()); in CanRaster()
203 if (recorded_viewport_.Contains(layer_rect)) { in CanRaster()
205 DCHECK(CanRasterSlowTileCheck(layer_rect)); in CanRaster()
209 return CanRasterSlowTileCheck(layer_rect); in CanRaster()
213 const gfx::Rect& layer_rect) const { in CanRasterSlowTileCheck()
215 for (TilingData::Iterator tile_iter(&tiling_, layer_rect, include_borders); in CanRasterSlowTileCheck()
Dpicture_pile_impl.cc172 gfx::Rect layer_rect = gfx::ScaleToEnclosingRect( in CoalesceRasters() local
197 for (TilingData::Iterator tile_iter(&tiling_, layer_rect, include_borders); in CoalesceRasters()
374 gfx::Rect layer_rect = gfx::ScaleToEnclosingRect( in AnalyzeInRect() local
377 layer_rect.Intersect(tiling_.tiling_rect()); in AnalyzeInRect()
379 skia::AnalysisCanvas canvas(layer_rect.width(), layer_rect.height()); in AnalyzeInRect()
381 RasterForAnalysis(&canvas, layer_rect, 1.0f, stats_instrumentation); in AnalyzeInRect()
Dpicture_pile_base.h100 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const;
Dpicture_pile_unittest.cc27 bool CanRasterLayerRect(const gfx::Rect& layer_rect) { in CanRasterLayerRect() argument
28 return CanRaster(1.f, layer_rect); in CanRasterLayerRect()
Dpicture_layer_tiling.cc186 gfx::Rect layer_rect = iter.rect(); in DoInvalidate() local
188 gfx::ScaleToEnclosingRect(layer_rect, contents_scale_); in DoInvalidate()
/external/chromium_org/skia/ext/
Dpixel_ref_utils_unittest.cc75 SkCanvas* StartRecording(SkPictureRecorder* recorder, gfx::Rect layer_rect) { in StartRecording() argument
77 recorder->beginRecording(layer_rect.width(), layer_rect.height()); in StartRecording()
80 canvas->translate(-layer_rect.x(), -layer_rect.y()); in StartRecording()
82 layer_rect.x(), layer_rect.y(), layer_rect.width(), layer_rect.height())); in StartRecording()
95 gfx::Rect layer_rect(0, 0, 256, 256); in TEST() local
98 SkCanvas* canvas = StartRecording(&recorder, layer_rect); in TEST()
134 gfx::Rect layer_rect(0, 0, 256, 256); in TEST() local
137 SkCanvas* canvas = StartRecording(&recorder, layer_rect); in TEST()
187 gfx::Rect layer_rect(0, 0, 256, 256); in TEST() local
190 SkCanvas* canvas = StartRecording(&recorder, layer_rect); in TEST()
[all …]
/external/chromium_org/cc/trees/
Dlayer_tree_host_pixeltest_on_demand_raster.cc63 explicit BlueYellowLayerClient(gfx::Rect layer_rect) in BlueYellowLayerClient() argument
64 : layer_rect_(layer_rect) {} in BlueYellowLayerClient()
99 gfx::Rect layer_rect(200, 200); in RunOnDemandRasterPixelTest() local
100 BlueYellowLayerClient client(layer_rect); in RunOnDemandRasterPixelTest()
104 layer->SetBounds(layer_rect.size()); in RunOnDemandRasterPixelTest()
105 layer->SetPosition(layer_rect.origin()); in RunOnDemandRasterPixelTest()
Dlayer_tree_host_impl_unittest.cc3827 gfx::Rect layer_rect(viewport_size_); in TestLayerCoversFullViewport() local
3828 child_->SetPosition(layer_rect.origin()); in TestLayerCoversFullViewport()
3829 child_->SetBounds(layer_rect.size()); in TestLayerCoversFullViewport()
3830 child_->SetContentBounds(layer_rect.size()); in TestLayerCoversFullViewport()
3831 child_->SetQuadRect(gfx::Rect(layer_rect.size())); in TestLayerCoversFullViewport()
3832 child_->SetQuadVisibleRect(gfx::Rect(layer_rect.size())); in TestLayerCoversFullViewport()
3848 gfx::Rect layer_rect(0, 0, 0, 0); in TestEmptyLayer() local
3849 child_->SetPosition(layer_rect.origin()); in TestEmptyLayer()
3850 child_->SetBounds(layer_rect.size()); in TestEmptyLayer()
3851 child_->SetContentBounds(layer_rect.size()); in TestEmptyLayer()
[all …]
/external/chromium_org/cc/layers/
Dpainted_scrollbar_layer.cc171 const gfx::Rect& layer_rect) const { in ScrollbarLayerRectToContentRect()
175 layer_rect, contents_scale_x(), contents_scale_y()); in ScrollbarLayerRectToContentRect()
245 const gfx::Rect& layer_rect, in RasterizeScrollbarPart() argument
249 DCHECK(!layer_rect.size().IsEmpty()); in RasterizeScrollbarPart()
256 content_rect.width() / static_cast<float>(layer_rect.width()); in RasterizeScrollbarPart()
258 content_rect.height() / static_cast<float>(layer_rect.height()); in RasterizeScrollbarPart()
262 skcanvas.translate(SkFloatToScalar(-layer_rect.x()), in RasterizeScrollbarPart()
263 SkFloatToScalar(-layer_rect.y())); in RasterizeScrollbarPart()
265 SkRect layer_skrect = RectToSkRect(layer_rect); in RasterizeScrollbarPart()
272 scrollbar_->PaintPart(&skcanvas, part, layer_rect); in RasterizeScrollbarPart()
Dpicture_layer.cc78 void PictureLayer::SetNeedsDisplayRect(const gfx::RectF& layer_rect) { in SetNeedsDisplayRect() argument
79 gfx::Rect rect = gfx::ToEnclosedRect(layer_rect); in SetNeedsDisplayRect()
85 Layer::SetNeedsDisplayRect(layer_rect); in SetNeedsDisplayRect()
98 gfx::Rect layer_rect = gfx::Rect(paint_properties().bounds); in Update() local
101 pile_->tiling_rect() == layer_rect && pending_invalidation_.IsEmpty()) { in Update()
112 pile_->SetTilingRect(layer_rect); in Update()
Dpainted_scrollbar_layer.h68 gfx::Rect ScrollbarLayerRectToContentRect(const gfx::Rect& layer_rect) const;
81 UIResourceBitmap RasterizeScrollbarPart(const gfx::Rect& layer_rect,
Dscrollbar_layer_impl_base.cc105 const gfx::RectF& layer_rect) const { in ScrollbarLayerRectToContentRect()
108 gfx::RectF content_rect = gfx::ScaleRect(layer_rect, in ScrollbarLayerRectToContentRect()
Dpicture_layer.h32 virtual void SetNeedsDisplayRect(const gfx::RectF& layer_rect) OVERRIDE;
Dscrollbar_layer_impl_base.h69 gfx::Rect ScrollbarLayerRectToContentRect(const gfx::RectF& layer_rect) const;
Dtiled_layer_unittest.cc1754 gfx::Rect layer_rect(0, 0, 30, 31); in TEST_F() local
1755 layer->SetPosition(layer_rect.origin()); in TEST_F()
1756 layer->SetBounds(layer_rect.size()); in TEST_F()
1780 EXPECT_RECT_EQ(layer_rect, layer->tracking_layer_painter()->PaintedRect()); in TEST_F()
1790 gfx::Rect layer_rect(0, 0, 30, 31); in TEST_F() local
1791 layer->SetPosition(layer_rect.origin()); in TEST_F()
1792 layer->SetBounds(layer_rect.size()); in TEST_F()
1812 layer->SetNeedsDisplayRect(layer_rect); in TEST_F()
1815 EXPECT_RECT_EQ(layer_rect, layer->tracking_layer_painter()->PaintedRect()); in TEST_F()
Dtexture_layer_unittest.cc193 const gfx::Rect layer_rect(layer_bounds); in TEST_F() local
194 const Region layer_region(layer_rect); in TEST_F()
198 layer->draw_properties().visible_content_rect = layer_rect; in TEST_F()
Dlayer.cc201 gfx::Rect Layer::LayerRectToContentRect(const gfx::RectF& layer_rect) const { in LayerRectToContentRect()
203 gfx::ScaleRect(layer_rect, contents_scale_x(), contents_scale_y()); in LayerRectToContentRect()
/external/chromium_org/cc/test/
Dskia_common.cc16 const gfx::Rect& layer_rect, in DrawPicture() argument
19 SkImageInfo::MakeN32Premul(layer_rect.width(), layer_rect.height()); in DrawPicture()
23 canvas.clipRect(gfx::RectToSkRect(layer_rect)); in DrawPicture()
Dskia_common.h23 const gfx::Rect& layer_rect,
/external/chromium-trace/trace-viewer/src/cc/
Dpicture.js103 layer_rect: this.args.params.layerRect, property
133 layer_rect: this.args.params.layerRect, property
/external/pdfium/core/src/fpdfapi/fpdf_page/
Dfpdf_page_graph_state.cpp117 CPDF_Rect layer_rect; in GetClipBox() local
123 rect = layer_rect; in GetClipBox()
126 rect.Intersect(layer_rect); in GetClipBox()
131 layer_rect = pTextObj->GetBBox(NULL); in GetClipBox()
134 layer_rect.Union(pTextObj->GetBBox(NULL)); in GetClipBox()

12