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

Unified Diff: cc/layer_impl.h

Issue 11276060: Pass accurate contentsScale to LayerImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/layer_impl.h
diff --git a/cc/layer_impl.h b/cc/layer_impl.h
index 05f3b44f374c6259dd281adb592abeaf90ce17d3..c243e72fd9d4e2ed30d17156d07e98708dfb9111 100644
--- a/cc/layer_impl.h
+++ b/cc/layer_impl.h
@@ -170,8 +170,11 @@ public:
void setBounds(const IntSize&);
const IntSize& bounds() const { return m_bounds; }
- const IntSize& contentBounds() const { return m_contentBounds; }
- void setContentBounds(const IntSize&);
+ IntSize contentBounds() const;
+
+ float contentsScaleX() const { return m_contentsScaleX; }
+ float contentsScaleY() const { return m_contentsScaleY; }
+ void setContentsScale(float contentsScaleX, float contentsScaleY);
const IntPoint& scrollPosition() const { return m_scrollPosition; }
void setScrollPosition(const IntPoint&);
@@ -300,6 +303,8 @@ private:
float m_anchorPointZ;
IntSize m_bounds;
IntSize m_contentBounds;
+ float m_contentsScaleX;
+ float m_contentsScaleY;
IntPoint m_scrollPosition;
bool m_scrollable;
bool m_shouldScrollOnMainThread;

Powered by Google App Engine
This is Rietveld 408576698