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

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

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 9 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 | « android_webview/browser/parent_output_surface.cc ('k') | cc/output/direct_renderer.cc » ('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_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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 } 170 }
171 171
172 const RendererSettings* const settings_; 172 const RendererSettings* const settings_;
173 OutputSurface* const output_surface_; 173 OutputSurface* const output_surface_;
174 ResourceProvider* const resource_provider_; 174 ResourceProvider* const resource_provider_;
175 // This can be replaced by test implementations. 175 // This can be replaced by test implementations.
176 std::unique_ptr<OverlayProcessor> overlay_processor_; 176 std::unique_ptr<OverlayProcessor> overlay_processor_;
177 177
178 // Whether it's valid to SwapBuffers with an empty rect. Trivially true when 178 // Whether it's valid to SwapBuffers with an empty rect. Trivially true when
179 // using partial swap. 179 // using partial swap.
180 bool allow_empty_swap_; 180 bool allow_empty_swap_ = false;
181 // Whether partial swap can be used. 181 // Whether partial swap can be used.
182 bool use_partial_swap_; 182 bool use_partial_swap_ = false;
183 // Whether overdraw feedback is enabled and can be used. 183 // Whether overdraw feedback is enabled and can be used.
184 bool overdraw_feedback_ = false; 184 bool overdraw_feedback_ = false;
185 // Whether the SetDrawRectangle command is in use.
186 bool use_set_draw_rectangle_ = false;
185 187
186 // 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.
187 std::unordered_map<int, std::unique_ptr<ScopedResource>> 189 std::unordered_map<int, std::unique_ptr<ScopedResource>>
188 render_pass_textures_; 190 render_pass_textures_;
189 std::unordered_map<int, TileDrawQuad> render_pass_bypass_quads_; 191 std::unordered_map<int, TileDrawQuad> render_pass_bypass_quads_;
190 192
191 RenderPassFilterList render_pass_filters_; 193 RenderPassFilterList render_pass_filters_;
192 RenderPassFilterList render_pass_background_filters_; 194 RenderPassFilterList render_pass_background_filters_;
193 195
194 bool visible_ = false; 196 bool visible_ = false;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 gfx::ColorSpace reshape_device_color_space_; 235 gfx::ColorSpace reshape_device_color_space_;
234 bool reshape_has_alpha_ = false; 236 bool reshape_has_alpha_ = false;
235 bool reshape_use_stencil_ = false; 237 bool reshape_use_stencil_ = false;
236 238
237 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 239 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
238 }; 240 };
239 241
240 } // namespace cc 242 } // namespace cc
241 243
242 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 244 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « android_webview/browser/parent_output_surface.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698