| 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   // This method have the restriction that it only works with some texture | 
|  | 144   // formats as specified in Extensions3D::canUseCopyTextureCHROMIUM(). | 
| 143   // Destroys the TEXTURE_2D binding for the active texture unit of the passed | 145   // Destroys the TEXTURE_2D binding for the active texture unit of the passed | 
| 144   // context. | 146   // context. | 
| 145   // FIXME: Current implementations of this method only work with textures that | 147   // 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 | 148   // are RGB or RGBA format, UNSIGNED_BYTE type and level 0, as specified in | 
| 147   // Extensions3D::canUseCopyTextureCHROMIUM(). | 149   // Extensions3D::canUseCopyTextureCHROMIUM(). | 
| 148   bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, | 150   bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, | 
| 149                              GLuint texture, | 151                              GLuint texture, | 
| 150                              GLenum internalFormat, | 152                              GLenum internalFormat, | 
| 151                              GLenum destType, | 153                              GLenum destType, | 
| 152                              GLint level, | 154                              GLint level, | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 217   int height() const { return m_size.height(); } | 219   int height() const { return m_size.height(); } | 
| 218   int width() const { return m_size.width(); } | 220   int width() const { return m_size.width(); } | 
| 219 | 221 | 
| 220   const unsigned char* m_data; | 222   const unsigned char* m_data; | 
| 221   const IntSize m_size; | 223   const IntSize m_size; | 
| 222 }; | 224 }; | 
| 223 | 225 | 
| 224 }  // namespace blink | 226 }  // namespace blink | 
| 225 | 227 | 
| 226 #endif  // ImageBuffer_h | 228 #endif  // ImageBuffer_h | 
| OLD | NEW | 
|---|