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

Unified Diff: cc/layers/picture_layer_impl.h

Issue 12954006: Let AreVisibleResourcesReady return correct value for PictureImageLayerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep source scales; New ShouldAdjustRasterScale Created 7 years, 9 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 9e54f43051fa7b337bc212c492b12bf8b6cf31c1..49a862f3695b43321b749e493cbf27a5f90cc273 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -75,10 +75,12 @@ class CC_EXPORT PictureLayerImpl : public LayerImpl,
void RemoveTiling(float contents_scale);
void SyncFromActiveLayer(const PictureLayerImpl* other);
void ManageTilings(bool animating_transform_to_screen);
+ virtual bool ShouldAdjustRasterScale(
+ bool animating_transform_to_screen) const;
virtual void CalculateRasterContentsScale(
bool animating_transform_to_screen,
float* raster_contents_scale,
- float* low_res_raster_contents_scale);
+ float* low_res_raster_contents_scale) const;
void CleanUpTilingsOnActiveLayer(
std::vector<PictureLayerTiling*> used_tilings);
PictureLayerImpl* PendingTwin() const;
@@ -106,6 +108,8 @@ class CC_EXPORT PictureLayerImpl : public LayerImpl,
float raster_page_scale_;
float raster_device_scale_;
float raster_source_scale_;
+ float raster_contents_scale_;
+ float low_res_raster_contents_scale_;
bool raster_source_scale_was_animating_;
bool is_using_lcd_text_;

Powered by Google App Engine
This is Rietveld 408576698