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

Unified Diff: cc/layers/picture_layer_impl.h

Issue 1024633002: cc: Keep tilings texture size in sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address vmp's comments Created 5 years, 9 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
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index 397cb623bbd0e82428799117c980d41dcdea18b0..d624e197fe054e39f305be607b82b1f000d09179 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -76,6 +76,9 @@ class CC_EXPORT PictureLayerImpl
WhichTree GetTree() const override;
bool RequiresHighResToDraw() const override;
+ void set_gpu_raster_max_texture_size(gfx::Size gpu_raster_max_texture_size) {
+ gpu_raster_max_texture_size_ = gpu_raster_max_texture_size;
vmpstr 2015/03/19 23:31:51 Do we need a SetNeedsPushProperties with this?
hendrikw 2015/03/19 23:34:33 No, the only time we need a push with this is when
enne (OOO) 2015/03/20 22:18:40 Sorry, so this is intentional that viewport size m
+ }
void UpdateRasterSource(scoped_refptr<RasterSource> raster_source,
Region* new_invalidation,
const PictureLayerTilingSet* pending_set);
@@ -171,6 +174,8 @@ class CC_EXPORT PictureLayerImpl
gfx::Rect visible_rect_for_tile_priority_;
gfx::Rect viewport_rect_for_tile_priority_in_content_space_;
+ gfx::Size gpu_raster_max_texture_size_;
+
// List of tilings that were used last time we appended quads. This can be
// used as an optimization not to remove tilings if they are still being
// drawn. Note that accessing this vector should only be done in the context
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698