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

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

Issue 26031002: cc: Remove unused metrics from RenderingStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed raster_worker_pool_perftest.cc Created 7 years, 2 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/picture_unittest.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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // Returns the format that needs to be used for raster task resources. 189 // Returns the format that needs to be used for raster task resources.
190 virtual ResourceFormat GetResourceFormat() const = 0; 190 virtual ResourceFormat GetResourceFormat() const = 0;
191 191
192 // TODO(vmpstr): Figure out an elegant way to not pass this many parameters. 192 // TODO(vmpstr): Figure out an elegant way to not pass this many parameters.
193 static RasterTask CreateRasterTask( 193 static RasterTask CreateRasterTask(
194 const Resource* resource, 194 const Resource* resource,
195 PicturePileImpl* picture_pile, 195 PicturePileImpl* picture_pile,
196 gfx::Rect content_rect, 196 gfx::Rect content_rect,
197 float contents_scale, 197 float contents_scale,
198 RasterMode raster_mode, 198 RasterMode raster_mode,
199 bool is_tile_in_pending_tree_now_bin,
200 TileResolution tile_resolution, 199 TileResolution tile_resolution,
201 int layer_id, 200 int layer_id,
202 const void* tile_id, 201 const void* tile_id,
203 int source_frame_number, 202 int source_frame_number,
204 RenderingStatsInstrumentation* rendering_stats, 203 RenderingStatsInstrumentation* rendering_stats,
205 const RasterTask::Reply& reply, 204 const RasterTask::Reply& reply,
206 Task::Set* dependencies); 205 Task::Set* dependencies);
207 206
208 static Task CreateImageDecodeTask( 207 static Task CreateImageDecodeTask(
209 skia::LazyPixelRef* pixel_ref, 208 skia::LazyPixelRef* pixel_ref,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 274
276 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; 275 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_;
277 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; 276 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_;
278 scoped_refptr<internal::WorkerPoolTask> 277 scoped_refptr<internal::WorkerPoolTask>
279 raster_required_for_activation_finished_task_; 278 raster_required_for_activation_finished_task_;
280 }; 279 };
281 280
282 } // namespace cc 281 } // namespace cc
283 282
284 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ 283 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_unittest.cc ('k') | cc/resources/raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698