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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
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 "modules/webgl/WebGLTimerQueryEXT.h" 5 #include "modules/webgl/WebGLTimerQueryEXT.h"
6 6
7 #include "core/dom/TaskRunnerHelper.h" 7 #include "core/dom/TaskRunnerHelper.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 #include "public/platform/Platform.h" 10 #include "public/platform/Platform.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 void WebGLTimerQueryEXT::deleteObjectImpl(gpu::gles2::GLES2Interface* gl) { 86 void WebGLTimerQueryEXT::deleteObjectImpl(gpu::gles2::GLES2Interface* gl) {
87 gl->DeleteQueriesEXT(1, &m_queryId); 87 gl->DeleteQueriesEXT(1, &m_queryId);
88 m_queryId = 0; 88 m_queryId = 0;
89 } 89 }
90 90
91 void WebGLTimerQueryEXT::scheduleAllowAvailabilityUpdate() { 91 void WebGLTimerQueryEXT::scheduleAllowAvailabilityUpdate() {
92 if (m_taskHandle.isActive()) 92 if (m_taskHandle.isActive())
93 return; 93 return;
94 m_taskHandle = m_taskRunner->postCancellableTask( 94 m_taskHandle = m_taskRunner->postCancellableTask(
95 BLINK_FROM_HERE, WTF::bind(&WebGLTimerQueryEXT::allowAvailabilityUpdate, 95 BLINK_FROM_HERE,
96 wrapWeakPersistent(this))); 96 WTF::bind(&WebGLTimerQueryEXT::allowAvailabilityUpdate,
97 wrapWeakPersistent(this)));
97 } 98 }
98 99
99 void WebGLTimerQueryEXT::allowAvailabilityUpdate() { 100 void WebGLTimerQueryEXT::allowAvailabilityUpdate() {
100 m_canUpdateAvailability = true; 101 m_canUpdateAvailability = true;
101 } 102 }
102 103
103 } // namespace blink 104 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698