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

Side by Side Diff: ui/compositor/layer.h

Issue 16896017: Add a hide_layer_and_subtree() flag to cc::Layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hide-subtree-flag: SetIsDrawable on the new cc_layer Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | ui/compositor/layer.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 UI_COMPOSITOR_LAYER_H_ 5 #ifndef UI_COMPOSITOR_LAYER_H_
6 #define UI_COMPOSITOR_LAYER_H_ 6 #define UI_COMPOSITOR_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 Layer* parent_; 402 Layer* parent_;
403 403
404 // This layer's children, in bottom-to-top stacking order. 404 // This layer's children, in bottom-to-top stacking order.
405 std::vector<Layer*> children_; 405 std::vector<Layer*> children_;
406 406
407 gfx::Rect bounds_; 407 gfx::Rect bounds_;
408 408
409 // Visibility of this layer. See SetVisible/IsDrawn for more details. 409 // Visibility of this layer. See SetVisible/IsDrawn for more details.
410 bool visible_; 410 bool visible_;
411 411
412 // Computed based on the visibility of this layer and its ancestors.
413 bool is_drawn_;
414
415 bool force_render_surface_; 412 bool force_render_surface_;
416 413
417 bool fills_bounds_opaquely_; 414 bool fills_bounds_opaquely_;
418 415
419 // If true the layer is always up to date. 416 // If true the layer is always up to date.
420 bool layer_updated_externally_; 417 bool layer_updated_externally_;
421 418
422 // Union of damaged rects, in pixel coordinates, to be used when 419 // Union of damaged rects, in pixel coordinates, to be used when
423 // compositor is ready to paint the content. 420 // compositor is ready to paint the content.
424 SkRegion damaged_region_; 421 SkRegion damaged_region_;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 // The size of the delegated frame in DIP, set when SetDelegatedFrame was 477 // The size of the delegated frame in DIP, set when SetDelegatedFrame was
481 // called. 478 // called.
482 gfx::Size delegated_frame_size_in_dip_; 479 gfx::Size delegated_frame_size_in_dip_;
483 480
484 DISALLOW_COPY_AND_ASSIGN(Layer); 481 DISALLOW_COPY_AND_ASSIGN(Layer);
485 }; 482 };
486 483
487 } // namespace ui 484 } // namespace ui
488 485
489 #endif // UI_COMPOSITOR_LAYER_H_ 486 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698