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

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

Issue 1194623003: cc: Remove contents_texture_manager from LayerTreeHost(Impl) and proxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contentstexturemanager: rebase Created 5 years, 6 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 void UnregisterLayer(LayerImpl* layer); 252 void UnregisterLayer(LayerImpl* layer);
253 253
254 size_t NumLayers(); 254 size_t NumLayers();
255 255
256 AnimationRegistrar* GetAnimationRegistrar() const; 256 AnimationRegistrar* GetAnimationRegistrar() const;
257 257
258 void PushPersistedState(LayerTreeImpl* pending_tree); 258 void PushPersistedState(LayerTreeImpl* pending_tree);
259 259
260 void DidBecomeActive(); 260 void DidBecomeActive();
261 261
262 bool ContentsTexturesPurged() const;
263 void SetContentsTexturesPurged();
264 void ResetContentsTexturesPurged();
265
266 // Set on the active tree when the viewport size recently changed 262 // Set on the active tree when the viewport size recently changed
267 // and the active tree's size is now out of date. 263 // and the active tree's size is now out of date.
268 bool ViewportSizeInvalid() const; 264 bool ViewportSizeInvalid() const;
269 void SetViewportSizeInvalid(); 265 void SetViewportSizeInvalid();
270 void ResetViewportSizeInvalid(); 266 void ResetViewportSizeInvalid();
271 267
272 // Useful for debug assertions, probably shouldn't be used for anything else. 268 // Useful for debug assertions, probably shouldn't be used for anything else.
273 Proxy* proxy() const; 269 Proxy* proxy() const;
274 270
275 void SetRootLayerScrollOffsetDelegate( 271 void SetRootLayerScrollOffsetDelegate(
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 389
394 // Persisted state for non-impl-side-painting. 390 // Persisted state for non-impl-side-painting.
395 int scrolling_layer_id_from_previous_tree_; 391 int scrolling_layer_id_from_previous_tree_;
396 392
397 // List of visible layers for the most recently prepared frame. 393 // List of visible layers for the most recently prepared frame.
398 LayerImplList render_surface_layer_list_; 394 LayerImplList render_surface_layer_list_;
399 // After drawing the |render_surface_layer_list_| the areas in this region 395 // After drawing the |render_surface_layer_list_| the areas in this region
400 // would not be fully covered by opaque content. 396 // would not be fully covered by opaque content.
401 Region unoccluded_screen_space_region_; 397 Region unoccluded_screen_space_region_;
402 398
403 bool contents_textures_purged_;
404 bool viewport_size_invalid_; 399 bool viewport_size_invalid_;
405 bool needs_update_draw_properties_; 400 bool needs_update_draw_properties_;
406 401
407 // In impl-side painting mode, this is true when the tree may contain 402 // In impl-side painting mode, this is true when the tree may contain
408 // structural differences relative to the active tree. 403 // structural differences relative to the active tree.
409 bool needs_full_tree_sync_; 404 bool needs_full_tree_sync_;
410 405
411 bool next_activation_forces_redraw_; 406 bool next_activation_forces_redraw_;
412 407
413 bool has_ever_been_drawn_; 408 bool has_ever_been_drawn_;
(...skipping 16 matching lines...) Expand all
430 425
431 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 426 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
432 427
433 private: 428 private:
434 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 429 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
435 }; 430 };
436 431
437 } // namespace cc 432 } // namespace cc
438 433
439 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 434 #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