| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #ifndef ImageDecoder_h | 27 #ifndef ImageDecoder_h |
| 28 #define ImageDecoder_h | 28 #define ImageDecoder_h |
| 29 | 29 |
| 30 #include "SkColorPriv.h" | 30 #include "SkColorPriv.h" |
| 31 #include "core/platform/PlatformScreen.h" | 31 #include "core/platform/PlatformScreen.h" |
| 32 #include "core/platform/SharedBuffer.h" | 32 #include "core/platform/SharedBuffer.h" |
| 33 #include "core/platform/graphics/ImageSource.h" | 33 #include "core/platform/graphics/ImageSource.h" |
| 34 #include "core/platform/graphics/IntRect.h" | 34 #include "core/platform/graphics/IntRect.h" |
| 35 #include "core/platform/graphics/skia/NativeImageSkia.h" | 35 #include "core/platform/graphics/skia/NativeImageSkia.h" |
| 36 #include <wtf/Assertions.h> | 36 #include "wtf/Assertions.h" |
| 37 #include <wtf/RefPtr.h> | 37 #include "wtf/RefPtr.h" |
| 38 #include <wtf/text/WTFString.h> | 38 #include "wtf/text/WTFString.h" |
| 39 #include <wtf/Vector.h> | 39 #include "wtf/Vector.h" |
| 40 | 40 |
| 41 #if USE(QCMSLIB) | 41 #if USE(QCMSLIB) |
| 42 #include "qcms.h" | 42 #include "qcms.h" |
| 43 #if OS(DARWIN) | 43 #if OS(DARWIN) |
| 44 #include <ApplicationServices/ApplicationServices.h> | 44 #include <ApplicationServices/ApplicationServices.h> |
| 45 #include "core/platform/graphics/cg/GraphicsContextCG.h" | 45 #include "core/platform/graphics/cg/GraphicsContextCG.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 WebCore { |
| 51 | 51 |
| 52 // ImageFrame represents the decoded image data. This buffer is what all | 52 // ImageFrame represents the decoded image data. This buffer is what all |
| 53 // decoders write a single frame into. | 53 // decoders write a single frame into. |
| 54 class ImageFrame { | 54 class ImageFrame { |
| 55 public: | 55 public: |
| 56 enum FrameStatus { FrameEmpty, FramePartial, FrameComplete }; | 56 enum FrameStatus { FrameEmpty, FramePartial, FrameComplete }; |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 426 |
| 427 IntSize m_size; | 427 IntSize m_size; |
| 428 bool m_sizeAvailable; | 428 bool m_sizeAvailable; |
| 429 bool m_isAllDataReceived; | 429 bool m_isAllDataReceived; |
| 430 bool m_failed; | 430 bool m_failed; |
| 431 }; | 431 }; |
| 432 | 432 |
| 433 } // namespace WebCore | 433 } // namespace WebCore |
| 434 | 434 |
| 435 #endif | 435 #endif |
| OLD | NEW |