| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "wtf/PassRefPtr.h" | 43 #include "wtf/PassRefPtr.h" |
| 44 #include "wtf/Uint8ClampedArray.h" | 44 #include "wtf/Uint8ClampedArray.h" |
| 45 #include "wtf/Vector.h" | 45 #include "wtf/Vector.h" |
| 46 | 46 |
| 47 class SkCanvas; | 47 class SkCanvas; |
| 48 | 48 |
| 49 namespace blink { | 49 namespace blink { |
| 50 class WebGraphicsContext3D; | 50 class WebGraphicsContext3D; |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace WebCore { | 53 namespace blink { |
| 54 | 54 |
| 55 class DrawingBuffer; | 55 class DrawingBuffer; |
| 56 class GraphicsContext; | 56 class GraphicsContext; |
| 57 class Image; | 57 class Image; |
| 58 class ImageBufferClient; | 58 class ImageBufferClient; |
| 59 class IntPoint; | 59 class IntPoint; |
| 60 class IntRect; | 60 class IntRect; |
| 61 | 61 |
| 62 enum Multiply { | 62 enum Multiply { |
| 63 Premultiplied, | 63 Premultiplied, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 ImageDataBuffer(const IntSize& size, PassRefPtr<Uint8ClampedArray> data) : m
_size(size), m_data(data) { } | 146 ImageDataBuffer(const IntSize& size, PassRefPtr<Uint8ClampedArray> data) : m
_size(size), m_data(data) { } |
| 147 IntSize size() const { return m_size; } | 147 IntSize size() const { return m_size; } |
| 148 unsigned char* data() const { return m_data->data(); } | 148 unsigned char* data() const { return m_data->data(); } |
| 149 | 149 |
| 150 IntSize m_size; | 150 IntSize m_size; |
| 151 RefPtr<Uint8ClampedArray> m_data; | 151 RefPtr<Uint8ClampedArray> m_data; |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String&
mimeType, const double* quality); | 154 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String&
mimeType, const double* quality); |
| 155 | 155 |
| 156 } // namespace WebCore | 156 } // namespace blink |
| 157 | 157 |
| 158 #endif // ImageBuffer_h | 158 #endif // ImageBuffer_h |
| OLD | NEW |