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

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

Issue 2048003002: Remove DeferredImageDecoder::setEnabled and ImageDecoder::deferredImageDecodingEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // animated images. 212 // animated images.
213 virtual float frameDurationAtIndex(size_t) const { return 0; } 213 virtual float frameDurationAtIndex(size_t) const { return 0; }
214 214
215 // Number of bytes in the decoded frame. Returns 0 if the decoder doesn't 215 // Number of bytes in the decoded frame. Returns 0 if the decoder doesn't
216 // have this frame cached (either because it hasn't been decoded, or because 216 // have this frame cached (either because it hasn't been decoded, or because
217 // it has been cleared). 217 // it has been cleared).
218 virtual size_t frameBytesAtIndex(size_t) const; 218 virtual size_t frameBytesAtIndex(size_t) const;
219 219
220 ImageOrientation orientation() const { return m_orientation; } 220 ImageOrientation orientation() const { return m_orientation; }
221 221
222 static bool deferredImageDecodingEnabled();
223
224 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorProfile = flag; } 222 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorProfile = flag; }
225 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorProfi le; } 223 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorProfi le; }
226 224
227 bool hasColorProfile() const; 225 bool hasColorProfile() const;
228 226
229 #if USE(QCMSLIB) 227 #if USE(QCMSLIB)
230 void setColorProfileAndTransform(const char* iccData, unsigned iccLength, bo ol hasAlpha, bool useSRGB); 228 void setColorProfileAndTransform(const char* iccData, unsigned iccLength, bo ol hasAlpha, bool useSRGB);
231 qcms_transform* colorTransform() { return m_sourceToOutputDeviceColorTransfo rm.get(); } 229 qcms_transform* colorTransform() { return m_sourceToOutputDeviceColorTransfo rm.get(); }
232 #endif 230 #endif
233 231
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 bool m_failed; 331 bool m_failed;
334 332
335 #if USE(QCMSLIB) 333 #if USE(QCMSLIB)
336 QCMSTransformUniquePtr m_sourceToOutputDeviceColorTransform; 334 QCMSTransformUniquePtr m_sourceToOutputDeviceColorTransform;
337 #endif 335 #endif
338 }; 336 };
339 337
340 } // namespace blink 338 } // namespace blink
341 339
342 #endif 340 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698