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

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

Issue 860813002: Remove the default format from ResourcePool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ResourceFormat from TileManager and call TileTaskRunner::GetResourceFormat() directly instea… Created 5 years, 11 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 | « cc/resources/tile_manager_perftest.cc ('k') | cc/resources/tile_task_worker_pool_perftest.cc » ('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_TILE_TASK_RUNNER_H_ 5 #ifndef CC_RESOURCES_TILE_TASK_RUNNER_H_
6 #define CC_RESOURCES_TILE_TASK_RUNNER_H_ 6 #define CC_RESOURCES_TILE_TASK_RUNNER_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Schedule running of tile tasks in |queue| and all dependencies. 153 // Schedule running of tile tasks in |queue| and all dependencies.
154 // Previously scheduled tasks that are not in |queue| will be canceled unless 154 // Previously scheduled tasks that are not in |queue| will be canceled unless
155 // already running. Once scheduled, reply callbacks are guaranteed to run for 155 // already running. Once scheduled, reply callbacks are guaranteed to run for
156 // all tasks even if they later get canceled by another call to 156 // all tasks even if they later get canceled by another call to
157 // ScheduleTasks(). 157 // ScheduleTasks().
158 virtual void ScheduleTasks(TileTaskQueue* queue) = 0; 158 virtual void ScheduleTasks(TileTaskQueue* queue) = 0;
159 159
160 // Check for completed tasks and dispatch reply callbacks. 160 // Check for completed tasks and dispatch reply callbacks.
161 virtual void CheckForCompletedTasks() = 0; 161 virtual void CheckForCompletedTasks() = 0;
162 162
163 // Returns the format to use for the tiles.
164 virtual ResourceFormat GetResourceFormat() = 0;
165
163 protected: 166 protected:
164 virtual ~TileTaskRunner() {} 167 virtual ~TileTaskRunner() {}
165 }; 168 };
166 169
167 } // namespace cc 170 } // namespace cc
168 171
169 #endif // CC_RESOURCES_TILE_TASK_RUNNER_H_ 172 #endif // CC_RESOURCES_TILE_TASK_RUNNER_H_
OLDNEW
« no previous file with comments | « cc/resources/tile_manager_perftest.cc ('k') | cc/resources/tile_task_worker_pool_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698