| 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 Platform3DObject m_readFramebufferBinding; | 304 Platform3DObject m_readFramebufferBinding; |
| 305 GLenum m_activeTextureUnit; | 305 GLenum m_activeTextureUnit; |
| 306 | 306 |
| 307 OwnPtr<WebGraphicsContext3D> m_context; | 307 OwnPtr<WebGraphicsContext3D> m_context; |
| 308 gpu::gles2::GLES2Interface* m_gl; // Lifetime is tied to the m_context. | 308 gpu::gles2::GLES2Interface* m_gl; // Lifetime is tied to the m_context. |
| 309 OwnPtr<Extensions3DUtil> m_extensionsUtil; | 309 OwnPtr<Extensions3DUtil> m_extensionsUtil; |
| 310 IntSize m_size; | 310 IntSize m_size; |
| 311 WebGraphicsContext3D::Attributes m_requestedAttributes; | 311 WebGraphicsContext3D::Attributes m_requestedAttributes; |
| 312 bool m_multisampleExtensionSupported; | 312 bool m_multisampleExtensionSupported; |
| 313 bool m_discardFramebufferSupported; | 313 bool m_discardFramebufferSupported; |
| 314 GLuint m_fbo; | 314 Platform3DObject m_fbo; |
| 315 // DrawingBuffer's output is double-buffered. m_colorBuffer is the back buff
er. | 315 // DrawingBuffer's output is double-buffered. m_colorBuffer is the back buff
er. |
| 316 TextureInfo m_colorBuffer; | 316 TextureInfo m_colorBuffer; |
| 317 struct FrontBufferInfo { | 317 struct FrontBufferInfo { |
| 318 TextureInfo texInfo; | 318 TextureInfo texInfo; |
| 319 WebExternalTextureMailbox mailbox; | 319 WebExternalTextureMailbox mailbox; |
| 320 }; | 320 }; |
| 321 FrontBufferInfo m_frontColorBuffer; | 321 FrontBufferInfo m_frontColorBuffer; |
| 322 | 322 |
| 323 OwnPtr<SameThreadClosure> m_newMailboxCallback; | 323 OwnPtr<SameThreadClosure> m_newMailboxCallback; |
| 324 | 324 |
| 325 // This is used when the user requests either a depth or stencil buffer. | 325 // This is used when the user requests either a depth or stencil buffer. |
| 326 GLuint m_depthStencilBuffer; | 326 Platform3DObject m_depthStencilBuffer; |
| 327 | 327 |
| 328 // For multisampling. | 328 // For multisampling. |
| 329 GLuint m_multisampleFBO; | 329 Platform3DObject m_multisampleFBO; |
| 330 GLuint m_multisampleColorBuffer; | 330 Platform3DObject m_multisampleColorBuffer; |
| 331 | 331 |
| 332 // True if our contents have been modified since the last presentation of th
is buffer. | 332 // True if our contents have been modified since the last presentation of th
is buffer. |
| 333 bool m_contentsChanged; | 333 bool m_contentsChanged; |
| 334 | 334 |
| 335 // True if commit() has been called since the last time markContentsChanged(
) had been called. | 335 // True if commit() has been called since the last time markContentsChanged(
) had been called. |
| 336 bool m_contentsChangeCommitted; | 336 bool m_contentsChangeCommitted; |
| 337 bool m_bufferClearNeeded; | 337 bool m_bufferClearNeeded; |
| 338 | 338 |
| 339 enum AntialiasingMode { | 339 enum AntialiasingMode { |
| 340 None, | 340 None, |
| (...skipping 26 matching lines...) Expand all 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 |