| OLD | NEW |
| 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 29 matching lines...) Expand all Loading... |
| 40 #include "wtf/Vector.h" | 40 #include "wtf/Vector.h" |
| 41 | 41 |
| 42 #if USE(QCMSLIB) | 42 #if USE(QCMSLIB) |
| 43 #include "qcms.h" | 43 #include "qcms.h" |
| 44 #if OS(MACOSX) | 44 #if OS(MACOSX) |
| 45 #include <ApplicationServices/ApplicationServices.h> | 45 #include <ApplicationServices/ApplicationServices.h> |
| 46 #include "wtf/RetainPtr.h" | 46 #include "wtf/RetainPtr.h" |
| 47 #endif | 47 #endif |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 namespace WebCore { | 50 namespace blink { |
| 51 | 51 |
| 52 // ImageDecoder is a base for all format-specific decoders | 52 // ImageDecoder is a base for all format-specific decoders |
| 53 // (e.g. JPEGImageDecoder). This base manages the ImageFrame cache. | 53 // (e.g. JPEGImageDecoder). This base manages the ImageFrame cache. |
| 54 // | 54 // |
| 55 class PLATFORM_EXPORT ImageDecoder { | 55 class PLATFORM_EXPORT ImageDecoder { |
| 56 WTF_MAKE_NONCOPYABLE(ImageDecoder); WTF_MAKE_FAST_ALLOCATED; | 56 WTF_MAKE_NONCOPYABLE(ImageDecoder); WTF_MAKE_FAST_ALLOCATED; |
| 57 public: | 57 public: |
| 58 static const size_t noDecodedImageByteLimit = blink::Platform::noDecodedImag
eByteLimit; | 58 static const size_t noDecodedImageByteLimit = blink::Platform::noDecodedImag
eByteLimit; |
| 59 | 59 |
| 60 ImageDecoder(ImageSource::AlphaOption alphaOption, ImageSource::GammaAndColo
rProfileOption gammaAndColorProfileOption, size_t maxDecodedBytes) | 60 ImageDecoder(ImageSource::AlphaOption alphaOption, ImageSource::GammaAndColo
rProfileOption gammaAndColorProfileOption, size_t maxDecodedBytes) |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 * static_cast<unsigned long long>(height); | 296 * static_cast<unsigned long long>(height); |
| 297 return total_size > ((1 << 29) - 1); | 297 return total_size > ((1 << 29) - 1); |
| 298 } | 298 } |
| 299 | 299 |
| 300 IntSize m_size; | 300 IntSize m_size; |
| 301 bool m_sizeAvailable; | 301 bool m_sizeAvailable; |
| 302 bool m_isAllDataReceived; | 302 bool m_isAllDataReceived; |
| 303 bool m_failed; | 303 bool m_failed; |
| 304 }; | 304 }; |
| 305 | 305 |
| 306 } // namespace WebCore | 306 } // namespace blink |
| 307 | 307 |
| 308 #endif | 308 #endif |
| OLD | NEW |