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

Unified Diff: cc/tiles/tile.h

Issue 2175553002: Raster PictureLayerTiling with fractional translation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Raster PictureLayerTiling with fractional translation Created 4 years, 5 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/tiles/tile.h
diff --git a/cc/tiles/tile.h b/cc/tiles/tile.h
index 76142e86699118f284d0e11acb86aba35ad80348..b58ed82f98b95d5e67f2b53dab125e8b09ad463a 100644
--- a/cc/tiles/tile.h
+++ b/cc/tiles/tile.h
@@ -35,17 +35,20 @@ class CC_EXPORT Tile {
gfx::Rect enclosing_layer_rect;
gfx::Rect content_rect;
float contents_scale;
+ gfx::Vector2dF contents_translation;
CreateInfo(int tiling_i_index,
int tiling_j_index,
const gfx::Rect& enclosing_layer_rect,
const gfx::Rect& content_rect,
- float contents_scale)
+ float contents_scale,
+ const gfx::Vector2dF contents_translation)
: tiling_i_index(tiling_i_index),
tiling_j_index(tiling_j_index),
enclosing_layer_rect(enclosing_layer_rect),
content_rect(content_rect),
- contents_scale(contents_scale) {}
+ contents_scale(contents_scale),
+ contents_translation(contents_translation) {}
};
enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0, IS_OPAQUE = 1 << 1 };
@@ -78,6 +81,9 @@ class CC_EXPORT Tile {
TileDrawInfo& draw_info() { return draw_info_; }
float contents_scale() const { return contents_scale_; }
+ const gfx::Vector2dF& contents_translation() const {
+ return contents_translation_;
+ }
const gfx::Rect& content_rect() const { return content_rect_; }
const gfx::Rect& enclosing_layer_rect() const {
return enclosing_layer_rect_;
@@ -124,6 +130,7 @@ class CC_EXPORT Tile {
const gfx::Rect content_rect_;
const gfx::Rect enclosing_layer_rect_;
const float contents_scale_;
+ const gfx::Vector2dF contents_translation_;
TileDrawInfo draw_info_;

Powered by Google App Engine
This is Rietveld 408576698