| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/WebGL2RenderingContextBase.h" | 6 #include "core/html/canvas/WebGL2RenderingContextBase.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/WebGLAny.h" | 8 #include "bindings/core/v8/WebGLAny.h" |
| 9 #include "core/html/HTMLCanvasElement.h" | 9 #include "core/html/HTMLCanvasElement.h" |
| 10 #include "core/html/HTMLImageElement.h" | 10 #include "core/html/HTMLImageElement.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 const GLuint webGLTimeoutIgnored = 0xFFFFFFFF; | 32 const GLuint webGLTimeoutIgnored = 0xFFFFFFFF; |
| 33 | 33 |
| 34 WGC3Dsync syncObjectOrZero(const WebGLSync* object) | 34 WGC3Dsync syncObjectOrZero(const WebGLSync* object) |
| 35 { | 35 { |
| 36 return object ? object->object() : 0; | 36 return object ? object->object() : 0; |
| 37 } | 37 } |
| 38 | 38 |
| 39 } | 39 } // namespace |
| 40 | 40 |
| 41 WebGL2RenderingContextBase::WebGL2RenderingContextBase(HTMLCanvasElement* passed
Canvas, PassOwnPtr<blink::WebGraphicsContext3D> context, const WebGLContextAttri
butes& requestedAttributes) | 41 WebGL2RenderingContextBase::WebGL2RenderingContextBase(HTMLCanvasElement* passed
Canvas, PassOwnPtr<WebGraphicsContext3D> context, const WebGLContextAttributes&
requestedAttributes) |
| 42 : WebGLRenderingContextBase(passedCanvas, context, requestedAttributes) | 42 : WebGLRenderingContextBase(passedCanvas, context, requestedAttributes) |
| 43 { | 43 { |
| 44 | 44 |
| 45 } | 45 } |
| 46 | 46 |
| 47 WebGL2RenderingContextBase::~WebGL2RenderingContextBase() | 47 WebGL2RenderingContextBase::~WebGL2RenderingContextBase() |
| 48 { | 48 { |
| 49 #if !ENABLE(OILPAN) | 49 #if !ENABLE(OILPAN) |
| 50 m_readFramebufferBinding = nullptr; | 50 m_readFramebufferBinding = nullptr; |
| 51 #endif | 51 #endif |
| (...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1579 GLfloat value = 0.f; | 1579 GLfloat value = 0.f; |
| 1580 webContext()->getTexParameterfv(target, pname, &value); | 1580 webContext()->getTexParameterfv(target, pname, &value); |
| 1581 return WebGLAny(scriptState, value); | 1581 return WebGLAny(scriptState, value); |
| 1582 } | 1582 } |
| 1583 default: | 1583 default: |
| 1584 return WebGLRenderingContextBase::getTexParameter(scriptState, target, p
name); | 1584 return WebGLRenderingContextBase::getTexParameter(scriptState, target, p
name); |
| 1585 } | 1585 } |
| 1586 } | 1586 } |
| 1587 | 1587 |
| 1588 } // namespace blink | 1588 } // namespace blink |
| OLD | NEW |