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

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

Issue 2829543003: gpu: Empty swaps for surfaceless output surfaces. (Closed)
Patch Set: fix cc_unittests Created 3 years, 8 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 | « no previous file | cc/output/direct_renderer.cc » ('j') | cc/output/direct_renderer.cc » ('J')
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_ = false; 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_ = false; 190 bool use_partial_swap_ = false;
Daniele Castagna 2017/04/19 19:10:36 This names are a little bit confusing, or at least
reveman 2017/04/19 23:59:03 Sure. Either use_post_sub_buffer or use_sub_buffer
191 // Whether non-empty partial swap should be allowed.
192 bool allow_partial_swap_ = false;
191 // Whether overdraw feedback is enabled and can be used. 193 // Whether overdraw feedback is enabled and can be used.
192 bool overdraw_feedback_ = false; 194 bool overdraw_feedback_ = false;
193 // Whether the SetDrawRectangle and EnableDCLayers commands are in 195 // Whether the SetDrawRectangle and EnableDCLayers commands are in
194 // use. 196 // use.
195 bool supports_dc_layers_ = false; 197 bool supports_dc_layers_ = false;
196 // Whether the output surface is actually using DirectComposition. 198 // Whether the output surface is actually using DirectComposition.
197 bool using_dc_layers_ = false; 199 bool using_dc_layers_ = false;
198 // This counts the number of draws since the last time 200 // This counts the number of draws since the last time
199 // DirectComposition layers needed to be used. 201 // DirectComposition layers needed to be used.
200 int frames_since_using_dc_layers_ = 0; 202 int frames_since_using_dc_layers_ = 0;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 gfx::ColorSpace reshape_device_color_space_; 250 gfx::ColorSpace reshape_device_color_space_;
249 bool reshape_has_alpha_ = false; 251 bool reshape_has_alpha_ = false;
250 bool reshape_use_stencil_ = false; 252 bool reshape_use_stencil_ = false;
251 253
252 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 254 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
253 }; 255 };
254 256
255 } // namespace cc 257 } // namespace cc
256 258
257 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 259 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/direct_renderer.cc » ('j') | cc/output/direct_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698