| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "modules/webgl/EXTDisjointTimerQueryWebGL2.h" | 5 #include "modules/webgl/EXTDisjointTimerQueryWebGL2.h" |
| 6 | 6 |
| 7 #include "bindings/modules/v8/WebGLAny.h" | 7 #include "bindings/modules/v8/WebGLAny.h" |
| 8 #include "gpu/command_buffer/client/gles2_interface.h" | 8 #include "gpu/command_buffer/client/gles2_interface.h" |
| 9 #include "modules/webgl/WebGLRenderingContextBase.h" | 9 #include "modules/webgl/WebGLRenderingContextBase.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 EXTDisjointTimerQueryWebGL2::~EXTDisjointTimerQueryWebGL2() {} | |
| 14 | |
| 15 WebGLExtensionName EXTDisjointTimerQueryWebGL2::name() const { | 13 WebGLExtensionName EXTDisjointTimerQueryWebGL2::name() const { |
| 16 return EXTDisjointTimerQueryWebGL2Name; | 14 return EXTDisjointTimerQueryWebGL2Name; |
| 17 } | 15 } |
| 18 | 16 |
| 19 EXTDisjointTimerQueryWebGL2* EXTDisjointTimerQueryWebGL2::create( | 17 EXTDisjointTimerQueryWebGL2* EXTDisjointTimerQueryWebGL2::create( |
| 20 WebGLRenderingContextBase* context) { | 18 WebGLRenderingContextBase* context) { |
| 21 EXTDisjointTimerQueryWebGL2* o = new EXTDisjointTimerQueryWebGL2(context); | 19 EXTDisjointTimerQueryWebGL2* o = new EXTDisjointTimerQueryWebGL2(context); |
| 22 return o; | 20 return o; |
| 23 } | 21 } |
| 24 | 22 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 67 } |
| 70 | 68 |
| 71 EXTDisjointTimerQueryWebGL2::EXTDisjointTimerQueryWebGL2( | 69 EXTDisjointTimerQueryWebGL2::EXTDisjointTimerQueryWebGL2( |
| 72 WebGLRenderingContextBase* context) | 70 WebGLRenderingContextBase* context) |
| 73 : WebGLExtension(context) { | 71 : WebGLExtension(context) { |
| 74 context->extensionsUtil()->ensureExtensionEnabled( | 72 context->extensionsUtil()->ensureExtensionEnabled( |
| 75 "GL_EXT_disjoint_timer_query_webgl2"); | 73 "GL_EXT_disjoint_timer_query_webgl2"); |
| 76 } | 74 } |
| 77 | 75 |
| 78 } // namespace blink | 76 } // namespace blink |
| OLD | NEW |