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) 2007 Alp Toker <alp.toker@collabora.co.uk> | 3 * Copyright (C) 2007 Alp Toker <alp.toker@collabora.co.uk> |
4 * Copyright (C) 2008, Google Inc. All rights reserved. | 4 * Copyright (C) 2008, Google Inc. All rights reserved. |
5 * Copyright (C) 2007-2009 Torch Mobile, Inc | 5 * Copyright (C) 2007-2009 Torch Mobile, Inc |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 13 matching lines...) Expand all Loading... |
24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "core/platform/graphics/ImageSource.h" | 30 #include "core/platform/graphics/ImageSource.h" |
31 | 31 |
32 #include "core/platform/image-decoders/ImageDecoder.h" | 32 #include "core/platform/image-decoders/ImageDecoder.h" |
33 | 33 |
34 #include "core/platform/NotImplemented.h" | |
35 #include "core/platform/PlatformMemoryInstrumentation.h" | 34 #include "core/platform/PlatformMemoryInstrumentation.h" |
36 #include "core/platform/graphics/ImageOrientation.h" | 35 #include "core/platform/graphics/ImageOrientation.h" |
37 | 36 |
38 #include "core/platform/graphics/chromium/DeferredImageDecoder.h" | 37 #include "core/platform/graphics/chromium/DeferredImageDecoder.h" |
39 | 38 |
40 namespace WebCore { | 39 namespace WebCore { |
41 | 40 |
42 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING) | 41 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING) |
43 unsigned ImageSource::s_maxPixelsPerDecodedImage = 1024 * 1024; | 42 unsigned ImageSource::s_maxPixelsPerDecodedImage = 1024 * 1024; |
44 #endif | 43 #endif |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 return m_decoder->frameBytesAtIndex(index); | 192 return m_decoder->frameBytesAtIndex(index); |
194 } | 193 } |
195 | 194 |
196 void ImageSource::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | 195 void ImageSource::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const |
197 { | 196 { |
198 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Image); | 197 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Image); |
199 info.addMember(m_decoder, "decoder"); | 198 info.addMember(m_decoder, "decoder"); |
200 } | 199 } |
201 | 200 |
202 } | 201 } |
OLD | NEW |