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

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

Issue 2612023002: cc: Implement overdraw feedback debugging feature. (Closed)
Patch Set: fix typo in comment Created 3 years, 11 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_;
189 // Whether partial swap can be used. 189 // Whether partial swap can be used.
190 bool use_partial_swap_; 190 bool use_partial_swap_;
191 // Whether overdraw feedback is enabled and can be used.
192 bool overdraw_feedback_;
191 193
192 // TODO(danakj): Just use a vector of pairs here? Hash map is way overkill. 194 // TODO(danakj): Just use a vector of pairs here? Hash map is way overkill.
193 std::unordered_map<int, std::unique_ptr<ScopedResource>> 195 std::unordered_map<int, std::unique_ptr<ScopedResource>>
194 render_pass_textures_; 196 render_pass_textures_;
195 std::unordered_map<int, TileDrawQuad> render_pass_bypass_quads_; 197 std::unordered_map<int, TileDrawQuad> render_pass_bypass_quads_;
196 198
197 RenderPassFilterList render_pass_filters_; 199 RenderPassFilterList render_pass_filters_;
198 RenderPassFilterList render_pass_background_filters_; 200 RenderPassFilterList render_pass_background_filters_;
199 201
200 bool visible_ = false; 202 bool visible_ = false;
(...skipping 10 matching lines...) Expand all
211 213
212 private: 214 private:
213 bool initialized_ = false; 215 bool initialized_ = false;
214 gfx::Size enlarge_pass_texture_amount_; 216 gfx::Size enlarge_pass_texture_amount_;
215 217
216 // Cached values given to Reshape(). 218 // Cached values given to Reshape().
217 gfx::Size reshape_surface_size_; 219 gfx::Size reshape_surface_size_;
218 float reshape_device_scale_factor_ = 0.f; 220 float reshape_device_scale_factor_ = 0.f;
219 gfx::ColorSpace reshape_device_color_space_; 221 gfx::ColorSpace reshape_device_color_space_;
220 bool reshape_has_alpha_ = false; 222 bool reshape_has_alpha_ = false;
223 bool reshape_use_stencil_ = false;
221 224
222 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 225 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
223 }; 226 };
224 227
225 } // namespace cc 228 } // namespace cc
226 229
227 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 230 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/base/switches.cc ('k') | cc/output/direct_renderer.cc » ('j') | cc/output/direct_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698