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

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

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/layers/delegated_renderer_layer_impl_unittest.cc ('k') | cc/layers/layer.h » ('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_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 "third_party/skia/include/core/SkXfermode.h" 9 #include "third_party/skia/include/core/SkXfermode.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool can_use_lcd_text; 72 bool can_use_lcd_text;
73 73
74 // True if the layer needs to be clipped by clip_rect. 74 // True if the layer needs to be clipped by clip_rect.
75 bool is_clipped; 75 bool is_clipped;
76 76
77 // The layer whose coordinate space this layer draws into. This can be 77 // The layer whose coordinate space this layer draws into. This can be
78 // either the same layer (draw_properties_.render_target == this) or an 78 // either the same layer (draw_properties_.render_target == this) or an
79 // ancestor of this layer. 79 // ancestor of this layer.
80 LayerType* render_target; 80 LayerType* render_target;
81 81
82 // The surface that this layer and its subtree would contribute to.
83 scoped_ptr<typename LayerType::RenderSurfaceType> render_surface;
84
85 // This rect is in the layer's content space. 82 // This rect is in the layer's content space.
86 gfx::Rect visible_content_rect; 83 gfx::Rect visible_content_rect;
87 84
88 // In target surface space, the rect that encloses the clipped, drawable 85 // In target surface space, the rect that encloses the clipped, drawable
89 // content of the layer. 86 // content of the layer.
90 gfx::Rect drawable_content_rect; 87 gfx::Rect drawable_content_rect;
91 88
92 // In target surface space, the original rect that clipped this layer. This 89 // In target surface space, the original rect that clipped this layer. This
93 // value is used to avoid unnecessarily changing GL scissor state. 90 // value is used to avoid unnecessarily changing GL scissor state.
94 gfx::Rect clip_rect; 91 gfx::Rect clip_rect;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // have page scale applied and others not, this may differ between layers. 148 // have page scale applied and others not, this may differ between layers.
152 float page_scale_factor; 149 float page_scale_factor;
153 150
154 // The device scale factor that is applied to the layer. 151 // The device scale factor that is applied to the layer.
155 float device_scale_factor; 152 float device_scale_factor;
156 }; 153 };
157 154
158 } // namespace cc 155 } // namespace cc
159 156
160 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ 157 #endif // CC_LAYERS_DRAW_PROPERTIES_H_
OLDNEW
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl_unittest.cc ('k') | cc/layers/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698