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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 blink::WebGraphicsContext3D::Attributes getActualAttributes() const { return
m_actualAttributes; } | 153 blink::WebGraphicsContext3D::Attributes getActualAttributes() const { return
m_actualAttributes; } |
154 | 154 |
155 // WebExternalTextureLayerClient implementation. | 155 // WebExternalTextureLayerClient implementation. |
156 virtual bool prepareMailbox(blink::WebExternalTextureMailbox*, blink::WebExt
ernalBitmap*) OVERRIDE; | 156 virtual bool prepareMailbox(blink::WebExternalTextureMailbox*, blink::WebExt
ernalBitmap*) OVERRIDE; |
157 virtual void mailboxReleased(const blink::WebExternalTextureMailbox&) OVERRI
DE; | 157 virtual void mailboxReleased(const blink::WebExternalTextureMailbox&) OVERRI
DE; |
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(blink::WebGraphicsContext3D*, Platform3DObject te
xture, GLenum internalFormat, | 160 bool copyToPlatformTexture(blink::WebGraphicsContext3D*, Platform3DObject te
xture, GLenum internalFormat, |
161 GLenum destType, GLint level, bool premultiplyAlpha, bool flipY); | 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 |
168 protected: // For unittests | 168 protected: // For unittests |
169 DrawingBuffer( | 169 DrawingBuffer( |
170 PassOwnPtr<blink::WebGraphicsContext3D>, | 170 PassOwnPtr<blink::WebGraphicsContext3D>, |
171 PassOwnPtr<Extensions3DUtil>, | 171 PassOwnPtr<Extensions3DUtil>, |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 // used to resize the Canvas. | 296 // used to resize the Canvas. |
297 SkBitmap m_resizingBitmap; | 297 SkBitmap m_resizingBitmap; |
298 | 298 |
299 // Used to flip a bitmap vertically. | 299 // Used to flip a bitmap vertically. |
300 Vector<uint8_t> m_scanline; | 300 Vector<uint8_t> m_scanline; |
301 }; | 301 }; |
302 | 302 |
303 } // namespace WebCore | 303 } // namespace WebCore |
304 | 304 |
305 #endif // DrawingBuffer_h | 305 #endif // DrawingBuffer_h |
OLD | NEW |