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

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 640873002: cc: Move RequiresHighResToDraw from tree to lthi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 gfx::Rect DeviceViewport() const; 96 gfx::Rect DeviceViewport() const;
97 gfx::Size DrawViewportSize() const; 97 gfx::Size DrawViewportSize() const;
98 const gfx::Rect ViewportRectForTilePriority() const; 98 const gfx::Rect ViewportRectForTilePriority() const;
99 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController( 99 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController(
100 LayerImpl* scrolling_layer); 100 LayerImpl* scrolling_layer);
101 void DidAnimateScrollOffset(); 101 void DidAnimateScrollOffset();
102 void InputScrollAnimationFinished(); 102 void InputScrollAnimationFinished();
103 bool use_gpu_rasterization() const; 103 bool use_gpu_rasterization() const;
104 bool create_low_res_tiling() const; 104 bool create_low_res_tiling() const;
105 BlockingTaskRunner* BlockingMainThreadTaskRunner() const; 105 BlockingTaskRunner* BlockingMainThreadTaskRunner() const;
106 bool RequiresHighResToDraw() const;
106 107
107 // Tree specific methods exposed to layer-impl tree. 108 // Tree specific methods exposed to layer-impl tree.
108 // --------------------------------------------------------------------------- 109 // ---------------------------------------------------------------------------
109 void SetNeedsRedraw(); 110 void SetNeedsRedraw();
110 111
111 // TODO(nduca): These are implemented in cc files temporarily, but will become 112 // TODO(nduca): These are implemented in cc files temporarily, but will become
112 // trivial accessors in a followup patch. 113 // trivial accessors in a followup patch.
113 const LayerTreeDebugState& debug_state() const; 114 const LayerTreeDebugState& debug_state() const;
114 float device_scale_factor() const; 115 float device_scale_factor() const;
115 DebugRectHistory* debug_rect_history() const; 116 DebugRectHistory* debug_rect_history() const;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 AnimationRegistrar* animationRegistrar() const; 226 AnimationRegistrar* animationRegistrar() const;
226 227
227 void PushPersistedState(LayerTreeImpl* pending_tree); 228 void PushPersistedState(LayerTreeImpl* pending_tree);
228 229
229 void DidBecomeActive(); 230 void DidBecomeActive();
230 231
231 bool ContentsTexturesPurged() const; 232 bool ContentsTexturesPurged() const;
232 void SetContentsTexturesPurged(); 233 void SetContentsTexturesPurged();
233 void ResetContentsTexturesPurged(); 234 void ResetContentsTexturesPurged();
234 235
235 void SetRequiresHighResToDraw();
236 void ResetRequiresHighResToDraw();
237 bool RequiresHighResToDraw() const;
238
239 // Set on the active tree when the viewport size recently changed 236 // Set on the active tree when the viewport size recently changed
240 // and the active tree's size is now out of date. 237 // and the active tree's size is now out of date.
241 bool ViewportSizeInvalid() const; 238 bool ViewportSizeInvalid() const;
242 void SetViewportSizeInvalid(); 239 void SetViewportSizeInvalid();
243 void ResetViewportSizeInvalid(); 240 void ResetViewportSizeInvalid();
244 241
245 // Useful for debug assertions, probably shouldn't be used for anything else. 242 // Useful for debug assertions, probably shouldn't be used for anything else.
246 Proxy* proxy() const; 243 Proxy* proxy() const;
247 244
248 void SetRootLayerScrollOffsetDelegate( 245 void SetRootLayerScrollOffsetDelegate(
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 361
365 std::vector<LayerImpl*> layers_with_copy_output_request_; 362 std::vector<LayerImpl*> layers_with_copy_output_request_;
366 363
367 // Persisted state for non-impl-side-painting. 364 // Persisted state for non-impl-side-painting.
368 int scrolling_layer_id_from_previous_tree_; 365 int scrolling_layer_id_from_previous_tree_;
369 366
370 // List of visible layers for the most recently prepared frame. 367 // List of visible layers for the most recently prepared frame.
371 LayerImplList render_surface_layer_list_; 368 LayerImplList render_surface_layer_list_;
372 369
373 bool contents_textures_purged_; 370 bool contents_textures_purged_;
374 bool requires_high_res_to_draw_;
375 bool viewport_size_invalid_; 371 bool viewport_size_invalid_;
376 bool needs_update_draw_properties_; 372 bool needs_update_draw_properties_;
377 373
378 // In impl-side painting mode, this is true when the tree may contain 374 // In impl-side painting mode, this is true when the tree may contain
379 // structural differences relative to the active tree. 375 // structural differences relative to the active tree.
380 bool needs_full_tree_sync_; 376 bool needs_full_tree_sync_;
381 377
382 bool next_activation_forces_redraw_; 378 bool next_activation_forces_redraw_;
383 379
384 bool has_ever_been_drawn_; 380 bool has_ever_been_drawn_;
(...skipping 17 matching lines...) Expand all
402 398
403 scoped_ptr<PageScaleAnimation> page_scale_animation_; 399 scoped_ptr<PageScaleAnimation> page_scale_animation_;
404 400
405 private: 401 private:
406 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 402 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
407 }; 403 };
408 404
409 } // namespace cc 405 } // namespace cc
410 406
411 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 407 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698