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

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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 } 179 }
180 180
181 const RendererSettings* const settings_; 181 const RendererSettings* const settings_;
182 OutputSurface* const output_surface_; 182 OutputSurface* const output_surface_;
183 ResourceProvider* const resource_provider_; 183 ResourceProvider* const resource_provider_;
184 // This can be replaced by test implementations. 184 // This can be replaced by test implementations.
185 std::unique_ptr<OverlayProcessor> overlay_processor_; 185 std::unique_ptr<OverlayProcessor> overlay_processor_;
186 186
187 // Whether it's valid to SwapBuffers with an empty rect. Trivially true when 187 // Whether it's valid to SwapBuffers with an empty rect. Trivially true when
188 // using partial swap. 188 // using partial swap.
189 bool allow_empty_swap_; 189 bool allow_empty_swap_ = false;
190 // Whether partial swap can be used. 190 // Whether partial swap can be used.
191 bool use_partial_swap_; 191 bool use_partial_swap_ = false;
192 // Whether overdraw feedback is enabled and can be used. 192 // Whether overdraw feedback is enabled and can be used.
193 bool overdraw_feedback_ = false; 193 bool overdraw_feedback_ = false;
194 194
195 // Whether the SetDrawRectangle command is in use.
196 bool use_set_draw_rectangle_ = false;
197
195 // TODO(danakj): Just use a vector of pairs here? Hash map is way overkill. 198 // TODO(danakj): Just use a vector of pairs here? Hash map is way overkill.
196 std::unordered_map<int, std::unique_ptr<ScopedResource>> 199 std::unordered_map<int, std::unique_ptr<ScopedResource>>
197 render_pass_textures_; 200 render_pass_textures_;
198 std::unordered_map<int, TileDrawQuad> render_pass_bypass_quads_; 201 std::unordered_map<int, TileDrawQuad> render_pass_bypass_quads_;
199 202
200 RenderPassFilterList render_pass_filters_; 203 RenderPassFilterList render_pass_filters_;
201 RenderPassFilterList render_pass_background_filters_; 204 RenderPassFilterList render_pass_background_filters_;
202 205
203 bool visible_ = false; 206 bool visible_ = false;
204 207
(...skipping 20 matching lines...) Expand all
225 gfx::ColorSpace reshape_device_color_space_; 228 gfx::ColorSpace reshape_device_color_space_;
226 bool reshape_has_alpha_ = false; 229 bool reshape_has_alpha_ = false;
227 bool reshape_use_stencil_ = false; 230 bool reshape_use_stencil_ = false;
228 231
229 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 232 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
230 }; 233 };
231 234
232 } // namespace cc 235 } // namespace cc
233 236
234 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 237 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/direct_renderer.cc » ('j') | content/browser/compositor/gpu_browser_compositor_output_surface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698