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

Side by Side Diff: Source/core/platform/graphics/ImageBuffer.h

Issue 37803003: Move GraphicsTypes* and ColorSpace to Source/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: I misread Adam's comment, the exports are needed in one place 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
« no previous file with comments | « Source/core/platform/graphics/Image.cpp ('k') | Source/core/platform/graphics/MediaPlayer.h » ('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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 10 matching lines...) Expand all
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #ifndef ImageBuffer_h 28 #ifndef ImageBuffer_h
29 #define ImageBuffer_h 29 #define ImageBuffer_h
30 30
31 #include "core/platform/graphics/ColorSpace.h"
32 #include "core/platform/graphics/GraphicsContext.h" 31 #include "core/platform/graphics/GraphicsContext.h"
33 #include "core/platform/graphics/GraphicsTypes.h"
34 #include "core/platform/graphics/GraphicsTypes3D.h"
35 #include "core/platform/graphics/chromium/Canvas2DLayerBridge.h" 32 #include "core/platform/graphics/chromium/Canvas2DLayerBridge.h"
36 #include "platform/geometry/FloatRect.h" 33 #include "platform/geometry/FloatRect.h"
37 #include "platform/geometry/IntSize.h" 34 #include "platform/geometry/IntSize.h"
35 #include "platform/graphics/ColorSpace.h"
36 #include "platform/graphics/GraphicsTypes.h"
37 #include "platform/graphics/GraphicsTypes3D.h"
38 #include "platform/transforms/AffineTransform.h" 38 #include "platform/transforms/AffineTransform.h"
39 #include "wtf/Forward.h" 39 #include "wtf/Forward.h"
40 #include "wtf/OwnPtr.h" 40 #include "wtf/OwnPtr.h"
41 #include "wtf/PassOwnPtr.h" 41 #include "wtf/PassOwnPtr.h"
42 #include "wtf/PassRefPtr.h" 42 #include "wtf/PassRefPtr.h"
43 #include "wtf/Uint8ClampedArray.h" 43 #include "wtf/Uint8ClampedArray.h"
44 #include "wtf/Vector.h" 44 #include "wtf/Vector.h"
45 45
46 class SkCanvas; 46 class SkCanvas;
47 47
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // so that create() knows when it should return failure. 150 // so that create() knows when it should return failure.
151 ImageBuffer(const IntSize&, float resolutionScale, RenderingMode, OpacityMod e, int acceleratedSampleCount, bool& success); 151 ImageBuffer(const IntSize&, float resolutionScale, RenderingMode, OpacityMod e, int acceleratedSampleCount, bool& success);
152 ImageBuffer(const IntSize&, float resolutionScale, const GraphicsContext*, b ool hasAlpha, bool& success); 152 ImageBuffer(const IntSize&, float resolutionScale, const GraphicsContext*, b ool hasAlpha, bool& success);
153 }; 153 };
154 154
155 String ImageDataToDataURL(const ImageData&, const String& mimeType, const double * quality); 155 String ImageDataToDataURL(const ImageData&, const String& mimeType, const double * quality);
156 156
157 } // namespace WebCore 157 } // namespace WebCore
158 158
159 #endif // ImageBuffer_h 159 #endif // ImageBuffer_h
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/Image.cpp ('k') | Source/core/platform/graphics/MediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698