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

Unified Diff: Source/platform/image-decoders/png/PNGImageDecoder.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/png/PNGImageDecoder.h
diff --git a/Source/platform/image-decoders/png/PNGImageDecoder.h b/Source/platform/image-decoders/png/PNGImageDecoder.h
index 7f54c2e360725981b96c9c96ce4cb6b331a77995..6cb498e217ea6533cfcc61a7fa4b912b777d1cf2 100644
--- a/Source/platform/image-decoders/png/PNGImageDecoder.h
+++ b/Source/platform/image-decoders/png/PNGImageDecoder.h
@@ -51,7 +51,11 @@ public:
private:
// ImageDecoder:
- void decodeSize() override { decode(true); }
+ void decodeSize() override
+ {
+ decode(true);
+ reportStats(ImagePNG);
+ }
void decode(size_t) override { decode(false); }
// Decodes the image. If |onlySize| is true, stops decoding after

Powered by Google App Engine
This is Rietveld 408576698