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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 PassRefPtr<Image> copyImage(BackingStoreCopy = CopyBackingStore, ScaleBehavi
or = Scaled) const; | 118 PassRefPtr<Image> copyImage(BackingStoreCopy = CopyBackingStore, ScaleBehavi
or = Scaled) const; |
119 // Give hints on the faster copyImage Mode, return DontCopyBackingStore if i
t supports the DontCopyBackingStore behavior | 119 // Give hints on the faster copyImage Mode, return DontCopyBackingStore if i
t supports the DontCopyBackingStore behavior |
120 // or return CopyBackingStore if it doesn't. | 120 // or return CopyBackingStore if it doesn't. |
121 static BackingStoreCopy fastCopyImageMode(); | 121 static BackingStoreCopy fastCopyImageMode(); |
122 | 122 |
123 bool getImageData(Multiply, const IntRect&, WTF::ArrayBufferContents&) const
; | 123 bool getImageData(Multiply, const IntRect&, WTF::ArrayBufferContents&) const
; |
124 | 124 |
125 void putByteArray(Multiply, const unsigned char* source, const IntSize& sour
ceSize, const IntRect& sourceRect, const IntPoint& destPoint); | 125 void putByteArray(Multiply, const unsigned char* source, const IntSize& sour
ceSize, const IntRect& sourceRect, const IntPoint& destPoint); |
126 | 126 |
| 127 String toDataURL(const String& mimeType, const double* quality = 0) const; |
127 AffineTransform baseTransform() const { return AffineTransform(); } | 128 AffineTransform baseTransform() const { return AffineTransform(); } |
128 WebLayer* platformLayer() const; | 129 WebLayer* platformLayer() const; |
129 | 130 |
130 // FIXME: current implementations of this method have the restriction that t
hey only work | 131 // FIXME: current implementations of this method have the restriction that t
hey only work |
131 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0
, as specified in | 132 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0
, as specified in |
132 // Extensions3D::canUseCopyTextureCHROMIUM(). | 133 // Extensions3D::canUseCopyTextureCHROMIUM(). |
133 // Destroys the TEXTURE_2D binding for the active texture unit of the passed
context | 134 // Destroys the TEXTURE_2D binding for the active texture unit of the passed
context |
134 bool copyToPlatformTexture(WebGraphicsContext3D*, Platform3DObject, GLenum,
GLenum, GLint, bool, bool); | 135 bool copyToPlatformTexture(WebGraphicsContext3D*, Platform3DObject, GLenum,
GLenum, GLint, bool, bool); |
135 | 136 |
136 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff
er); | 137 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff
er); |
(...skipping 22 matching lines...) Expand all Loading... |
159 unsigned char* pixels() const { return m_data; } | 160 unsigned char* pixels() const { return m_data; } |
160 int height() const { return m_size.height(); } | 161 int height() const { return m_size.height(); } |
161 int width() const { return m_size.width(); } | 162 int width() const { return m_size.width(); } |
162 unsigned char* m_data; | 163 unsigned char* m_data; |
163 IntSize m_size; | 164 IntSize m_size; |
164 }; | 165 }; |
165 | 166 |
166 } // namespace blink | 167 } // namespace blink |
167 | 168 |
168 #endif // ImageBuffer_h | 169 #endif // ImageBuffer_h |
OLD | NEW |