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

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

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! Created 6 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/priority_calculator.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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 virtual ResourceFormat GetResourceFormat() const = 0; 192 virtual ResourceFormat GetResourceFormat() const = 0;
193 193
194 // Force a check for completed raster tasks. 194 // Force a check for completed raster tasks.
195 // Calls completion callbacks on completed tasks. 195 // Calls completion callbacks on completed tasks.
196 virtual void CheckForCompletedTasks(); 196 virtual void CheckForCompletedTasks();
197 197
198 // TODO(vmpstr): Figure out an elegant way to not pass this many parameters. 198 // TODO(vmpstr): Figure out an elegant way to not pass this many parameters.
199 static RasterTask CreateRasterTask( 199 static RasterTask CreateRasterTask(
200 const Resource* resource, 200 const Resource* resource,
201 PicturePileImpl* picture_pile, 201 PicturePileImpl* picture_pile,
202 gfx::Rect content_rect, 202 const gfx::Rect& content_rect,
203 float contents_scale, 203 float contents_scale,
204 RasterMode raster_mode, 204 RasterMode raster_mode,
205 TileResolution tile_resolution, 205 TileResolution tile_resolution,
206 int layer_id, 206 int layer_id,
207 const void* tile_id, 207 const void* tile_id,
208 int source_frame_number, 208 int source_frame_number,
209 bool use_gpu_rasterization, 209 bool use_gpu_rasterization,
210 RenderingStatsInstrumentation* rendering_stats, 210 RenderingStatsInstrumentation* rendering_stats,
211 const RasterTask::Reply& reply, 211 const RasterTask::Reply& reply,
212 Task::Set* dependencies); 212 Task::Set* dependencies);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; 291 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_;
292 scoped_refptr<internal::WorkerPoolTask> 292 scoped_refptr<internal::WorkerPoolTask>
293 raster_required_for_activation_finished_task_; 293 raster_required_for_activation_finished_task_;
294 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; 294 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_;
295 }; 295 };
296 296
297 } // namespace cc 297 } // namespace cc
298 298
299 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ 299 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/resources/priority_calculator.cc ('k') | cc/resources/raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698