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

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

Issue 1351283003: Allow task pools to reason about transparency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
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_RASTER_TILE_TASK_RUNNER_H_ 5 #ifndef CC_RASTER_TILE_TASK_RUNNER_H_
6 #define CC_RASTER_TILE_TASK_RUNNER_H_ 6 #define CC_RASTER_TILE_TASK_RUNNER_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // Previously scheduled tasks that are not in |queue| will be canceled unless 142 // Previously scheduled tasks that are not in |queue| will be canceled unless
143 // already running. Once scheduled, reply callbacks are guaranteed to run for 143 // already running. Once scheduled, reply callbacks are guaranteed to run for
144 // all tasks even if they later get canceled by another call to 144 // all tasks even if they later get canceled by another call to
145 // ScheduleTasks(). 145 // ScheduleTasks().
146 virtual void ScheduleTasks(TileTaskQueue* queue) = 0; 146 virtual void ScheduleTasks(TileTaskQueue* queue) = 0;
147 147
148 // Check for completed tasks and dispatch reply callbacks. 148 // Check for completed tasks and dispatch reply callbacks.
149 virtual void CheckForCompletedTasks() = 0; 149 virtual void CheckForCompletedTasks() = 0;
150 150
151 // Returns the format to use for the tiles. 151 // Returns the format to use for the tiles.
152 virtual ResourceFormat GetResourceFormat() const = 0; 152 virtual ResourceFormat GetResourceFormat(bool must_support_alpha) const = 0;
reveman 2015/09/22 14:18:49 This looks good for now. What do you think about a
christiank 2015/09/23 12:29:11 I like it! Much better than the old "two boolean p
153 153
154 // Determine if the resource requires swizzling. 154 // Determine if the resource requires swizzling.
155 virtual bool GetResourceRequiresSwizzle() const = 0; 155 virtual bool GetResourceRequiresSwizzle(bool must_support_alpha) const = 0;
156 156
157 protected: 157 protected:
158 virtual ~TileTaskRunner() {} 158 virtual ~TileTaskRunner() {}
159 }; 159 };
160 160
161 } // namespace cc 161 } // namespace cc
162 162
163 #endif // CC_RASTER_TILE_TASK_RUNNER_H_ 163 #endif // CC_RASTER_TILE_TASK_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698