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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 void putByteArray(Multiply, | 134 void putByteArray(Multiply, |
135 const unsigned char* source, | 135 const unsigned char* source, |
136 const IntSize& sourceSize, | 136 const IntSize& sourceSize, |
137 const IntRect& sourceRect, | 137 const IntRect& sourceRect, |
138 const IntPoint& destPoint); | 138 const IntPoint& destPoint); |
139 | 139 |
140 AffineTransform baseTransform() const { return AffineTransform(); } | 140 AffineTransform baseTransform() const { return AffineTransform(); } |
141 WebLayer* platformLayer() const; | 141 WebLayer* platformLayer() const; |
142 | 142 |
143 // FIXME: current implementations of this method have the restriction that the
y only work | 143 // Destroys the TEXTURE_2D binding for the active texture unit of the passed |
144 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0,
as specified in | 144 // context. |
| 145 // FIXME: Current implementations of this method only work with textures that |
| 146 // are RGB or RGBA format, UNSIGNED_BYTE type and level 0, as specified in |
145 // Extensions3D::canUseCopyTextureCHROMIUM(). | 147 // Extensions3D::canUseCopyTextureCHROMIUM(). |
146 // Destroys the TEXTURE_2D binding for the active texture unit of the passed c
ontext | |
147 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, | 148 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, |
148 GLuint texture, | 149 GLuint texture, |
149 GLenum internalFormat, | 150 GLenum internalFormat, |
150 GLenum destType, | 151 GLenum destType, |
151 GLint level, | 152 GLint level, |
152 bool premultiplyAlpha, | 153 bool premultiplyAlpha, |
153 bool flipY); | 154 bool flipY); |
154 | 155 |
155 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, | 156 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, |
156 SourceDrawingBuffer); | 157 SourceDrawingBuffer); |
157 | 158 |
158 void flush(FlushReason); // process deferred draw commands immediately | 159 void flush(FlushReason); // Process deferred draw commands immediately. |
159 void flushGpu( | 160 void flushGpu(FlushReason); // Like flush(), but flushes all the way down to |
160 FlushReason); // Like flush(), but flushes all the way down to the Gpu co
ntext if the surface is accelerated | 161 // the GPU context if the surface is accelerated. |
161 | 162 |
162 void notifySurfaceInvalid(); | 163 void notifySurfaceInvalid(); |
163 | 164 |
164 sk_sp<SkImage> newSkImageSnapshot(AccelerationHint, SnapshotReason) const; | 165 sk_sp<SkImage> newSkImageSnapshot(AccelerationHint, SnapshotReason) const; |
165 PassRefPtr<Image> newImageSnapshot( | 166 PassRefPtr<Image> newImageSnapshot( |
166 AccelerationHint = PreferNoAcceleration, | 167 AccelerationHint = PreferNoAcceleration, |
167 SnapshotReason = SnapshotReasonUnknown) const; | 168 SnapshotReason = SnapshotReasonUnknown) const; |
168 | 169 |
169 sk_sp<SkPicture> getPicture() { return m_surface->getPicture(); } | 170 sk_sp<SkPicture> getPicture() { return m_surface->getPicture(); } |
170 | 171 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 int height() const { return m_size.height(); } | 217 int height() const { return m_size.height(); } |
217 int width() const { return m_size.width(); } | 218 int width() const { return m_size.width(); } |
218 | 219 |
219 const unsigned char* m_data; | 220 const unsigned char* m_data; |
220 const IntSize m_size; | 221 const IntSize m_size; |
221 }; | 222 }; |
222 | 223 |
223 } // namespace blink | 224 } // namespace blink |
224 | 225 |
225 #endif // ImageBuffer_h | 226 #endif // ImageBuffer_h |
OLD | NEW |