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

12

/external/chromium_org/cc/test/
H A Dskia_common.cc16 const gfx::Rect& layer_rect,
19 SkImageInfo::MakeN32Premul(layer_rect.width(), layer_rect.height());
23 canvas.clipRect(gfx::RectToSkRect(layer_rect));
15 DrawPicture(unsigned char* buffer, const gfx::Rect& layer_rect, scoped_refptr<Picture> picture) argument
H A Dskia_common.h23 const gfx::Rect& layer_rect,
/external/chromium_org/cc/resources/
H A Dcontent_layer_updater.cc86 gfx::Rect layer_rect; local
93 layer_rect = gfx::ScaleToEnclosingRect(
96 layer_rect = paint_rect;
100 layer_rect.x(), layer_rect.y(), layer_rect.width(), layer_rect.height());
111 painter_->Paint(canvas, layer_rect);
H A Dpicture_unittest.cc26 gfx::Rect layer_rect(100, 100);
52 content_layer_client.add_draw_rect(layer_rect, red_paint);
56 Picture::Create(layer_rect,
70 DrawPicture(one_rect_buffer, layer_rect, one_rect_picture);
72 DrawPicture(one_rect_buffer_check, layer_rect, one_rect_picture_check);
84 Picture::Create(layer_rect,
99 DrawPicture(two_rect_buffer, layer_rect, two_rect_picture);
101 DrawPicture(two_rect_buffer_check, layer_rect, two_rect_picture_check);
110 gfx::Rect layer_rect(2048, 2048);
143 scoped_refptr<Picture> picture = Picture::Create(layer_rect,
[all...]
H A Dpicture.h57 const gfx::Rect& layer_rect,
96 PixelRefIterator(const gfx::Rect& layer_rect, const Picture* picture);
132 explicit Picture(const gfx::Rect& layer_rect);
136 const gfx::Rect& layer_rect,
139 Picture(SkPicture*, const gfx::Rect& layer_rect);
H A Dpicture.cc88 const gfx::Rect& layer_rect,
93 scoped_refptr<Picture> picture = make_scoped_refptr(new Picture(layer_rect));
102 Picture::Picture(const gfx::Rect& layer_rect) argument
103 : layer_rect_(layer_rect),
104 cell_size_(layer_rect.size()) {
124 gfx::Rect layer_rect(skpicture->width(), skpicture->height());
125 return make_scoped_refptr(new Picture(skpicture, layer_rect));
143 if (!value->Get("params.layer_rect", &layer_rect_value))
146 gfx::Rect layer_rect;
147 if (!MathUtil::FromValue(layer_rect_value, &layer_rect))
87 Create( const gfx::Rect& layer_rect, ContentLayerClient* client, const SkTileGridFactory::TileGridInfo& tile_grid_info, bool gather_pixel_refs, RecordingMode recording_mode) argument
158 Picture(SkPicture* picture, const gfx::Rect& layer_rect) argument
164 Picture(const skia::RefPtr<SkPicture>& picture, const gfx::Rect& layer_rect, const PixelRefMap& pixel_refs) argument
455 gfx::Rect layer_rect = picture->layer_rect_; local
[all...]
H A Dpicture_pile_base.cc149 gfx::Rect layer_rect = gfx::ScaleToEnclosingRect(
151 layer_rect.Intersect(gfx::Rect(tiling_.tiling_size()));
154 if (recorded_viewport_.Contains(layer_rect)) {
156 DCHECK(CanRasterSlowTileCheck(layer_rect));
160 return CanRasterSlowTileCheck(layer_rect);
164 const gfx::Rect& layer_rect) const {
166 for (TilingData::Iterator tile_iter(&tiling_, layer_rect, include_borders);
H A Dpicture_pile_impl.cc139 gfx::Rect layer_rect = gfx::ScaleToEnclosingRect( local
164 for (TilingData::Iterator tile_iter(&tiling_, layer_rect, include_borders);
340 gfx::Rect layer_rect = gfx::ScaleToEnclosingRect( local
343 layer_rect.Intersect(gfx::Rect(tiling_.tiling_size()));
345 skia::AnalysisCanvas canvas(layer_rect.width(), layer_rect.height());
347 RasterForAnalysis(&canvas, layer_rect, 1.0f, stats_instrumentation);
H A Dpicture_pile_base.h109 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const;
/external/chromium_org/cc/trees/
H A Dlayer_tree_host_pixeltest_on_demand_raster.cc64 explicit BlueYellowLayerClient(gfx::Rect layer_rect) argument
65 : layer_rect_(layer_rect) {}
97 gfx::Rect layer_rect(200, 200);
98 BlueYellowLayerClient client(layer_rect);
102 layer->SetBounds(layer_rect.size());
103 layer->SetPosition(layer_rect.origin());
H A Dlayer_tree_host_impl_unittest.cc4085 gfx::Rect layer_rect(viewport_size_);
4086 child_->SetPosition(layer_rect.origin());
4087 child_->SetBounds(layer_rect.size());
4088 child_->SetContentBounds(layer_rect.size());
4089 child_->SetQuadRect(gfx::Rect(layer_rect.size()));
4090 child_->SetQuadVisibleRect(gfx::Rect(layer_rect.size()));
4106 gfx::Rect layer_rect(0, 0, 0, 0);
4107 child_->SetPosition(layer_rect.origin());
4108 child_->SetBounds(layer_rect.size());
4109 child_->SetContentBounds(layer_rect
[all...]
H A Dlayer_tree_host_common.cc101 gfx::Rect layer_rect = MathUtil::ProjectEnclosingClippedRect( local
103 layer_rect.Intersect(layer_bound_rect);
104 return layer_rect;
/external/chromium_org/cc/layers/
H A Dpainted_scrollbar_layer.cc167 const gfx::Rect& layer_rect) const {
169 // layer_rect here might be in coordinates of the containing layer.
171 layer_rect, contents_scale_x(), contents_scale_y());
260 const gfx::Rect& layer_rect,
264 DCHECK(!layer_rect.size().IsEmpty());
271 content_rect.width() / static_cast<float>(layer_rect.width());
273 content_rect.height() / static_cast<float>(layer_rect.height());
277 skcanvas.translate(SkFloatToScalar(-layer_rect.x()),
278 SkFloatToScalar(-layer_rect.y()));
280 SkRect layer_skrect = RectToSkRect(layer_rect);
259 RasterizeScrollbarPart( const gfx::Rect& layer_rect, const gfx::Rect& content_rect, ScrollbarPart part) argument
[all...]
H A Dpainted_scrollbar_layer.h64 gfx::Rect ScrollbarLayerRectToContentRect(const gfx::Rect& layer_rect) const;
77 UIResourceBitmap RasterizeScrollbarPart(const gfx::Rect& layer_rect,
H A Dpicture_layer.cc47 // is identical to the layer_rect.
71 void PictureLayer::SetNeedsDisplayRect(const gfx::RectF& layer_rect) { argument
72 gfx::Rect rect = gfx::ToEnclosedRect(layer_rect);
78 Layer::SetNeedsDisplayRect(layer_rect);
H A Dpicture_layer.h31 virtual void SetNeedsDisplayRect(const gfx::RectF& layer_rect) OVERRIDE;
H A Dscrollbar_layer_impl_base.h69 gfx::Rect ScrollbarLayerRectToContentRect(const gfx::RectF& layer_rect) const;
H A Dscrollbar_layer_impl_base.cc99 const gfx::RectF& layer_rect) const {
101 // layer_rect here might be in coordinates of the containing layer.
102 gfx::RectF content_rect = gfx::ScaleRect(layer_rect,
H A Dtiled_layer_unittest.cc1695 gfx::Rect layer_rect(0, 0, 30, 31);
1696 layer->SetPosition(layer_rect.origin());
1697 layer->SetBounds(layer_rect.size());
1722 gfx::Rect expanded_layer_rect(layer_rect);
1735 gfx::Rect layer_rect(0, 0, 30, 31);
1736 layer->SetPosition(layer_rect.origin());
1737 layer->SetBounds(layer_rect.size());
1757 layer->SetNeedsDisplayRect(layer_rect);
1761 gfx::Rect expanded_layer_rect(layer_rect);
H A Dtexture_layer_unittest.cc215 const gfx::Rect layer_rect(layer_bounds);
216 const Region layer_region(layer_rect);
220 layer->draw_properties().visible_content_rect = layer_rect;
H A Dlayer.h425 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const;
H A Dlayer.cc205 gfx::Rect Layer::LayerRectToContentRect(const gfx::RectF& layer_rect) const {
207 gfx::ScaleRect(layer_rect, contents_scale_x(), contents_scale_y());
/external/chromium_org/skia/ext/
H A Dpixel_ref_utils_unittest.cc70 SkCanvas* StartRecording(SkPictureRecorder* recorder, gfx::Rect layer_rect) { argument
72 recorder->beginRecording(layer_rect.width(), layer_rect.height());
75 canvas->translate(-layer_rect.x(), -layer_rect.y());
77 layer_rect.x(), layer_rect.y(), layer_rect.width(), layer_rect.height()));
90 gfx::Rect layer_rect(
[all...]
/external/chromium-trace/trace-viewer/src/cc/
H A Dpicture.js103 layer_rect: this.args.params.layerRect,
133 layer_rect: this.args.params.layerRect,
/external/pdfium/core/src/fpdfapi/fpdf_page/
H A Dfpdf_page_graph_state.cpp117 CPDF_Rect layer_rect; local
123 rect = layer_rect;
126 rect.Intersect(layer_rect);
131 layer_rect = pTextObj->GetBBox(NULL);
134 layer_rect.Union(pTextObj->GetBBox(NULL));

Completed in 448 milliseconds

12