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

Unified Diff: cc/contents_scaling_layer.h

Issue 11503005: cc: Refactor content scale/bounds into draw properties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix shadowing Created 8 years 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 | « no previous file | cc/contents_scaling_layer.cc » ('j') | cc/contents_scaling_layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/contents_scaling_layer.h
diff --git a/cc/contents_scaling_layer.h b/cc/contents_scaling_layer.h
index 4f0fcdb9bcdcf852e1cc269ccceb12420ed0931c..b01ec51f7b9b12ba6e9d6bcfce1f8f6b4dff69ac 100644
--- a/cc/contents_scaling_layer.h
+++ b/cc/contents_scaling_layer.h
@@ -14,19 +14,14 @@ namespace cc {
// The content bounds are determined by bounds and scale of the contents.
class CC_EXPORT ContentsScalingLayer : public Layer {
public:
- virtual gfx::Size contentBounds() const OVERRIDE;
- virtual float contentsScaleX() const OVERRIDE;
- virtual float contentsScaleY() const OVERRIDE;
- virtual void setContentsScale(float contentsScale) OVERRIDE;
+ virtual void updateContentsScale(float ideal_contents_scale) OVERRIDE;
+ virtual void didUpdateBounds() OVERRIDE;
protected:
ContentsScalingLayer();
virtual ~ContentsScalingLayer();
gfx::Size computeContentBoundsForScale(float scaleX, float scaleY) const;
-
- private:
- float m_contentsScale;
};
} // namespace cc
« no previous file with comments | « no previous file | cc/contents_scaling_layer.cc » ('j') | cc/contents_scaling_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698