OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "core/html/canvas/WebGLSharedWebGraphicsContext3D.h" | 6 #include "core/html/canvas/WebGLSharedWebGraphicsContext3D.h" |
7 | 7 |
8 #if ENABLE(OILPAN) | 8 #if ENABLE(OILPAN) |
9 #include "platform/graphics/gpu/DrawingBuffer.h" | 9 #include "platform/graphics/gpu/DrawingBuffer.h" |
10 #include "public/platform/WebGraphicsContext3D.h" | 10 #include "public/platform/WebGraphicsContext3D.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 void WebGLSharedWebGraphicsContext3D::update(PassRefPtr<DrawingBuffer> buffer) | 37 void WebGLSharedWebGraphicsContext3D::update(PassRefPtr<DrawingBuffer> buffer) |
38 { | 38 { |
39 m_buffer = buffer; | 39 m_buffer = buffer; |
40 } | 40 } |
41 | 41 |
42 DrawingBuffer* WebGLSharedWebGraphicsContext3D::drawingBuffer() const | 42 DrawingBuffer* WebGLSharedWebGraphicsContext3D::drawingBuffer() const |
43 { | 43 { |
44 return m_buffer.get(); | 44 return m_buffer.get(); |
45 } | 45 } |
46 | 46 |
47 blink::WebGraphicsContext3D* WebGLSharedWebGraphicsContext3D::webContext() const | 47 WebGraphicsContext3D* WebGLSharedWebGraphicsContext3D::webContext() const |
48 { | 48 { |
49 return m_buffer ? m_buffer->context() : 0; | 49 return m_buffer ? m_buffer->context() : 0; |
50 } | 50 } |
51 | 51 |
52 } // namespace blink | 52 } // namespace blink |
53 | 53 |
54 #endif // ENABLE(OILPAN) | 54 #endif // ENABLE(OILPAN) |
OLD | NEW |