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

Unified Diff: Source/platform/image-decoders/ico/ICOImageDecoder.h

Issue 1242263011: Record UMA stats for Blink decoded image types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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: Source/platform/image-decoders/ico/ICOImageDecoder.h
diff --git a/Source/platform/image-decoders/ico/ICOImageDecoder.h b/Source/platform/image-decoders/ico/ICOImageDecoder.h
index 93278863c3ad3c8e155070a1aeb4698a555d0a67..a30e9336755b4e8a3b1a7693995df29be93da49b 100644
--- a/Source/platform/image-decoders/ico/ICOImageDecoder.h
+++ b/Source/platform/image-decoders/ico/ICOImageDecoder.h
@@ -79,7 +79,11 @@ private:
static bool compareEntries(const IconDirectoryEntry& a, const IconDirectoryEntry& b);
// ImageDecoder:
- virtual void decodeSize() { decode(0, true); }
+ virtual void decodeSize()
+ {
+ decode(0, true);
+ reportStats(ImageICO);
Noel Gordon 2015/07/30 18:11:47 Considering that each ICO decoder has one or more
urvang 2015/07/30 18:52:36 Ah good point, thanks!
+ }
size_t decodeFrameCount() override;
void decode(size_t index) override { decode(index, false); }
« no previous file with comments | « Source/platform/image-decoders/gif/GIFImageDecoder.h ('k') | Source/platform/image-decoders/jpeg/JPEGImageDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698