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

Side by Side Diff: cc/resources/raster_worker_pool_perftest.cc

Issue 266743003: Add flag to enable rendering of text using signed distance fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix uses of ResourceProvider::Create() outside of Chrome proper. Created 6 years, 7 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 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 #include "cc/resources/raster_worker_pool.h" 5 #include "cc/resources/raster_worker_pool.h"
6 6
7 #include "base/time/time.h" 7 #include "base/time/time.h"
8 #include "cc/output/context_provider.h" 8 #include "cc/output/context_provider.h"
9 #include "cc/resources/direct_raster_worker_pool.h" 9 #include "cc/resources/direct_raster_worker_pool.h"
10 #include "cc/resources/image_copy_raster_worker_pool.h" 10 #include "cc/resources/image_copy_raster_worker_pool.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 task_graph_runner_(new TaskGraphRunner), 150 task_graph_runner_(new TaskGraphRunner),
151 timer_(kWarmupRuns, 151 timer_(kWarmupRuns,
152 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), 152 base::TimeDelta::FromMilliseconds(kTimeLimitMillis),
153 kTimeCheckInterval) { 153 kTimeCheckInterval) {
154 output_surface_ = FakeOutputSurface::Create3d(context_provider_).Pass(); 154 output_surface_ = FakeOutputSurface::Create3d(context_provider_).Pass();
155 CHECK(output_surface_->BindToClient(&output_surface_client_)); 155 CHECK(output_surface_->BindToClient(&output_surface_client_));
156 156
157 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); 157 shared_bitmap_manager_.reset(new TestSharedBitmapManager());
158 resource_provider_ = 158 resource_provider_ =
159 ResourceProvider::Create( 159 ResourceProvider::Create(
160 output_surface_.get(), shared_bitmap_manager_.get(), 0, false, 1) 160 output_surface_.get(), shared_bitmap_manager_.get(), 0, false, 1,
161 .Pass(); 161 false).Pass();
162 staging_resource_pool_ = ResourcePool::Create( 162 staging_resource_pool_ = ResourcePool::Create(
163 resource_provider_.get(), GL_TEXTURE_2D, RGBA_8888); 163 resource_provider_.get(), GL_TEXTURE_2D, RGBA_8888);
164 } 164 }
165 165
166 void CreateImageDecodeTasks(unsigned num_image_decode_tasks, 166 void CreateImageDecodeTasks(unsigned num_image_decode_tasks,
167 ImageDecodeTask::Vector* image_decode_tasks) { 167 ImageDecodeTask::Vector* image_decode_tasks) {
168 for (unsigned i = 0; i < num_image_decode_tasks; ++i) 168 for (unsigned i = 0; i < num_image_decode_tasks; ++i)
169 image_decode_tasks->push_back(new PerfImageDecodeTaskImpl); 169 image_decode_tasks->push_back(new PerfImageDecodeTaskImpl);
170 } 170 }
171 171
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 RunBuildRasterTaskQueueTest("1_0", 1, 0); 456 RunBuildRasterTaskQueueTest("1_0", 1, 0);
457 RunBuildRasterTaskQueueTest("32_0", 32, 0); 457 RunBuildRasterTaskQueueTest("32_0", 32, 0);
458 RunBuildRasterTaskQueueTest("1_1", 1, 1); 458 RunBuildRasterTaskQueueTest("1_1", 1, 1);
459 RunBuildRasterTaskQueueTest("32_1", 32, 1); 459 RunBuildRasterTaskQueueTest("32_1", 32, 1);
460 RunBuildRasterTaskQueueTest("1_4", 1, 4); 460 RunBuildRasterTaskQueueTest("1_4", 1, 4);
461 RunBuildRasterTaskQueueTest("32_4", 32, 4); 461 RunBuildRasterTaskQueueTest("32_4", 32, 4);
462 } 462 }
463 463
464 } // namespace 464 } // namespace
465 } // namespace cc 465 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/prioritized_tile_set_unittest.cc ('k') | cc/resources/raster_worker_pool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698