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

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

Issue 2800343004: Add histograms for animated image types
Patch Set: Created 3 years, 8 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/BitmapImageMetrics.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/BitmapImageMetrics.h
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h b/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h
index 79fe54912806cafdcdd10b9c2802123fc9cb7c0c..bb39a843779bc348d1a3673fc337518ad0636f35 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h
@@ -30,6 +30,15 @@ class PLATFORM_EXPORT BitmapImageMetrics {
DecodedImageTypeEnumEnd = ImageBMP + 1
};
+ // Values synced with 'AnimatedImageType' in
+ // src/tools/metrics/histograms/histograms.xml
+ enum AnimatedImageType {
+ AnimatedGIF = 0,
+ AnimatedWEBP = 1,
+ AnimatedPNG = 2,
+ AnimatedImageTypeEnumEnd = AnimatedPNG + 1
+ };
+
enum Gamma {
// Values synced with 'Gamma' in src/tools/metrics/histograms/histograms.xml
GammaLinear = 0,
@@ -47,6 +56,7 @@ class PLATFORM_EXPORT BitmapImageMetrics {
};
static void countDecodedImageType(const String& type);
+ static void countAnimatedImageType(AnimatedImageType);
static void countImageOrientation(const ImageOrientationEnum);
static void countImageGammaAndGamut(SkColorSpace*);
static void countOutputGammaAndGamut(SkColorSpace*);
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698