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

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

Issue 228183002: cc: Move ResourcePool ownership to LTHI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/raster_worker_pool_unittest.cc ('k') | cc/resources/resource_pool.h » ('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 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 <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Schedule running of raster tasks in |queue| and all dependencies. 155 // Schedule running of raster tasks in |queue| and all dependencies.
156 // Previously scheduled tasks that are not in |queue| will be canceled unless 156 // Previously scheduled tasks that are not in |queue| will be canceled unless
157 // already running. Once scheduled, reply callbacks are guaranteed to run for 157 // already running. Once scheduled, reply callbacks are guaranteed to run for
158 // all tasks even if they later get canceled by another call to 158 // all tasks even if they later get canceled by another call to
159 // ScheduleTasks(). 159 // ScheduleTasks().
160 virtual void ScheduleTasks(RasterTaskQueue* queue) = 0; 160 virtual void ScheduleTasks(RasterTaskQueue* queue) = 0;
161 161
162 // Check for completed tasks and dispatch reply callbacks. 162 // Check for completed tasks and dispatch reply callbacks.
163 virtual void CheckForCompletedTasks() = 0; 163 virtual void CheckForCompletedTasks() = 0;
164 164
165 // Returns the target that needs to be used for raster task resources.
166 virtual unsigned GetResourceTarget() const = 0;
167
168 // Returns the format that needs to be used for raster task resources.
169 virtual ResourceFormat GetResourceFormat() const = 0;
170
171 protected: 165 protected:
172 virtual ~Rasterizer() {} 166 virtual ~Rasterizer() {}
173 }; 167 };
174 168
175 } // namespace cc 169 } // namespace cc
176 170
177 #endif // CC_RESOURCES_RASTERIZER_H_ 171 #endif // CC_RESOURCES_RASTERIZER_H_
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool_unittest.cc ('k') | cc/resources/resource_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698