Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQueryWebGL2.cpp

Issue 2547813002: Remove WebGLObject maps from WebGLRenderingContextBase and WebGLContextGroup. (Closed)
Patch Set: Fixed WebGLContextObject::validate. Made WebGLExtension non-finalized. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698