| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 // Returns the actual context attributes for this drawing buffer which may d
iffer from the | 155 // Returns the actual context attributes for this drawing buffer which may d
iffer from the |
| 156 // requested context attributes due to implementation limits. | 156 // requested context attributes due to implementation limits. |
| 157 WebGraphicsContext3D::Attributes getActualAttributes() const { return m_actu
alAttributes; } | 157 WebGraphicsContext3D::Attributes getActualAttributes() const { return m_actu
alAttributes; } |
| 158 | 158 |
| 159 // WebExternalTextureLayerClient implementation. | 159 // WebExternalTextureLayerClient implementation. |
| 160 bool prepareMailbox(WebExternalTextureMailbox*, WebExternalBitmap*) override
; | 160 bool prepareMailbox(WebExternalTextureMailbox*, WebExternalBitmap*) override
; |
| 161 void mailboxReleased(const WebExternalTextureMailbox&, bool lostResource = f
alse) override; | 161 void mailboxReleased(const WebExternalTextureMailbox&, bool lostResource = f
alse) override; |
| 162 | 162 |
| 163 // Destroys the TEXTURE_2D binding for the owned context | 163 // Destroys the TEXTURE_2D binding for the owned context |
| 164 bool copyToPlatformTexture(WebGraphicsContext3D*, Platform3DObject texture,
GLenum internalFormat, | 164 bool copyToPlatformTexture(WebGraphicsContext3D*, gpu::gles2::GLES2Interface
*, Platform3DObject texture, GLenum internalFormat, |
| 165 GLenum destType, GLint level, bool premultiplyAlpha, bool flipY, SourceD
rawingBuffer); | 165 GLenum destType, GLint level, bool premultiplyAlpha, bool flipY, SourceD
rawingBuffer); |
| 166 | 166 |
| 167 void setPackAlignment(GLint param); | 167 void setPackAlignment(GLint param); |
| 168 | 168 |
| 169 bool paintRenderingResultsToImageData(int&, int&, SourceDrawingBuffer, WTF::
ArrayBufferContents&); | 169 bool paintRenderingResultsToImageData(int&, int&, SourceDrawingBuffer, WTF::
ArrayBufferContents&); |
| 170 | 170 |
| 171 int sampleCount() const { return m_sampleCount; } | 171 int sampleCount() const { return m_sampleCount; } |
| 172 bool explicitResolveOfMultisampleData() const { return m_antiAliasingMode ==
MSAAExplicitResolve; } | 172 bool explicitResolveOfMultisampleData() const { return m_antiAliasingMode ==
MSAAExplicitResolve; } |
| 173 | 173 |
| 174 // Bind to m_drawFramebufferBinding or m_readFramebufferBinding if it's not
0. | 174 // Bind to m_drawFramebufferBinding or m_readFramebufferBinding if it's not
0. |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 // used to resize the Canvas. | 367 // used to resize the Canvas. |
| 368 SkBitmap m_resizingBitmap; | 368 SkBitmap m_resizingBitmap; |
| 369 | 369 |
| 370 // Used to flip a bitmap vertically. | 370 // Used to flip a bitmap vertically. |
| 371 Vector<uint8_t> m_scanline; | 371 Vector<uint8_t> m_scanline; |
| 372 }; | 372 }; |
| 373 | 373 |
| 374 } // namespace blink | 374 } // namespace blink |
| 375 | 375 |
| 376 #endif // DrawingBuffer_h | 376 #endif // DrawingBuffer_h |
| OLD | NEW |