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

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

Issue 2400223002: Add UMA metrics to OffscreenCanvas's commit type (Closed)
Patch Set: remove an unnecessary include line Created 4 years, 2 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/OffscreenCanvasFrameDispatcherImpl.h
diff --git a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
index 16ffb5eed008ccc42af672f3314f1278af3ab5ee..d6353f9b4f47b0b4001e459a06caeb3208187bcd 100644
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
@@ -37,6 +37,14 @@ class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final
void ReturnResources(
Vector<cc::mojom::blink::ReturnedResourcePtr> resources) override;
+ enum OffscreenCanvasCommitType {
Ilya Sherman 2016/10/11 00:54:11 Please document that this enum is used to back an
xidachen 2016/10/11 17:21:16 Done.
+ CommitGPUCanvasGPUCompositing = 0,
+ CommitGPUCanvasSoftwareCompositing = 1,
+ CommitSoftwareCanvasGPUCompositing = 2,
+ CommitSoftwareCanvasSoftwareCompositing = 3,
+ OffscreenCanvasCommitTypeCount,
+ };
+
private:
const cc::SurfaceId m_surfaceId;
const int m_width;

Powered by Google App Engine
This is Rietveld 408576698