summaryrefslogtreecommitdiffstats
path: root/cc/contents_scaling_layer.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-20 00:09:27 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-20 00:09:27 +0000
commit8f95c562479b3be9776e77b597d72b464bb447a5 (patch)
treebb2e57273abf25f5bba3989aceb32c3bf3c6bb6b /cc/contents_scaling_layer.h
parenta2b9b1d31541665ff0961c11c80684b73c597bd3 (diff)
downloadchromium_src-8f95c562479b3be9776e77b597d72b464bb447a5.zip
chromium_src-8f95c562479b3be9776e77b597d72b464bb447a5.tar.gz
chromium_src-8f95c562479b3be9776e77b597d72b464bb447a5.tar.bz2
cc: Invalidate the full tiled layer when contents scale changes.
Previously we invalidated only the area outside of the previous bounds, but this is incorrect when changing the scale. The verifyInvalidationWhenContentsScaleChanges test was not actually testing to make sure invalidation happened, so fixed the test to do its job. Tests: TiledLayerTest.verifyInvalidationWhenContentsScaleChanges BUG=166715 R=enne NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11644035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/contents_scaling_layer.h')
-rw-r--r--cc/contents_scaling_layer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cc/contents_scaling_layer.h b/cc/contents_scaling_layer.h
index 81b51ff..c535d04 100644
--- a/cc/contents_scaling_layer.h
+++ b/cc/contents_scaling_layer.h
@@ -21,11 +21,20 @@ class CC_EXPORT ContentsScalingLayer : public Layer {
gfx::Size* content_bounds) OVERRIDE;
virtual void didUpdateBounds() OVERRIDE;
+ virtual void update(
+ ResourceUpdateQueue& queue,
+ const OcclusionTracker* occlusion,
+ RenderingStats& stats) OVERRIDE;
+
protected:
ContentsScalingLayer();
virtual ~ContentsScalingLayer();
gfx::Size computeContentBoundsForScale(float scaleX, float scaleY) const;
+
+ private:
+ float last_update_contents_scale_x_;
+ float last_update_contents_scale_y_;
};
} // namespace cc