OLD | NEW |
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 class IntPoint; | 52 class IntPoint; |
53 class IntRect; | 53 class IntRect; |
54 | 54 |
55 enum Multiply { | 55 enum Multiply { |
56 Premultiplied, | 56 Premultiplied, |
57 Unmultiplied | 57 Unmultiplied |
58 }; | 58 }; |
59 | 59 |
60 enum RenderingMode { | 60 enum RenderingMode { |
61 Unaccelerated, | 61 Unaccelerated, |
| 62 UnacceleratedNonPlatformBuffer, // Use plain memory allocation rather th
an platform API to allocate backing store. |
62 Accelerated | 63 Accelerated |
63 }; | 64 }; |
64 | 65 |
65 enum BackingStoreCopy { | 66 enum BackingStoreCopy { |
66 CopyBackingStore, // Guarantee subsequent draws don't affect the copy. | 67 CopyBackingStore, // Guarantee subsequent draws don't affect the copy. |
67 DontCopyBackingStore // Subsequent draws may affect the copy. | 68 DontCopyBackingStore // Subsequent draws may affect the copy. |
68 }; | 69 }; |
69 | 70 |
70 class ImageBuffer { | 71 class ImageBuffer { |
71 WTF_MAKE_NONCOPYABLE(ImageBuffer); WTF_MAKE_FAST_ALLOCATED; | 72 WTF_MAKE_NONCOPYABLE(ImageBuffer); WTF_MAKE_FAST_ALLOCATED; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 ImageBuffer(const IntSize&, ColorSpace, RenderingMode, bool& success); | 146 ImageBuffer(const IntSize&, ColorSpace, RenderingMode, bool& success); |
146 }; | 147 }; |
147 | 148 |
148 #if USE(CG) || USE(SKIA) | 149 #if USE(CG) || USE(SKIA) |
149 String ImageDataToDataURL(const ImageData&, const String& mimeType, const do
uble* quality); | 150 String ImageDataToDataURL(const ImageData&, const String& mimeType, const do
uble* quality); |
150 #endif | 151 #endif |
151 | 152 |
152 } // namespace WebCore | 153 } // namespace WebCore |
153 | 154 |
154 #endif // ImageBuffer_h | 155 #endif // ImageBuffer_h |
OLD | NEW |