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

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

Issue 18370002: cc: Made use color estimator a const instead of a flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cc_perftests compile error Created 7 years, 5 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/base/switches.cc ('k') | cc/resources/raster_worker_pool.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RASTER_WORKER_POOL_H_ 5 #ifndef CC_RESOURCES_RASTER_WORKER_POOL_H_
6 #define CC_RESOURCES_RASTER_WORKER_POOL_H_ 6 #define CC_RESOURCES_RASTER_WORKER_POOL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // scheduled tasks. Reply callbacks are still guaranteed to run. 198 // scheduled tasks. Reply callbacks are still guaranteed to run.
199 virtual void Shutdown() OVERRIDE; 199 virtual void Shutdown() OVERRIDE;
200 200
201 // Schedule running of raster tasks in |queue| and all dependencies. 201 // Schedule running of raster tasks in |queue| and all dependencies.
202 // Previously scheduled tasks that are no longer needed to run 202 // Previously scheduled tasks that are no longer needed to run
203 // raster tasks in |queue| will be canceled unless already running. 203 // raster tasks in |queue| will be canceled unless already running.
204 // Once scheduled, reply callbacks are guaranteed to run for all tasks 204 // Once scheduled, reply callbacks are guaranteed to run for all tasks
205 // even if they later get canceled by another call to ScheduleTasks(). 205 // even if they later get canceled by another call to ScheduleTasks().
206 virtual void ScheduleTasks(RasterTask::Queue* queue) = 0; 206 virtual void ScheduleTasks(RasterTask::Queue* queue) = 0;
207 207
208 // TODO(vmpstr): Try to elimiate some variables.
209 static RasterTask CreateRasterTask( 208 static RasterTask CreateRasterTask(
210 const Resource* resource, 209 const Resource* resource,
211 PicturePileImpl* picture_pile, 210 PicturePileImpl* picture_pile,
212 gfx::Rect content_rect, 211 gfx::Rect content_rect,
213 float contents_scale, 212 float contents_scale,
214 RasterMode raster_mode, 213 RasterMode raster_mode,
215 bool use_color_estimator,
216 const RasterTaskMetadata& metadata, 214 const RasterTaskMetadata& metadata,
217 RenderingStatsInstrumentation* rendering_stats, 215 RenderingStatsInstrumentation* rendering_stats,
218 const RasterTask::Reply& reply, 216 const RasterTask::Reply& reply,
219 Task::Set* dependencies); 217 Task::Set* dependencies);
220 218
221 static Task CreateImageDecodeTask( 219 static Task CreateImageDecodeTask(
222 skia::LazyPixelRef* pixel_ref, 220 skia::LazyPixelRef* pixel_ref,
223 int layer_id, 221 int layer_id,
224 RenderingStatsInstrumentation* stats_instrumentation, 222 RenderingStatsInstrumentation* stats_instrumentation,
225 const Task::Reply& reply); 223 const Task::Reply& reply);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 RasterTask::Queue::TaskSet raster_tasks_required_for_activation_; 273 RasterTask::Queue::TaskSet raster_tasks_required_for_activation_;
276 274
277 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; 275 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_;
278 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; 276 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_;
279 int64 schedule_raster_tasks_count_; 277 int64 schedule_raster_tasks_count_;
280 }; 278 };
281 279
282 } // namespace cc 280 } // namespace cc
283 281
284 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ 282 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/base/switches.cc ('k') | cc/resources/raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698