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

Unified Diff: cc/output/dc_layer_overlay.h

Issue 2901723002: Record histogram of reason for quads not being put in an overlay. (Closed)
Patch Set: put in one function Created 3 years, 7 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 | « no previous file | cc/output/dc_layer_overlay.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/dc_layer_overlay.h
diff --git a/cc/output/dc_layer_overlay.h b/cc/output/dc_layer_overlay.h
index 5ae861a22d85804fccc5d30b628e4feef893a06e..6daeedc02e71ee8a9166823f4ff8be84e594313e 100644
--- a/cc/output/dc_layer_overlay.h
+++ b/cc/output/dc_layer_overlay.h
@@ -66,12 +66,17 @@ typedef std::vector<DCLayerOverlay> DCLayerOverlayList;
class DCLayerOverlayProcessor {
public:
+ // This is used for a histogram to determine why overlays are or aren't
+ // used, so don't remove entries and make sure to update enums.xml if
+ // it changes.
enum DCLayerResult {
DC_LAYER_SUCCESS,
+ DC_LAYER_FAILED_UNSUPPORTED_QUAD,
DC_LAYER_FAILED_QUAD_BLEND_MODE,
DC_LAYER_FAILED_TEXTURE_NOT_CANDIDATE,
DC_LAYER_FAILED_OCCLUDED,
- DC_LAYER_FAILED_UNKNOWN
+ DC_LAYER_FAILED_COMPLEX_TRANSFORM,
+ DC_LAYER_FAILED_MAX,
};
void Process(ResourceProvider* resource_provider,
« no previous file with comments | « no previous file | cc/output/dc_layer_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698