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

Unified Diff: cc/picture_layer_impl.h

Issue 11704002: cc: Generate tilings at other scales for impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 7 years, 11 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/picture_layer_impl.h
diff --git a/cc/picture_layer_impl.h b/cc/picture_layer_impl.h
index 60e2c8d34a4b140430c5d5aa4e271d1518b517f6..416b2becb11021555130e38672c5a9573dfa0121 100644
--- a/cc/picture_layer_impl.h
+++ b/cc/picture_layer_impl.h
@@ -50,10 +50,11 @@ public:
protected:
PictureLayerImpl(LayerTreeImpl* treeImpl, int id);
- void AddTiling(float contents_scale, gfx::Size tile_size);
+ PictureLayerTiling* AddTiling(float contents_scale);
void SyncFromActiveLayer(const PictureLayerImpl* other);
gfx::Size TileSize() const;
void ManageTilings(float ideal_contents_scale);
+ void CleanUpUnusedTilings(std::vector<PictureLayerTiling*> used_tilings);
PictureLayerTilingSet tilings_;
scoped_refptr<PicturePileImpl> pile_;
@@ -63,8 +64,8 @@ protected:
double last_update_time_;
gfx::Size last_bounds_;
gfx::Size last_content_bounds_;
- float last_content_scale_x_;
- float last_content_scale_y_;
+ float last_content_scale_;
+ float ideal_contents_scale_;
bool is_mask_;
friend class PictureLayer;
« no previous file with comments | « cc/layer_tree_settings.cc ('k') | cc/picture_layer_impl.cc » ('j') | cc/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698