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

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

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

Powered by Google App Engine
This is Rietveld 408576698