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

Unified Diff: cc/layer_tree_host_impl.h

Issue 12212156: cc: Only allow trees created at the current viewport size to draw. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move viewport sizes out of LTHI Created 7 years, 10 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_tree_host_impl.h
diff --git a/cc/layer_tree_host_impl.h b/cc/layer_tree_host_impl.h
index b95607494b9663b0a36a058f7081fa06f4bf20ac..205e0d803968ca16ec4a31c194ce077afddd2e5b 100644
--- a/cc/layer_tree_host_impl.h
+++ b/cc/layer_tree_host_impl.h
@@ -186,7 +186,7 @@ public:
size_t memoryAllocationLimitBytes() const { return m_managedMemoryPolicy.bytesLimitWhenVisible; }
void setViewportSize(const gfx::Size& layoutViewportSize, const gfx::Size& deviceViewportSize);
- const gfx::Size& layoutViewportSize() const { return m_layoutViewportSize; }
+ const gfx::Size& layoutViewportSize() const;
float deviceScaleFactor() const { return m_deviceScaleFactor; }
void setDeviceScaleFactor(float);
@@ -332,8 +332,6 @@ private:
bool m_wheelScrolling;
LayerTreeSettings m_settings;
LayerTreeDebugState m_debugState;
- gfx::Size m_layoutViewportSize;
- gfx::Size m_deviceViewportSize;
float m_deviceScaleFactor;
bool m_visible;
ManagedMemoryPolicy m_managedMemoryPolicy;
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698