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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/CanvasMetrics.h

Issue 1463573002: publish canvas context API stat metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CanvasMetrics_h
6 #define CanvasMetrics_h
7
8 #include "platform/PlatformExport.h"
9
10 namespace blink {
11
12 class PLATFORM_EXPORT CanvasMetrics {
13 public:
14 enum CanvasContextUsage {
15 CanvasCreated = 0,
16 GPUAccelerated2DCanvasImageBufferCreated = 1,
17 DisplayList2DCanvasImageBufferCreated = 2,
18 Unaccelerated2DCanvasImageBufferCreated = 3,
19 Accelerated2DCanvasGPUContextLost = 4,
20 Unaccelerated2DCanvasImageBufferCreationFailed = 5,
21 GPUAccelerated2DCanvasImageBufferCreationFailed = 6,
22 DisplayList2DCanvasFallbackToRaster = 7,
23 NumberOfUsages
24 };
25
26 static void countCanvasContextUsage(const CanvasContextUsage);
27 };
28
29 } // namespace blink
30
31 #endif // CanvasMetrics_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698