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

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

Issue 2400223002: Add UMA metrics to OffscreenCanvas's commit type (Closed)
Patch Set: rebase + address comments 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 59111dff6b65f56d889e104dd6c59ee6de8c7f77..c38554adc2689fe33bc0d598707a55725c59e961 100644
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
@@ -37,6 +37,15 @@ class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final
void ReturnResources(
Vector<cc::mojom::blink::ReturnedResourcePtr> resources) override;
+ // This enum is used in histogram, so it should be append-only.
+ enum OffscreenCanvasCommitType {
+ CommitGPUCanvasGPUCompositing = 0,
+ CommitGPUCanvasSoftwareCompositing = 1,
+ CommitSoftwareCanvasGPUCompositing = 2,
+ CommitSoftwareCanvasSoftwareCompositing = 3,
+ OffscreenCanvasCommitTypeCount,
+ };
+
private:
const cc::SurfaceId m_surfaceId;
const int m_width;
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698