OLD | NEW |
---|---|
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_OUTPUT_DIRECT_RENDERER_H_ | 5 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_ |
6 #define CC_OUTPUT_DIRECT_RENDERER_H_ | 6 #define CC_OUTPUT_DIRECT_RENDERER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <unordered_map> | 9 #include <unordered_map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 } | 169 } |
170 | 170 |
171 const RendererSettings* const settings_; | 171 const RendererSettings* const settings_; |
172 OutputSurface* const output_surface_; | 172 OutputSurface* const output_surface_; |
173 ResourceProvider* const resource_provider_; | 173 ResourceProvider* const resource_provider_; |
174 // This can be replaced by test implementations. | 174 // This can be replaced by test implementations. |
175 std::unique_ptr<OverlayProcessor> overlay_processor_; | 175 std::unique_ptr<OverlayProcessor> overlay_processor_; |
176 | 176 |
177 // Whether it's valid to SwapBuffers with an empty rect. Trivially true when | 177 // Whether it's valid to SwapBuffers with an empty rect. Trivially true when |
178 // using partial swap. | 178 // using partial swap. |
179 bool allow_empty_swap_; | 179 bool allow_empty_swap_ = false; |
180 // Whether partial swap can be used. | 180 // Whether partial swap can be used. |
181 bool use_partial_swap_; | 181 bool use_partial_swap_ = false; |
182 // Whether overdraw feedback is enabled and can be used. | 182 // Whether overdraw feedback is enabled and can be used. |
183 bool overdraw_feedback_ = false; | 183 bool overdraw_feedback_ = false; |
184 | 184 |
danakj
2017/02/15 16:01:01
nit: no whitespace
| |
185 // Whether the SetDrawRectangle command is in use. | |
186 bool use_set_draw_rectangle_ = false; | |
187 | |
185 // TODO(danakj): Just use a vector of pairs here? Hash map is way overkill. | 188 // TODO(danakj): Just use a vector of pairs here? Hash map is way overkill. |
186 std::unordered_map<int, std::unique_ptr<ScopedResource>> | 189 std::unordered_map<int, std::unique_ptr<ScopedResource>> |
187 render_pass_textures_; | 190 render_pass_textures_; |
188 std::unordered_map<int, TileDrawQuad> render_pass_bypass_quads_; | 191 std::unordered_map<int, TileDrawQuad> render_pass_bypass_quads_; |
189 | 192 |
190 RenderPassFilterList render_pass_filters_; | 193 RenderPassFilterList render_pass_filters_; |
191 RenderPassFilterList render_pass_background_filters_; | 194 RenderPassFilterList render_pass_background_filters_; |
192 | 195 |
193 bool visible_ = false; | 196 bool visible_ = false; |
194 | 197 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
232 gfx::ColorSpace reshape_device_color_space_; | 235 gfx::ColorSpace reshape_device_color_space_; |
233 bool reshape_has_alpha_ = false; | 236 bool reshape_has_alpha_ = false; |
234 bool reshape_use_stencil_ = false; | 237 bool reshape_use_stencil_ = false; |
235 | 238 |
236 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 239 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
237 }; | 240 }; |
238 | 241 |
239 } // namespace cc | 242 } // namespace cc |
240 | 243 |
241 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 244 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
OLD | NEW |