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

Side by Side Diff: third_party/WebKit/Source/core/dom/TaskRunnerHelper.h

Issue 2668573002: Migrate WebGL timers to TaskRunnerTimer (Closed)
Patch Set: add comment 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef TaskRunnerHelper_h 5 #ifndef TaskRunnerHelper_h
6 #define TaskRunnerHelper_h 6 #define TaskRunnerHelper_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 #include "wtf/HashTraits.h" 10 #include "wtf/HashTraits.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // This task source is used for all tasks in the Presentation API spec. 91 // This task source is used for all tasks in the Presentation API spec.
92 Presentation, 92 Presentation,
93 93
94 // https://www.w3.org/TR/2016/WD-generic-sensor-20160830/#sensor-task-source 94 // https://www.w3.org/TR/2016/WD-generic-sensor-20160830/#sensor-task-source
95 // This task source is used for all tasks in the Sensor API spec. 95 // This task source is used for all tasks in the Sensor API spec.
96 Sensor, 96 Sensor,
97 97
98 // https://w3c.github.io/performance-timeline/#performance-timeline 98 // https://w3c.github.io/performance-timeline/#performance-timeline
99 PerformanceTimeline, 99 PerformanceTimeline,
100 100
101 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.15
102 // This task source is used for all tasks in the WebGL spec.
103 WebGL,
104
101 // Use MiscPlatformAPI for a task that is defined in the spec but is not yet 105 // Use MiscPlatformAPI for a task that is defined in the spec but is not yet
102 // associated with any specific task runner in the spec. MiscPlatformAPI is 106 // associated with any specific task runner in the spec. MiscPlatformAPI is
103 // not encouraged for stable and matured APIs. The spec should define the task 107 // not encouraged for stable and matured APIs. The spec should define the task
104 // runner explicitly. 108 // runner explicitly.
105 // The task runner may be throttled. 109 // The task runner may be throttled.
106 MiscPlatformAPI, 110 MiscPlatformAPI,
107 111
108 // Other internal tasks that cannot fit any of the above task runners 112 // Other internal tasks that cannot fit any of the above task runners
109 // can be posted here, but the usage is not encouraged. The task runner 113 // can be posted here, but the usage is not encouraged. The task runner
110 // may be throttled. 114 // may be throttled.
(...skipping 29 matching lines...) Expand all
140 public: 144 public:
141 static RefPtr<WebTaskRunner> get(TaskType, LocalFrame*); 145 static RefPtr<WebTaskRunner> get(TaskType, LocalFrame*);
142 static RefPtr<WebTaskRunner> get(TaskType, Document*); 146 static RefPtr<WebTaskRunner> get(TaskType, Document*);
143 static RefPtr<WebTaskRunner> get(TaskType, ExecutionContext*); 147 static RefPtr<WebTaskRunner> get(TaskType, ExecutionContext*);
144 static RefPtr<WebTaskRunner> get(TaskType, ScriptState*); 148 static RefPtr<WebTaskRunner> get(TaskType, ScriptState*);
145 }; 149 };
146 150
147 } // namespace blink 151 } // namespace blink
148 152
149 #endif 153 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698