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

Unified Diff: cc/picture_layer_tiling.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_tiling.h
diff --git a/cc/picture_layer_tiling.h b/cc/picture_layer_tiling.h
index b6c7b7d7ec85a4e7b1e29a3421cbcef6152e8b38..38ef4c6c6c89ab26acae65bf0cfa2235b364a3ff 100644
--- a/cc/picture_layer_tiling.h
+++ b/cc/picture_layer_tiling.h
@@ -12,6 +12,7 @@
#include "cc/hash_pair.h"
#include "cc/region.h"
#include "cc/tile.h"
+#include "cc/tile_priority.h"
#include "cc/tiling_data.h"
#include "ui/gfx/rect.h"
@@ -38,6 +39,8 @@ class CC_EXPORT PictureLayerTiling {
void Invalidate(const Region& layer_invalidation);
void SetClient(PictureLayerTilingClient* client);
+ void set_resolution(TileResolution resolution) { resolution_ = resolution; }
+ TileResolution resolution() const { return resolution_; }
gfx::Rect ContentRect() const;
float contents_scale() const { return contents_scale_; }
@@ -89,8 +92,8 @@ class CC_EXPORT PictureLayerTiling {
void UpdateTilePriorities(
WhichTree tree,
const gfx::Size& device_viewport,
- float layer_content_scale_x,
- float layer_content_scale_y,
+ float last_contents_scale,
danakj 2013/01/09 00:22:49 last_layer_...
+ float current_contents_scale,
danakj 2013/01/09 00:22:49 current_layer_... (match the .cc)
const gfx::Transform& last_screen_transform,
const gfx::Transform& current_screen_transform,
double time_delta);
@@ -108,6 +111,7 @@ class CC_EXPORT PictureLayerTiling {
gfx::Size layer_bounds_;
TileMap tiles_;
TilingData tiling_data_;
+ TileResolution resolution_;
friend class Iterator;
};

Powered by Google App Engine
This is Rietveld 408576698