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

Side by Side Diff: cc/draw_properties.h

Issue 11567034: Changes subtreeShouldRenderToSeparateSurface logic to account for explicit clipping (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « no previous file | cc/layer_tree_host_common.cc » ('j') | cc/layer_tree_host_common.cc » ('J')
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_DRAW_PROPERTIES_H_ 5 #ifndef CC_DRAW_PROPERTIES_H_
6 #define CC_DRAW_PROPERTIES_H_ 6 #define CC_DRAW_PROPERTIES_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 #include "ui/gfx/transform.h" 10 #include "ui/gfx/transform.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 bool screen_space_opacity_is_animating; 48 bool screen_space_opacity_is_animating;
49 bool target_space_transform_is_animating; 49 bool target_space_transform_is_animating;
50 bool screen_space_transform_is_animating; 50 bool screen_space_transform_is_animating;
51 51
52 // True if the layer can use LCD text. 52 // True if the layer can use LCD text.
53 bool can_use_lcd_text; 53 bool can_use_lcd_text;
54 54
55 // True if the layer needs to be clipped by clipRect. 55 // True if the layer needs to be clipped by clipRect.
56 bool is_clipped; 56 bool is_clipped;
57 57
58 // True if all chilren can clip to this layer (if is_clipped is true)
59 bool all_children_can_clip;
shawnsingh 2012/12/14 07:34:44 We should definitely add another line to the DrawP
whunt 2012/12/14 18:17:01 I'm happy to do this but I object to the word "def
60
58 // The layer whose coordinate space this layer draws into. This can be 61 // The layer whose coordinate space this layer draws into. This can be
59 // either the same layer (m_drawProperties.render_target == this) or an 62 // either the same layer (m_drawProperties.render_target == this) or an
60 // ancestor of this layer. 63 // ancestor of this layer.
61 LayerType* render_target; 64 LayerType* render_target;
62 65
63 // The surface that this layer and its subtree would contribute to. 66 // The surface that this layer and its subtree would contribute to.
64 scoped_ptr<RenderSurfaceType> render_surface; 67 scoped_ptr<RenderSurfaceType> render_surface;
65 68
66 // This rect is in the layer's content space. 69 // This rect is in the layer's content space.
67 gfx::Rect visible_content_rect; 70 gfx::Rect visible_content_rect;
68 71
69 // In target surface space, the rect that encloses the clipped, drawable 72 // In target surface space, the rect that encloses the clipped, drawable
70 // content of the layer. 73 // content of the layer.
71 gfx::Rect drawable_content_rect; 74 gfx::Rect drawable_content_rect;
72 75
73 // In target surface space, the original rect that clipped this 76 // In target surface space, the original rect that clipped this
74 // layer. This value is used to avoid unnecessarily changing GL scissor 77 // layer. This value is used to avoid unnecessarily changing GL scissor
75 // state. 78 // state.
76 gfx::Rect clip_rect; 79 gfx::Rect clip_rect;
77 80
78 // Does not include this layer itself, only its children and descendants. 81 // Does not include this layer itself, only its children and descendants.
79 int num_descendants_that_draw_content; 82 int num_descendants_that_draw_content;
80 }; 83 };
81 84
82 } // namespace cc 85 } // namespace cc
83 86
84 #endif // CC_DRAW_PROPERTIES_H_ 87 #endif // CC_DRAW_PROPERTIES_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_host_common.cc » ('j') | cc/layer_tree_host_common.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698