OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 WebLayer* platformLayer(); | 146 WebLayer* platformLayer(); |
147 void paintCompositedResultsToCanvas(ImageBuffer*); | 147 void paintCompositedResultsToCanvas(ImageBuffer*); |
148 | 148 |
149 WebGraphicsContext3D* context(); | 149 WebGraphicsContext3D* context(); |
150 | 150 |
151 // Returns the actual context attributes for this drawing buffer which may d
iffer from the | 151 // Returns the actual context attributes for this drawing buffer which may d
iffer from the |
152 // requested context attributes due to implementation limits. | 152 // requested context attributes due to implementation limits. |
153 WebGraphicsContext3D::Attributes getActualAttributes() const { return m_actu
alAttributes; } | 153 WebGraphicsContext3D::Attributes getActualAttributes() const { return m_actu
alAttributes; } |
154 | 154 |
155 // WebExternalTextureLayerClient implementation. | 155 // WebExternalTextureLayerClient implementation. |
156 virtual bool prepareMailbox(WebExternalTextureMailbox*, WebExternalBitmap*)
OVERRIDE; | 156 virtual bool prepareMailbox(WebExternalTextureMailbox*, WebExternalBitmap*)
override; |
157 virtual void mailboxReleased(const WebExternalTextureMailbox&, bool lostReso
urce = false) OVERRIDE; | 157 virtual void mailboxReleased(const WebExternalTextureMailbox&, bool lostReso
urce = false) override; |
158 | 158 |
159 // Destroys the TEXTURE_2D binding for the owned context | 159 // Destroys the TEXTURE_2D binding for the owned context |
160 bool copyToPlatformTexture(WebGraphicsContext3D*, Platform3DObject texture,
GLenum internalFormat, | 160 bool copyToPlatformTexture(WebGraphicsContext3D*, Platform3DObject texture,
GLenum internalFormat, |
161 GLenum destType, GLint level, bool premultiplyAlpha, bool flipY, bool fr
omFrontBuffer = false); | 161 GLenum destType, GLint level, bool premultiplyAlpha, bool flipY, bool fr
omFrontBuffer = false); |
162 | 162 |
163 void setPackAlignment(GLint param); | 163 void setPackAlignment(GLint param); |
164 | 164 |
165 void paintRenderingResultsToCanvas(ImageBuffer*); | 165 void paintRenderingResultsToCanvas(ImageBuffer*); |
166 PassRefPtr<Uint8ClampedArray> paintRenderingResultsToImageData(int&, int&); | 166 PassRefPtr<Uint8ClampedArray> paintRenderingResultsToImageData(int&, int&); |
167 | 167 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 // used to resize the Canvas. | 300 // used to resize the Canvas. |
301 SkBitmap m_resizingBitmap; | 301 SkBitmap m_resizingBitmap; |
302 | 302 |
303 // Used to flip a bitmap vertically. | 303 // Used to flip a bitmap vertically. |
304 Vector<uint8_t> m_scanline; | 304 Vector<uint8_t> m_scanline; |
305 }; | 305 }; |
306 | 306 |
307 } // namespace blink | 307 } // namespace blink |
308 | 308 |
309 #endif // DrawingBuffer_h | 309 #endif // DrawingBuffer_h |
OLD | NEW |