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

Unified Diff: cc/tile.h

Issue 11421210: cc: Apply contents scales to impl-side painting rasterization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years 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/test/fake_picture_layer_tiling_client.cc ('k') | cc/tile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile.h
diff --git a/cc/tile.h b/cc/tile.h
index f0c585209a9bf2b34b76f743d71ef1692720a220..35150bc5dd627f03fce3d7be28be1e559734baac 100644
--- a/cc/tile.h
+++ b/cc/tile.h
@@ -26,7 +26,8 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> {
PicturePileImpl* picture_pile,
gfx::Size tile_size,
GLenum format,
- gfx::Rect rect_inside_picture);
+ gfx::Rect rect_inside_picture,
+ float contents_scale);
const PicturePileImpl* picture_pile() const {
return picture_pile_.get();
@@ -57,6 +58,7 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> {
ManagedTileState& managed_state() { return managed_state_; }
const ManagedTileState& managed_state() const { return managed_state_; }
size_t bytes_consumed_if_allocated() const;
+ float contents_scale() const { return contents_scale_; }
// Normal private methods.
friend class base::RefCounted<Tile>;
@@ -67,6 +69,7 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> {
gfx::Rect tile_size_;
GLenum format_;
gfx::Rect rect_inside_picture_;
+ float contents_scale_;
gfx::Rect opaque_rect_;
TilePriority priority_[2];
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.cc ('k') | cc/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698