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

Side by Side Diff: Source/modules/webgl/WebGLTimerQueryEXT.cpp

Issue 1325453007: Added support for EXTDisjointTimerQuery on the Blink side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: GL_INVALID_ENUM when timer query not enabled for GetParameter, use context3d for deletion Created 5 years, 3 months 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
« no previous file with comments | « Source/modules/webgl/WebGLTimerQueryEXT.h ('k') | Source/modules/webgl/WebGLTimerQueryEXT.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "config.h"
6
7 #include "modules/webgl/WebGLTimerQueryEXT.h"
8
9 #include "modules/webgl/WebGLRenderingContextBase.h"
10
11 namespace blink {
12
13 WebGLTimerQueryEXT* WebGLTimerQueryEXT::create(WebGLRenderingContextBase* ctx)
14 {
15 return new WebGLTimerQueryEXT(ctx);
16 }
17
18 WebGLTimerQueryEXT::~WebGLTimerQueryEXT()
19 {
20 // See the comment in WebGLObject::detachAndDeleteObject().
21 detachAndDeleteObject();
22 }
23
24 WebGLTimerQueryEXT::WebGLTimerQueryEXT(WebGLRenderingContextBase* ctx)
25 : WebGLContextObject(ctx)
26 , m_target(0)
27 , m_queryId(0)
28 {
29 m_queryId = context()->webContext()->createQueryEXT();
30 }
31
32 void WebGLTimerQueryEXT::deleteObjectImpl(WebGraphicsContext3D* context3d)
33 {
34 context3d->deleteQueryEXT(m_queryId);
35 m_queryId = 0;
36 }
37
38 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/webgl/WebGLTimerQueryEXT.h ('k') | Source/modules/webgl/WebGLTimerQueryEXT.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698