| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 148 |
| 149 struct ImageDataBuffer { | 149 struct ImageDataBuffer { |
| 150 ImageDataBuffer(const IntSize& size, PassRefPtr<Uint8ClampedArray> data) : m
_size(size), m_data(data) { } | 150 ImageDataBuffer(const IntSize& size, PassRefPtr<Uint8ClampedArray> data) : m
_size(size), m_data(data) { } |
| 151 IntSize size() const { return m_size; } | 151 IntSize size() const { return m_size; } |
| 152 unsigned char* data() const { return m_data->data(); } | 152 unsigned char* data() const { return m_data->data(); } |
| 153 | 153 |
| 154 IntSize m_size; | 154 IntSize m_size; |
| 155 RefPtr<Uint8ClampedArray> m_data; | 155 RefPtr<Uint8ClampedArray> m_data; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String&
mimeType, const double* quality); | |
| 159 | |
| 160 } // namespace blink | 158 } // namespace blink |
| 161 | 159 |
| 162 #endif // ImageBuffer_h | 160 #endif // ImageBuffer_h |
| OLD | NEW |