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

Side by Side Diff: cc/layers/draw_properties.h

Issue 1175113010: cc: Rename visible_content_rect and content stuff on quads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename-visible-content-rect: moreandroid 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
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_LAYERS_DRAW_PROPERTIES_H_ 5 #ifndef CC_LAYERS_DRAW_PROPERTIES_H_
6 #define CC_LAYERS_DRAW_PROPERTIES_H_ 6 #define CC_LAYERS_DRAW_PROPERTIES_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/trees/occlusion.h" 9 #include "cc/trees/occlusion.h"
10 #include "third_party/skia/include/core/SkXfermode.h" 10 #include "third_party/skia/include/core/SkXfermode.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool can_use_lcd_text; 74 bool can_use_lcd_text;
75 75
76 // True if the layer needs to be clipped by clip_rect. 76 // True if the layer needs to be clipped by clip_rect.
77 bool is_clipped; 77 bool is_clipped;
78 78
79 // The layer whose coordinate space this layer draws into. This can be 79 // The layer whose coordinate space this layer draws into. This can be
80 // either the same layer (draw_properties_.render_target == this) or an 80 // either the same layer (draw_properties_.render_target == this) or an
81 // ancestor of this layer. 81 // ancestor of this layer.
82 LayerType* render_target; 82 LayerType* render_target;
83 83
84 // This rect is in the layer's content space. 84 // This rect is a bounding box around what part of the layer is visible, in
85 gfx::Rect visible_content_rect; 85 // the layer's coordinate space.
86 gfx::Rect visible_layer_rect;
86 87
87 // In target surface space, the rect that encloses the clipped, drawable 88 // In target surface space, the rect that encloses the clipped, drawable
88 // content of the layer. 89 // content of the layer.
89 gfx::Rect drawable_content_rect; 90 gfx::Rect drawable_content_rect;
90 91
91 // In target surface space, the original rect that clipped this layer. This 92 // In target surface space, the original rect that clipped this layer. This
92 // value is used to avoid unnecessarily changing GL scissor state. 93 // value is used to avoid unnecessarily changing GL scissor state.
93 gfx::Rect clip_rect; 94 gfx::Rect clip_rect;
94 95
95 // Number of descendants with a clip parent that is our ancestor. NB - this 96 // Number of descendants with a clip parent that is our ancestor. NB - this
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // have page scale applied and others not, this may differ between layers. 143 // have page scale applied and others not, this may differ between layers.
143 float page_scale_factor; 144 float page_scale_factor;
144 145
145 // The device scale factor that is applied to the layer. 146 // The device scale factor that is applied to the layer.
146 float device_scale_factor; 147 float device_scale_factor;
147 }; 148 };
148 149
149 } // namespace cc 150 } // namespace cc
150 151
151 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ 152 #endif // CC_LAYERS_DRAW_PROPERTIES_H_
OLDNEW
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl_unittest.cc ('k') | cc/layers/io_surface_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698