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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsTypes.h

Issue 1609343004: Add display list fallback reason histograms for 2D canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl web Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/GraphicsTypes.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsTypes.h b/third_party/WebKit/Source/platform/graphics/GraphicsTypes.h
index 4f73466c314b24fa0cfd84bd8c1c1f2020085e08..610906beff5b3223f513fb47e031ab80723bcfb8 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsTypes.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsTypes.h
@@ -84,6 +84,35 @@ enum AccelerationHint {
PreferNoAcceleration,
};
+enum SnapshotReason {
+ SnapshotReasonUnknown,
+ SnapshotReasonGetImageData,
+ SnapshotReasonCopyToWebGLTexture,
+ SnapshotReasonPaint,
+ SnapshotReasonToDataURL,
+ SnapshotReasonToBlob,
+ SnapshotReasonCanvasListenerCapture,
+ SnapshotReasonDrawImage,
+ SnapshotReasonCreatePattern,
+};
+
+// Note: enum used directly for histogram, values must not change
+enum DisableDeferralReason {
+ DisableDeferralReasonUnknown = 0, // Should not appear in production histograms
+ DisableDeferralReasonExpensiveOverdrawHeuristic = 1,
+ DisableDeferralReasonUsingTextureBackedPattern = 2,
+ DisableDeferralReasonDrawImageOfVideo = 3,
+ DisableDeferralReasonDrawImageOfAnimated2dCanvas = 4,
+ DisableDeferralReasonSubPixelTextAntiAliasingSupport = 5,
+ DisableDeferralReasonCount,
+};
+
+enum FlushReason {
+ FlushReasonUnknown,
+ FlushReasonInitialClear,
+ FlushReasonDrawImageOfWebGL,
+};
+
enum ImageInitializationMode {
InitializeImagePixels,
DoNotInitializeImagePixels,

Powered by Google App Engine
This is Rietveld 408576698