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

Unified Diff: cc/resources/tile_manager.cc

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, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/tile_manager.h ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager.cc
diff --git a/cc/resources/tile_manager.cc b/cc/resources/tile_manager.cc
index 5a0338c4706ab7802143e4bb66290c09d821dee1..3eb7bc29714c803b2ab51bb2870dd587f6325ea7 100644
--- a/cc/resources/tile_manager.cc
+++ b/cc/resources/tile_manager.cc
@@ -98,7 +98,6 @@ scoped_ptr<TileManager> TileManager::Create(
TileManagerClient* client,
ResourceProvider* resource_provider,
size_t num_raster_threads,
- bool use_color_estimator,
RenderingStatsInstrumentation* rendering_stats_instrumentation,
bool use_map_image) {
return make_scoped_ptr(
@@ -110,7 +109,6 @@ scoped_ptr<TileManager> TileManager::Create(
PixelBufferRasterWorkerPool::Create(
resource_provider, num_raster_threads),
num_raster_threads,
- use_color_estimator,
rendering_stats_instrumentation,
resource_provider->best_texture_format()));
}
@@ -120,7 +118,6 @@ TileManager::TileManager(
ResourceProvider* resource_provider,
scoped_ptr<RasterWorkerPool> raster_worker_pool,
size_t num_raster_threads,
- bool use_color_estimator,
RenderingStatsInstrumentation* rendering_stats_instrumentation,
GLenum texture_format)
: client_(client),
@@ -128,7 +125,6 @@ TileManager::TileManager(
raster_worker_pool_(raster_worker_pool.Pass()),
ever_exceeded_memory_budget_(false),
rendering_stats_instrumentation_(rendering_stats_instrumentation),
- use_color_estimator_(use_color_estimator),
did_initialize_visible_tile_(false),
texture_format_(texture_format) {
raster_worker_pool_->SetClient(this);
@@ -736,7 +732,6 @@ RasterWorkerPool::RasterTask TileManager::CreateRasterTask(Tile* tile) {
tile->content_rect(),
tile->contents_scale(),
mts.raster_mode,
- use_color_estimator_,
metadata,
rendering_stats_instrumentation_,
base::Bind(&TileManager::OnRasterTaskCompleted,
« no previous file with comments | « cc/resources/tile_manager.h ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698