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

Unified Diff: cc/layers/picture_layer_impl.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/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index f6a65242bf87195c61f8e5eac4ebc00f4b337abd..48624363b8291f059b0fa05dba846a7aa7736956 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -98,11 +98,13 @@ class CC_EXPORT PictureLayerImpl
protected:
PictureLayerImpl(LayerTreeImpl* tree_impl, int id, bool is_mask);
- PictureLayerTiling* AddTiling(float contents_scale);
+ PictureLayerTiling* AddTiling(float contents_scale,
+ const gfx::Vector2dF& contents_translation);
void RemoveAllTilings();
void AddTilingsForRasterScale();
void AddLowResolutionTilingIfNeeded();
bool ShouldAdjustRasterScale() const;
+ void RecalculateRasterTranslation();
void RecalculateRasterScales();
void CleanUpTilingsOnActiveLayer(
const std::vector<PictureLayerTiling*>& used_tilings);
@@ -139,6 +141,7 @@ class CC_EXPORT PictureLayerImpl
float raster_device_scale_;
float raster_source_scale_;
float raster_contents_scale_;
+ gfx::Vector2dF raster_contents_translation_;
float low_res_raster_contents_scale_;
bool was_screen_space_transform_animating_;

Powered by Google App Engine
This is Rietveld 408576698