| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 const unsigned char* source, | 132 const unsigned char* source, |
| 133 const IntSize& source_size, | 133 const IntSize& source_size, |
| 134 const IntRect& source_rect, | 134 const IntRect& source_rect, |
| 135 const IntPoint& dest_point); | 135 const IntPoint& dest_point); |
| 136 | 136 |
| 137 AffineTransform BaseTransform() const { return AffineTransform(); } | 137 AffineTransform BaseTransform() const { return AffineTransform(); } |
| 138 WebLayer* PlatformLayer() const; | 138 WebLayer* PlatformLayer() const; |
| 139 | 139 |
| 140 // Destroys the TEXTURE_2D binding for the active texture unit of the passed | 140 // Destroys the TEXTURE_2D binding for the active texture unit of the passed |
| 141 // context. Assumes the destination texture has already been allocated. | 141 // context. Assumes the destination texture has already been allocated. |
| 142 // FIXME: Current implementations of this method only work with textures that | |
| 143 // are RGB or RGBA format, UNSIGNED_BYTE type and level 0, as specified in | |
| 144 // Extensions3D::canUseCopyTextureCHROMIUM(). | |
| 145 bool CopyToPlatformTexture(SnapshotReason, | 142 bool CopyToPlatformTexture(SnapshotReason, |
| 146 gpu::gles2::GLES2Interface*, | 143 gpu::gles2::GLES2Interface*, |
| 144 GLenum target, |
| 147 GLuint texture, | 145 GLuint texture, |
| 148 GLenum internal_format, | |
| 149 GLenum dest_type, | |
| 150 GLint level, | |
| 151 bool premultiply_alpha, | 146 bool premultiply_alpha, |
| 152 bool flip_y, | 147 bool flip_y, |
| 153 const IntPoint& dest_point, | 148 const IntPoint& dest_point, |
| 154 const IntRect& source_sub_rectangle); | 149 const IntRect& source_sub_rectangle); |
| 155 | 150 |
| 156 bool CopyRenderingResultsFromDrawingBuffer(DrawingBuffer*, | 151 bool CopyRenderingResultsFromDrawingBuffer(DrawingBuffer*, |
| 157 SourceDrawingBuffer); | 152 SourceDrawingBuffer); |
| 158 | 153 |
| 159 void Flush(FlushReason); // Process deferred draw commands immediately. | 154 void Flush(FlushReason); // Process deferred draw commands immediately. |
| 160 void FlushGpu(FlushReason); // Like flush(), but flushes all the way down to | 155 void FlushGpu(FlushReason); // Like flush(), but flushes all the way down to |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 int Height() const { return size_.Height(); } | 213 int Height() const { return size_.Height(); } |
| 219 int Width() const { return size_.Width(); } | 214 int Width() const { return size_.Width(); } |
| 220 | 215 |
| 221 const unsigned char* data_; | 216 const unsigned char* data_; |
| 222 const IntSize size_; | 217 const IntSize size_; |
| 223 }; | 218 }; |
| 224 | 219 |
| 225 } // namespace blink | 220 } // namespace blink |
| 226 | 221 |
| 227 #endif // ImageBuffer_h | 222 #endif // ImageBuffer_h |
| OLD | NEW |