| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 bool layerComposited() const; | 127 bool layerComposited() const; |
| 128 | 128 |
| 129 blink::WebLayer* platformLayer(); | 129 blink::WebLayer* platformLayer(); |
| 130 void paintCompositedResultsToCanvas(ImageBuffer*); | 130 void paintCompositedResultsToCanvas(ImageBuffer*); |
| 131 | 131 |
| 132 // WebExternalTextureLayerClient implementation. | 132 // WebExternalTextureLayerClient implementation. |
| 133 virtual blink::WebGraphicsContext3D* context() OVERRIDE; | 133 virtual blink::WebGraphicsContext3D* context() OVERRIDE; |
| 134 virtual bool prepareMailbox(blink::WebExternalTextureMailbox*, blink::WebExt
ernalBitmap*) OVERRIDE; | 134 virtual bool prepareMailbox(blink::WebExternalTextureMailbox*, blink::WebExt
ernalBitmap*) OVERRIDE; |
| 135 virtual void mailboxReleased(const blink::WebExternalTextureMailbox&) OVERRI
DE; | 135 virtual void mailboxReleased(const blink::WebExternalTextureMailbox&) OVERRI
DE; |
| 136 | 136 |
| 137 // Destroys the TEXTURE_2D binding for the owned context |
| 137 bool copyToPlatformTexture(blink::WebGraphicsContext3D*, Platform3DObject te
xture, GLenum internalFormat, | 138 bool copyToPlatformTexture(blink::WebGraphicsContext3D*, Platform3DObject te
xture, GLenum internalFormat, |
| 138 GLenum destType, GLint level, bool premultiplyAlpha, bool flipY); | 139 GLenum destType, GLint level, bool premultiplyAlpha, bool flipY); |
| 139 | 140 |
| 140 void setPackAlignment(GLint param); | 141 void setPackAlignment(GLint param); |
| 141 | 142 |
| 142 void paintRenderingResultsToCanvas(ImageBuffer*); | 143 void paintRenderingResultsToCanvas(ImageBuffer*); |
| 143 PassRefPtr<Uint8ClampedArray> paintRenderingResultsToImageData(int&, int&); | 144 PassRefPtr<Uint8ClampedArray> paintRenderingResultsToImageData(int&, int&); |
| 144 | 145 |
| 145 private: | 146 private: |
| 146 DrawingBuffer(blink::WebGraphicsContext3D*, const IntSize&, bool multisample
ExtensionSupported, | 147 DrawingBuffer(blink::WebGraphicsContext3D*, const IntSize&, bool multisample
ExtensionSupported, |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 // used to resize the Canvas. | 258 // used to resize the Canvas. |
| 258 SkBitmap m_resizingBitmap; | 259 SkBitmap m_resizingBitmap; |
| 259 | 260 |
| 260 // Used to flip a bitmap vertically. | 261 // Used to flip a bitmap vertically. |
| 261 Vector<uint8_t> m_scanline; | 262 Vector<uint8_t> m_scanline; |
| 262 }; | 263 }; |
| 263 | 264 |
| 264 } // namespace WebCore | 265 } // namespace WebCore |
| 265 | 266 |
| 266 #endif // DrawingBuffer_h | 267 #endif // DrawingBuffer_h |
| OLD | NEW |