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

Side by Side Diff: Source/core/platform/graphics/ImageSource.cpp

Issue 15447002: Remove ~1750 superfluous includes from core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebase a few hours Created 7 years, 7 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 | « Source/core/platform/graphics/Image.cpp ('k') | Source/core/platform/graphics/MediaPlayer.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) 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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/Image.cpp ('k') | Source/core/platform/graphics/MediaPlayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698