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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 OwnPtr<WebGraphicsContext3D> m_context; | 239 OwnPtr<WebGraphicsContext3D> m_context; |
240 OwnPtr<Extensions3DUtil> m_extensionsUtil; | 240 OwnPtr<Extensions3DUtil> m_extensionsUtil; |
241 IntSize m_size; | 241 IntSize m_size; |
242 WebGraphicsContext3D::Attributes m_requestedAttributes; | 242 WebGraphicsContext3D::Attributes m_requestedAttributes; |
243 bool m_multisampleExtensionSupported; | 243 bool m_multisampleExtensionSupported; |
244 bool m_packedDepthStencilExtensionSupported; | 244 bool m_packedDepthStencilExtensionSupported; |
245 bool m_discardFramebufferSupported; | 245 bool m_discardFramebufferSupported; |
246 Platform3DObject m_fbo; | 246 Platform3DObject m_fbo; |
247 // DrawingBuffer's output is double-buffered. m_colorBuffer is the back buff
er. | 247 // DrawingBuffer's output is double-buffered. m_colorBuffer is the back buff
er. |
248 TextureInfo m_colorBuffer; | 248 TextureInfo m_colorBuffer; |
249 TextureInfo m_frontColorBuffer; | 249 struct FrontBufferInfo { |
| 250 TextureInfo texInfo; |
| 251 WebExternalTextureMailbox mailbox; |
| 252 }; |
| 253 FrontBufferInfo m_frontColorBuffer; |
250 | 254 |
251 // This is used when we have OES_packed_depth_stencil. | 255 // This is used when we have OES_packed_depth_stencil. |
252 Platform3DObject m_depthStencilBuffer; | 256 Platform3DObject m_depthStencilBuffer; |
253 | 257 |
254 // These are used when we don't. | 258 // These are used when we don't. |
255 Platform3DObject m_depthBuffer; | 259 Platform3DObject m_depthBuffer; |
256 Platform3DObject m_stencilBuffer; | 260 Platform3DObject m_stencilBuffer; |
257 | 261 |
258 // For multisampling. | 262 // For multisampling. |
259 Platform3DObject m_multisampleFBO; | 263 Platform3DObject m_multisampleFBO; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 // used to resize the Canvas. | 304 // used to resize the Canvas. |
301 SkBitmap m_resizingBitmap; | 305 SkBitmap m_resizingBitmap; |
302 | 306 |
303 // Used to flip a bitmap vertically. | 307 // Used to flip a bitmap vertically. |
304 Vector<uint8_t> m_scanline; | 308 Vector<uint8_t> m_scanline; |
305 }; | 309 }; |
306 | 310 |
307 } // namespace blink | 311 } // namespace blink |
308 | 312 |
309 #endif // DrawingBuffer_h | 313 #endif // DrawingBuffer_h |
OLD | NEW |