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

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

Issue 465853004: Moving RenderSurface creation outside of CalcDrawProps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 #include "ui/gfx/transform.h" 10 #include "ui/gfx/transform.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 bool can_use_lcd_text; 66 bool can_use_lcd_text;
67 67
68 // True if the layer needs to be clipped by clip_rect. 68 // True if the layer needs to be clipped by clip_rect.
69 bool is_clipped; 69 bool is_clipped;
70 70
71 // The layer whose coordinate space this layer draws into. This can be 71 // The layer whose coordinate space this layer draws into. This can be
72 // either the same layer (draw_properties_.render_target == this) or an 72 // either the same layer (draw_properties_.render_target == this) or an
73 // ancestor of this layer. 73 // ancestor of this layer.
74 LayerType* render_target; 74 LayerType* render_target;
75 75
76 // The surface that this layer and its subtree would contribute to.
77 scoped_ptr<typename LayerType::RenderSurfaceType> render_surface;
78
79 // This rect is in the layer's content space. 76 // This rect is in the layer's content space.
80 gfx::Rect visible_content_rect; 77 gfx::Rect visible_content_rect;
81 78
82 // In target surface space, the rect that encloses the clipped, drawable 79 // In target surface space, the rect that encloses the clipped, drawable
83 // content of the layer. 80 // content of the layer.
84 gfx::Rect drawable_content_rect; 81 gfx::Rect drawable_content_rect;
85 82
86 // In target surface space, the original rect that clipped this layer. This 83 // In target surface space, the original rect that clipped this layer. This
87 // value is used to avoid unnecessarily changing GL scissor state. 84 // value is used to avoid unnecessarily changing GL scissor state.
88 gfx::Rect clip_rect; 85 gfx::Rect clip_rect;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // have page scale applied and others not, this may differ between layers. 142 // have page scale applied and others not, this may differ between layers.
146 float page_scale_factor; 143 float page_scale_factor;
147 144
148 // The device scale factor that is applied to the layer. 145 // The device scale factor that is applied to the layer.
149 float device_scale_factor; 146 float device_scale_factor;
150 }; 147 };
151 148
152 } // namespace cc 149 } // namespace cc
153 150
154 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ 151 #endif // CC_LAYERS_DRAW_PROPERTIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698