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

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

Issue 2514733002: Scheduler: Deprecate CancellableTaskFactory in favor of WebTaskRunner::postCancellableTask (3) (Closed)
Patch Set: rebase 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 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 #ifndef WebGLTimerQueryEXT_h 5 #ifndef WebGLTimerQueryEXT_h
6 #define WebGLTimerQueryEXT_h 6 #define WebGLTimerQueryEXT_h
7 7
8 #include "modules/webgl/WebGLContextObject.h" 8 #include "modules/webgl/WebGLContextObject.h"
9 #include "platform/scheduler/CancellableTaskFactory.h" 9 #include "platform/WebTaskRunner.h"
10 10
11 namespace gpu { 11 namespace gpu {
12 namespace gles2 { 12 namespace gles2 {
13 class GLES2Interface; 13 class GLES2Interface;
14 } 14 }
15 } 15 }
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class WebTaskRunner;
20
21 class WebGLTimerQueryEXT : public WebGLContextObject { 19 class WebGLTimerQueryEXT : public WebGLContextObject {
22 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
23 21
24 public: 22 public:
25 static WebGLTimerQueryEXT* create(WebGLRenderingContextBase*); 23 static WebGLTimerQueryEXT* create(WebGLRenderingContextBase*);
26 ~WebGLTimerQueryEXT() override; 24 ~WebGLTimerQueryEXT() override;
27 25
28 void setTarget(GLenum target) { m_target = target; } 26 void setTarget(GLenum target) { m_target = target; }
29 27
30 GLuint object() const { return m_queryId; } 28 GLuint object() const { return m_queryId; }
(...skipping 17 matching lines...) Expand all
48 void allowAvailabilityUpdate(); 46 void allowAvailabilityUpdate();
49 47
50 GLenum m_target; 48 GLenum m_target;
51 GLuint m_queryId; 49 GLuint m_queryId;
52 50
53 bool m_canUpdateAvailability; 51 bool m_canUpdateAvailability;
54 bool m_queryResultAvailable; 52 bool m_queryResultAvailable;
55 GLuint64 m_queryResult; 53 GLuint64 m_queryResult;
56 54
57 std::unique_ptr<WebTaskRunner> m_taskRunner; 55 std::unique_ptr<WebTaskRunner> m_taskRunner;
58 std::unique_ptr<CancellableTaskFactory> m_cancellableTaskFactory; 56 TaskHandle m_taskHandle;
59 }; 57 };
60 58
61 } // namespace blink 59 } // namespace blink
62 60
63 #endif // WebGLTimerQueryEXT_h 61 #endif // WebGLTimerQueryEXT_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLQuery.cpp ('k') | third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698