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

Side by Side Diff: cc/resources/rasterizer.h

Issue 667793004: Support single-threaded impl-side painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use numeric limits for raster task limit Created 6 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CC_RESOURCES_RASTERIZER_H_ 5 #ifndef CC_RESOURCES_RASTERIZER_H_
6 #define CC_RESOURCES_RASTERIZER_H_ 6 #define CC_RESOURCES_RASTERIZER_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // CheckForCompletedTasks() is called. 145 // CheckForCompletedTasks() is called.
146 virtual void Shutdown() = 0; 146 virtual void Shutdown() = 0;
147 147
148 // Schedule running of raster tasks in |queue| and all dependencies. 148 // Schedule running of raster tasks in |queue| and all dependencies.
149 // Previously scheduled tasks that are not in |queue| will be canceled unless 149 // Previously scheduled tasks that are not in |queue| will be canceled unless
150 // already running. Once scheduled, reply callbacks are guaranteed to run for 150 // already running. Once scheduled, reply callbacks are guaranteed to run for
151 // all tasks even if they later get canceled by another call to 151 // all tasks even if they later get canceled by another call to
152 // ScheduleTasks(). 152 // ScheduleTasks().
153 virtual void ScheduleTasks(RasterTaskQueue* queue) = 0; 153 virtual void ScheduleTasks(RasterTaskQueue* queue) = 0;
154 154
155 // Blocks until all currently scheduled tasks have completed.
156 virtual void WaitForTasksToFinishRunning() = 0;
reveman 2014/10/27 19:15:49 I don't think we should add this to the Rasterizer
enne (OOO) 2014/10/27 20:23:24 What do you mean by non-threaded? Is this somethin
157
155 // Check for completed tasks and dispatch reply callbacks. 158 // Check for completed tasks and dispatch reply callbacks.
156 virtual void CheckForCompletedTasks() = 0; 159 virtual void CheckForCompletedTasks() = 0;
157 160
158 protected: 161 protected:
159 virtual ~Rasterizer() {} 162 virtual ~Rasterizer() {}
160 }; 163 };
161 164
162 } // namespace cc 165 } // namespace cc
163 166
164 #endif // CC_RESOURCES_RASTERIZER_H_ 167 #endif // CC_RESOURCES_RASTERIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698