| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 String toDataURL(const String& mimeType, const double* quality = 0) const; | 127 String toDataURL(const String& mimeType, const double* quality = 0) const; |
| 128 AffineTransform baseTransform() const { return AffineTransform(); } | 128 AffineTransform baseTransform() const { return AffineTransform(); } |
| 129 WebLayer* platformLayer() const; | 129 WebLayer* platformLayer() const; |
| 130 | 130 |
| 131 // 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 |
| 132 // 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 |
| 133 // Extensions3D::canUseCopyTextureCHROMIUM(). | 133 // Extensions3D::canUseCopyTextureCHROMIUM(). |
| 134 // 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 |
| 135 bool copyToPlatformTexture(WebGraphicsContext3D*, Platform3DObject, GLenum,
GLenum, GLint, bool, bool); | 135 bool copyToPlatformTexture(WebGraphicsContext3D*, Platform3DObject, GLenum,
GLenum, GLint, bool, bool); |
| 136 | 136 |
| 137 Platform3DObject getBackingTexture(); | |
| 138 void didModifyBackingTexture(); | |
| 139 | |
| 140 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff
er); | 137 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff
er); |
| 141 | 138 |
| 142 void flush(); | 139 void flush(); |
| 143 | 140 |
| 144 void notifySurfaceInvalid(); | 141 void notifySurfaceInvalid(); |
| 145 | 142 |
| 146 PassRefPtr<SkImage> newImageSnapshot() const; | 143 PassRefPtr<SkImage> newImageSnapshot() const; |
| 147 | 144 |
| 148 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } | 145 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } |
| 149 String debugName() const { return "ImageBuffer"; } | 146 String debugName() const { return "ImageBuffer"; } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 163 unsigned char* pixels() const { return m_data; } | 160 unsigned char* pixels() const { return m_data; } |
| 164 int height() const { return m_size.height(); } | 161 int height() const { return m_size.height(); } |
| 165 int width() const { return m_size.width(); } | 162 int width() const { return m_size.width(); } |
| 166 unsigned char* m_data; | 163 unsigned char* m_data; |
| 167 IntSize m_size; | 164 IntSize m_size; |
| 168 }; | 165 }; |
| 169 | 166 |
| 170 } // namespace blink | 167 } // namespace blink |
| 171 | 168 |
| 172 #endif // ImageBuffer_h | 169 #endif // ImageBuffer_h |
| OLD | NEW |