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

Side by Side Diff: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h

Issue 1488133002: Add usage metrics for display and image color profiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed histograms to use suffixes Created 5 years 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
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 bool decodeSingleFrame(const uint8_t* dataBytes, size_t dataSize, size_t fra meIndex); 60 bool decodeSingleFrame(const uint8_t* dataBytes, size_t dataSize, size_t fra meIndex);
61 61
62 WebPIDecoder* m_decoder; 62 WebPIDecoder* m_decoder;
63 WebPDecBuffer m_decoderBuffer; 63 WebPDecBuffer m_decoderBuffer;
64 int m_formatFlags; 64 int m_formatFlags;
65 bool m_frameBackgroundHasAlpha; 65 bool m_frameBackgroundHasAlpha;
66 bool m_hasColorProfile; 66 bool m_hasColorProfile;
67 67
68 #if USE(QCMSLIB) 68 #if USE(QCMSLIB)
69 qcms_transform* colorTransform() const { return m_transform; } 69 qcms_transform* colorTransform() const { return m_transform; }
70 bool createColorTransform(const char* data, size_t); 70 bool createColorTransform(const char* data, size_t, ColorProfileStatus&);
71 void clearColorTransform(); 71 void clearColorTransform();
72 void readColorProfile(); 72 ColorProfileStatus readColorProfile();
73 73
74 qcms_transform* m_transform; 74 qcms_transform* m_transform;
75 #endif 75 #endif
76 76
77 bool updateDemuxer(); 77 bool updateDemuxer();
78 bool initFrameBuffer(size_t frameIndex); 78 bool initFrameBuffer(size_t frameIndex);
79 void applyPostProcessing(size_t frameIndex); 79 void applyPostProcessing(size_t frameIndex);
80 void clearFrameBuffer(size_t frameIndex) override; 80 void clearFrameBuffer(size_t frameIndex) override;
81 81
82 WebPDemuxer* m_demux; 82 WebPDemuxer* m_demux;
83 WebPDemuxState m_demuxState; 83 WebPDemuxState m_demuxState;
84 bool m_haveAlreadyParsedThisData; 84 bool m_haveAlreadyParsedThisData;
85 int m_repetitionCount; 85 int m_repetitionCount;
86 int m_decodedHeight; 86 int m_decodedHeight;
87 87
88 typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int); 88 typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int);
89 AlphaBlendFunction m_blendFunction; 89 AlphaBlendFunction m_blendFunction;
90 90
91 void clear(); 91 void clear();
92 void clearDecoder(); 92 void clearDecoder();
93 }; 93 };
94 94
95 } // namespace blink 95 } // namespace blink
96 96
97 #endif 97 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698