| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 Platform3DObject framebuffer() const; | 118 Platform3DObject framebuffer() const; |
| 119 | 119 |
| 120 void markContentsChanged() { m_contentsChanged = true; } | 120 void markContentsChanged() { m_contentsChanged = true; } |
| 121 | 121 |
| 122 WebKit::WebLayer* platformLayer(); | 122 WebKit::WebLayer* platformLayer(); |
| 123 void paintCompositedResultsToCanvas(ImageBuffer*); | 123 void paintCompositedResultsToCanvas(ImageBuffer*); |
| 124 | 124 |
| 125 // WebExternalTextureLayerClient implementation. | 125 // WebExternalTextureLayerClient implementation. |
| 126 virtual unsigned prepareTexture(WebKit::WebTextureUpdater& updater) OVERRIDE
; | 126 virtual unsigned prepareTexture(WebKit::WebTextureUpdater& updater) OVERRIDE
; |
| 127 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE; | 127 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE; |
| 128 virtual bool prepareMailbox(WebKit::WebExternalTextureMailbox*) OVERRIDE; | 128 virtual bool prepareMailbox(WebKit::WebExternalTextureMailbox*, bool bitmap)
OVERRIDE; |
| 129 virtual void mailboxReleased(const WebKit::WebExternalTextureMailbox&) OVERR
IDE; | 129 virtual void mailboxReleased(const WebKit::WebExternalTextureMailbox&) OVERR
IDE; |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 DrawingBuffer(GraphicsContext3D*, const IntSize&, bool multisampleExtensionS
upported, | 132 DrawingBuffer(GraphicsContext3D*, const IntSize&, bool multisampleExtensionS
upported, |
| 133 bool packedDepthStencilExtensionSupported, PreserveDrawingBuff
er, PassRefPtr<ContextEvictionManager>); | 133 bool packedDepthStencilExtensionSupported, PreserveDrawingBuff
er, PassRefPtr<ContextEvictionManager>); |
| 134 | 134 |
| 135 void initialize(const IntSize&); | 135 void initialize(const IntSize&); |
| 136 | 136 |
| 137 void prepareBackBuffer(); | 137 void prepareBackBuffer(); |
| 138 bool requiresCopyFromBackToFrontBuffer() const; | 138 bool requiresCopyFromBackToFrontBuffer() const; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // Mailboxes that were released by the compositor and can be used again by t
his DrawingBuffer. | 207 // Mailboxes that were released by the compositor and can be used again by t
his DrawingBuffer. |
| 208 Vector<RefPtr<MailboxInfo> > m_recycledMailboxes; | 208 Vector<RefPtr<MailboxInfo> > m_recycledMailboxes; |
| 209 RefPtr<MailboxInfo> m_lastColorBuffer; | 209 RefPtr<MailboxInfo> m_lastColorBuffer; |
| 210 | 210 |
| 211 RefPtr<ContextEvictionManager> m_contextEvictionManager; | 211 RefPtr<ContextEvictionManager> m_contextEvictionManager; |
| 212 }; | 212 }; |
| 213 | 213 |
| 214 } // namespace WebCore | 214 } // namespace WebCore |
| 215 | 215 |
| 216 #endif // DrawingBuffer_h | 216 #endif // DrawingBuffer_h |
| OLD | NEW |