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

Side by Side Diff: Source/core/platform/graphics/chromium/ImageFrameGenerator.cpp

Issue 27140003: Move ScaledImageFragment.cpp/.h to platform/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 27
28 #include "core/platform/graphics/chromium/ImageFrameGenerator.h" 28 #include "core/platform/graphics/chromium/ImageFrameGenerator.h"
29 29
30 #include "core/platform/graphics/chromium/DiscardablePixelRef.h" 30 #include "core/platform/graphics/chromium/DiscardablePixelRef.h"
31 #include "core/platform/graphics/chromium/ImageDecodingStore.h" 31 #include "core/platform/graphics/chromium/ImageDecodingStore.h"
32 #include "core/platform/graphics/chromium/ScaledImageFragment.h"
33 #include "core/platform/image-decoders/ImageDecoder.h" 32 #include "core/platform/image-decoders/ImageDecoder.h"
34 #include "platform/SharedBuffer.h" 33 #include "platform/SharedBuffer.h"
35 #include "platform/TraceEvent.h" 34 #include "platform/TraceEvent.h"
35 #include "platform/graphics/ScaledImageFragment.h"
36 36
37 #include "skia/ext/image_operations.h" 37 #include "skia/ext/image_operations.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 namespace { 41 namespace {
42 42
43 skia::ImageOperations::ResizeMethod resizeMethod() 43 skia::ImageOperations::ResizeMethod resizeMethod()
44 { 44 {
45 return skia::ImageOperations::RESIZE_LANCZOS3; 45 return skia::ImageOperations::RESIZE_LANCZOS3;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 bool ImageFrameGenerator::hasAlpha(size_t index) 255 bool ImageFrameGenerator::hasAlpha(size_t index)
256 { 256 {
257 MutexLocker lock(m_alphaMutex); 257 MutexLocker lock(m_alphaMutex);
258 if (index < m_hasAlpha.size()) 258 if (index < m_hasAlpha.size())
259 return m_hasAlpha[index]; 259 return m_hasAlpha[index];
260 return true; 260 return true;
261 } 261 }
262 262
263 } // namespace WebCore 263 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698