| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 updater.appendCopy(m_drawingBuffer->colorBuffer(), textureId, m_draw
ingBuffer->size()); | 104 updater.appendCopy(m_drawingBuffer->colorBuffer(), textureId, m_draw
ingBuffer->size()); |
| 105 | 105 |
| 106 return textureId; | 106 return textureId; |
| 107 } | 107 } |
| 108 | 108 |
| 109 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE | 109 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE |
| 110 { | 110 { |
| 111 return GraphicsContext3DPrivate::extractWebGraphicsContext3D(m_drawingBu
ffer->graphicsContext3D()); | 111 return GraphicsContext3DPrivate::extractWebGraphicsContext3D(m_drawingBu
ffer->graphicsContext3D()); |
| 112 } | 112 } |
| 113 | 113 |
| 114 virtual bool prepareMailbox(WebKit::WebExternalTextureMailbox*) OVERRIDE { r
eturn false; } |
| 115 virtual void mailboxReleased(const WebKit::WebExternalTextureMailbox&) OVERR
IDE { } |
| 116 |
| 114 void clearTextureId() | 117 void clearTextureId() |
| 115 { | 118 { |
| 116 m_layer->setTextureId(0); | 119 m_layer->setTextureId(0); |
| 117 } | 120 } |
| 118 | 121 |
| 119 WebKit::WebLayer* layer() { return m_layer->layer(); } | 122 WebKit::WebLayer* layer() { return m_layer->layer(); } |
| 120 | 123 |
| 121 private: | 124 private: |
| 122 DrawingBuffer* m_drawingBuffer; | 125 DrawingBuffer* m_drawingBuffer; |
| 123 OwnPtr<WebKit::WebExternalTextureLayer> m_layer; | 126 OwnPtr<WebKit::WebExternalTextureLayer> m_layer; |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 | 636 |
| 634 void DrawingBuffer::bind() | 637 void DrawingBuffer::bind() |
| 635 { | 638 { |
| 636 if (!m_context) | 639 if (!m_context) |
| 637 return; | 640 return; |
| 638 | 641 |
| 639 m_context->bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_multisampleFBO
? m_multisampleFBO : m_fbo); | 642 m_context->bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_multisampleFBO
? m_multisampleFBO : m_fbo); |
| 640 } | 643 } |
| 641 | 644 |
| 642 } // namespace WebCore | 645 } // namespace WebCore |
| OLD | NEW |