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

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: Fix nits 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
« no previous file with comments | « cc/layers/picture_image_layer_impl_unittest.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4a8569132807875f5d5431a82255933af37a669d 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;
@@ -96,16 +98,19 @@ class CC_EXPORT PictureLayerImpl : public LayerImpl,
gfx::Transform last_screen_space_transform_;
gfx::Size last_bounds_;
float last_content_scale_;
- float ideal_contents_scale_;
bool is_mask_;
float ideal_page_scale_;
float ideal_device_scale_;
float ideal_source_scale_;
+ float ideal_contents_scale_;
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_;
« no previous file with comments | « cc/layers/picture_image_layer_impl_unittest.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698