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

Unified Diff: cc/output/direct_renderer.h

Issue 2612023002: cc: Implement overdraw feedback debugging feature. (Closed)
Patch Set: make sure overdraw_feedback_ is initialized and reset properly 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/base/switches.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.h
diff --git a/cc/output/direct_renderer.h b/cc/output/direct_renderer.h
index 23314b43e0b8c83c97fff0eaebf426fde4a09f38..d08d58d59e71297435ad048252eaea9b8f9e6142 100644
--- a/cc/output/direct_renderer.h
+++ b/cc/output/direct_renderer.h
@@ -188,6 +188,8 @@ class CC_EXPORT DirectRenderer {
bool allow_empty_swap_;
// Whether partial swap can be used.
bool use_partial_swap_;
+ // Whether overdraw feedback is enabled and can be used.
+ bool overdraw_feedback_ = false;
// TODO(danakj): Just use a vector of pairs here? Hash map is way overkill.
std::unordered_map<int, std::unique_ptr<ScopedResource>>
@@ -211,6 +213,9 @@ class CC_EXPORT DirectRenderer {
private:
bool initialized_ = false;
+#if DCHECK_IS_ON()
+ bool overdraw_feedback_support_missing_logged_once_ = false;
+#endif
gfx::Size enlarge_pass_texture_amount_;
// Cached values given to Reshape().
@@ -218,6 +223,7 @@ class CC_EXPORT DirectRenderer {
float reshape_device_scale_factor_ = 0.f;
gfx::ColorSpace reshape_device_color_space_;
bool reshape_has_alpha_ = false;
+ bool reshape_use_stencil_ = false;
DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
};
« no previous file with comments | « cc/base/switches.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698