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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 void willOverwriteCanvas() { m_surface->willOverwriteCanvas(); } | 115 void willOverwriteCanvas() { m_surface->willOverwriteCanvas(); } |
116 | 116 |
117 bool getImageData(Multiply, const IntRect&, WTF::ArrayBufferContents&) const
; | 117 bool getImageData(Multiply, const IntRect&, WTF::ArrayBufferContents&) const
; |
118 | 118 |
119 void putByteArray(Multiply, const unsigned char* source, const IntSize& sour
ceSize, const IntRect& sourceRect, const IntPoint& destPoint); | 119 void putByteArray(Multiply, const unsigned char* source, const IntSize& sour
ceSize, const IntRect& sourceRect, const IntPoint& destPoint); |
120 | 120 |
121 AffineTransform baseTransform() const { return AffineTransform(); } | 121 AffineTransform baseTransform() const { return AffineTransform(); } |
122 WebLayer* platformLayer() const; | 122 WebLayer* platformLayer() const; |
123 | 123 |
124 // FIXME: current implementations of this method have the restriction that t
hey only work | 124 // This method have the restriction that it only works with some texture |
125 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0
, as specified in | 125 // formats as specified in Extensions3D::canUseCopyTextureCHROMIUM(). |
126 // Extensions3D::canUseCopyTextureCHROMIUM(). | |
127 // Destroys the TEXTURE_2D binding for the active texture unit of the passed
context | 126 // Destroys the TEXTURE_2D binding for the active texture unit of the passed
context |
128 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, GLuint texture, GLen
um internalFormat, GLenum destType, GLint level, bool premultiplyAlpha, bool fli
pY); | 127 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, GLuint texture, GLen
um internalFormat, GLenum destType, GLint level, bool premultiplyAlpha, bool fli
pY); |
129 | 128 |
130 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff
er); | 129 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff
er); |
131 | 130 |
132 void flush(FlushReason); // process deferred draw commands immediately | 131 void flush(FlushReason); // process deferred draw commands immediately |
133 void flushGpu(FlushReason); // Like flush(), but flushes all the way down to
the Gpu context if the surface is accelerated | 132 void flushGpu(FlushReason); // Like flush(), but flushes all the way down to
the Gpu context if the surface is accelerated |
134 | 133 |
135 void notifySurfaceInvalid(); | 134 void notifySurfaceInvalid(); |
136 | 135 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 int height() const { return m_size.height(); } | 177 int height() const { return m_size.height(); } |
179 int width() const { return m_size.width(); } | 178 int width() const { return m_size.width(); } |
180 | 179 |
181 const unsigned char* m_data; | 180 const unsigned char* m_data; |
182 const IntSize m_size; | 181 const IntSize m_size; |
183 }; | 182 }; |
184 | 183 |
185 } // namespace blink | 184 } // namespace blink |
186 | 185 |
187 #endif // ImageBuffer_h | 186 #endif // ImageBuffer_h |
OLD | NEW |