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

Side by Side Diff: Source/platform/image-decoders/ImageDecoder.h

Issue 23532077: [Experiment] Animated image decoder benchmark tool Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/platform/image-decoders/ImageDecoder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 // Whether or not the frame is fully received. 143 // Whether or not the frame is fully received.
144 virtual bool frameIsCompleteAtIndex(size_t) const; 144 virtual bool frameIsCompleteAtIndex(size_t) const;
145 145
146 // Duration for displaying a frame in seconds. This method is used by animat ed images only. 146 // Duration for displaying a frame in seconds. This method is used by animat ed images only.
147 virtual float frameDurationAtIndex(size_t) const { return 0; } 147 virtual float frameDurationAtIndex(size_t) const { return 0; }
148 148
149 // Number of bytes in the decoded frame requested. Return 0 if not yet decod ed. 149 // Number of bytes in the decoded frame requested. Return 0 if not yet decod ed.
150 virtual unsigned frameBytesAtIndex(size_t) const; 150 virtual unsigned frameBytesAtIndex(size_t) const;
151 151
152 virtual size_t countIndependentFrames() const;
153
154 virtual float countAverageDependentFrames() const;
155
156 virtual size_t countMaxDependentFrames() const;
157
152 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorProfile = flag; } 158 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorProfile = flag; }
153 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorProfi le; } 159 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorProfi le; }
154 160
155 ImageOrientation orientation() const { return m_orientation; } 161 ImageOrientation orientation() const { return m_orientation; }
156 162
157 enum { iccColorProfileHeaderLength = 128 }; 163 enum { iccColorProfileHeaderLength = 128 };
158 164
159 static bool rgbColorProfile(const char* profileData, unsigned profileLength) 165 static bool rgbColorProfile(const char* profileData, unsigned profileLength)
160 { 166 {
161 ASSERT_UNUSED(profileLength, profileLength >= iccColorProfileHeaderLengt h); 167 ASSERT_UNUSED(profileLength, profileLength >= iccColorProfileHeaderLengt h);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 302
297 IntSize m_size; 303 IntSize m_size;
298 bool m_sizeAvailable; 304 bool m_sizeAvailable;
299 bool m_isAllDataReceived; 305 bool m_isAllDataReceived;
300 bool m_failed; 306 bool m_failed;
301 }; 307 };
302 308
303 } // namespace WebCore 309 } // namespace WebCore
304 310
305 #endif 311 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/platform/image-decoders/ImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698