| 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 "sky/engine/config.h" |
| 6 #include "core/html/canvas/WebGLSharedWebGraphicsContext3D.h" | 6 #include "sky/engine/core/html/canvas/WebGLSharedWebGraphicsContext3D.h" |
| 7 | 7 |
| 8 #if ENABLE(OILPAN) | 8 #if ENABLE(OILPAN) |
| 9 #include "platform/graphics/gpu/DrawingBuffer.h" | 9 #include "sky/engine/platform/graphics/gpu/DrawingBuffer.h" |
| 10 #include "public/platform/WebGraphicsContext3D.h" | 10 #include "sky/engine/public/platform/WebGraphicsContext3D.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 PassRefPtr<WebGLSharedWebGraphicsContext3D> WebGLSharedWebGraphicsContext3D::cre
ate(PassRefPtr<DrawingBuffer> buffer) | 14 PassRefPtr<WebGLSharedWebGraphicsContext3D> WebGLSharedWebGraphicsContext3D::cre
ate(PassRefPtr<DrawingBuffer> buffer) |
| 15 { | 15 { |
| 16 return adoptRef(new WebGLSharedWebGraphicsContext3D(buffer)); | 16 return adoptRef(new WebGLSharedWebGraphicsContext3D(buffer)); |
| 17 } | 17 } |
| 18 | 18 |
| 19 WebGLSharedWebGraphicsContext3D::WebGLSharedWebGraphicsContext3D(PassRefPtr<Draw
ingBuffer> buffer) | 19 WebGLSharedWebGraphicsContext3D::WebGLSharedWebGraphicsContext3D(PassRefPtr<Draw
ingBuffer> buffer) |
| 20 : m_buffer(buffer) | 20 : m_buffer(buffer) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 } | 45 } |
| 46 | 46 |
| 47 blink::WebGraphicsContext3D* WebGLSharedWebGraphicsContext3D::webContext() const | 47 blink::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 |