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

Unified Diff: cc/layer_tree_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: 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_impl.h
diff --git a/cc/layer_tree_impl.h b/cc/layer_tree_impl.h
index b8971f842d4005b67ec399385f818c76477f2253..2056cb74b846331f355041511442cd74dcec4fbe 100644
--- a/cc/layer_tree_impl.h
+++ b/cc/layer_tree_impl.h
@@ -71,8 +71,6 @@ class CC_EXPORT LayerTreeImpl {
// trivial accessors in a followup patch.
const LayerTreeDebugState& debug_state() const;
float device_scale_factor() const;
- const gfx::Size& device_viewport_size() const;
- const gfx::Size& layout_viewport_size() const;
std::string layer_tree_as_text() const;
DebugRectHistory* debug_rect_history() const;
@@ -138,6 +136,9 @@ class CC_EXPORT LayerTreeImpl {
}
float sent_page_scale_delta() const { return sent_page_scale_delta_; }
+ void SetDeviceViewportSize(const gfx::Size& device_viewport_size);
+ const gfx::Size& device_viewport_size() const { return device_viewport_size_; }
+
// Updates draw properties and render surface layer list
void UpdateDrawProperties(UpdateDrawPropertiesReason reason);
void set_needs_update_draw_properties() {
@@ -198,6 +199,8 @@ protected:
float min_page_scale_factor_;
float max_page_scale_factor_;
+ gfx::Size device_viewport_size_;
+
typedef base::hash_map<int, LayerImpl*> LayerIdMap;
LayerIdMap layer_id_map_;

Powered by Google App Engine
This is Rietveld 408576698