Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2965)

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 1051993002: cc: Remove tile sharing from tilings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index e9188ec678fbefb736b8a5db9d70934fc354392d..fa7b914c2a08ebf26726e1a30990b5dbf0a4ff58 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -630,7 +630,8 @@ Region PictureLayerImpl::GetInvalidationRegion() {
scoped_refptr<Tile> PictureLayerImpl::CreateTile(
float contents_scale,
- const gfx::Rect& content_rect) {
+ const gfx::Rect& content_rect,
+ scoped_refptr<RasterSource>* raster_source) {
enne (OOO) 2015/04/20 22:36:28 Pointer to a refptr <_< Is this something that ne
vmpstr 2015/04/22 18:38:57 Done.
int flags = 0;
// We don't handle solid color masks, so we shouldn't bother analyzing those.
@@ -639,8 +640,8 @@ scoped_refptr<Tile> PictureLayerImpl::CreateTile(
flags = Tile::USE_PICTURE_ANALYSIS;
return layer_tree_impl()->tile_manager()->CreateTile(
- raster_source_.get(), content_rect.size(), content_rect, contents_scale,
- id(), layer_tree_impl()->source_frame_number(), flags);
+ raster_source, content_rect.size(), content_rect, contents_scale, id(),
+ layer_tree_impl()->source_frame_number(), flags);
}
const Region* PictureLayerImpl::GetPendingInvalidation() {

Powered by Google App Engine
This is Rietveld 408576698