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

Side by Side Diff: cc/output/direct_renderer.h

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 10 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_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
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 // Whether the SetDrawRectangle command is in use.
185 bool use_set_draw_rectangle_ = false;
184 186
185 // TODO(danakj): Just use a vector of pairs here? Hash map is way overkill. 187 // TODO(danakj): Just use a vector of pairs here? Hash map is way overkill.
186 std::unordered_map<int, std::unique_ptr<ScopedResource>> 188 std::unordered_map<int, std::unique_ptr<ScopedResource>>
187 render_pass_textures_; 189 render_pass_textures_;
188 std::unordered_map<int, TileDrawQuad> render_pass_bypass_quads_; 190 std::unordered_map<int, TileDrawQuad> render_pass_bypass_quads_;
189 191
190 RenderPassFilterList render_pass_filters_; 192 RenderPassFilterList render_pass_filters_;
191 RenderPassFilterList render_pass_background_filters_; 193 RenderPassFilterList render_pass_background_filters_;
192 194
193 bool visible_ = false; 195 bool visible_ = false;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 gfx::ColorSpace reshape_device_color_space_; 234 gfx::ColorSpace reshape_device_color_space_;
233 bool reshape_has_alpha_ = false; 235 bool reshape_has_alpha_ = false;
234 bool reshape_use_stencil_ = false; 236 bool reshape_use_stencil_ = false;
235 237
236 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 238 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
237 }; 239 };
238 240
239 } // namespace cc 241 } // namespace cc
240 242
241 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 243 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698