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

Unified Diff: cc/resources/raster_worker_pool_perftest.cc

Issue 328263005: cc: Rename DirectRasterWorkerPool to GpuRasterWorkerPool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated build.gn file Created 6 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/gpu_raster_worker_pool.cc ('k') | cc/resources/raster_worker_pool_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/raster_worker_pool_perftest.cc
diff --git a/cc/resources/raster_worker_pool_perftest.cc b/cc/resources/raster_worker_pool_perftest.cc
index a0b63efaf610f64a168229d300cc300498027e10..a04f5b0d132a613435f49f36642c4f0fc843723d 100644
--- a/cc/resources/raster_worker_pool_perftest.cc
+++ b/cc/resources/raster_worker_pool_perftest.cc
@@ -7,7 +7,7 @@
#include "base/time/time.h"
#include "cc/debug/lap_timer.h"
#include "cc/output/context_provider.h"
-#include "cc/resources/direct_raster_worker_pool.h"
+#include "cc/resources/gpu_raster_worker_pool.h"
#include "cc/resources/image_copy_raster_worker_pool.h"
#include "cc/resources/image_raster_worker_pool.h"
#include "cc/resources/pixel_buffer_raster_worker_pool.h"
@@ -79,7 +79,7 @@ enum RasterWorkerPoolType {
RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER,
RASTER_WORKER_POOL_TYPE_IMAGE,
RASTER_WORKER_POOL_TYPE_IMAGE_COPY,
- RASTER_WORKER_POOL_TYPE_DIRECT
+ RASTER_WORKER_POOL_TYPE_GPU
};
static const int kTimeLimitMillis = 2000;
@@ -234,11 +234,11 @@ class RasterWorkerPoolPerfTest
resource_provider_.get(),
staging_resource_pool_.get());
break;
- case RASTER_WORKER_POOL_TYPE_DIRECT:
- raster_worker_pool_ = DirectRasterWorkerPool::Create(
- base::MessageLoopProxy::current().get(),
- resource_provider_.get(),
- context_provider_.get());
+ case RASTER_WORKER_POOL_TYPE_GPU:
+ raster_worker_pool_ =
+ GpuRasterWorkerPool::Create(base::MessageLoopProxy::current().get(),
+ resource_provider_.get(),
+ context_provider_.get());
break;
}
@@ -379,8 +379,8 @@ class RasterWorkerPoolPerfTest
return std::string("_image_raster_worker_pool");
case RASTER_WORKER_POOL_TYPE_IMAGE_COPY:
return std::string("_image_copy_raster_worker_pool");
- case RASTER_WORKER_POOL_TYPE_DIRECT:
- return std::string("_direct_raster_worker_pool");
+ case RASTER_WORKER_POOL_TYPE_GPU:
+ return std::string("_gpu_raster_worker_pool");
}
NOTREACHED();
return std::string();
@@ -421,7 +421,7 @@ INSTANTIATE_TEST_CASE_P(RasterWorkerPoolPerfTests,
::testing::Values(RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER,
RASTER_WORKER_POOL_TYPE_IMAGE,
RASTER_WORKER_POOL_TYPE_IMAGE_COPY,
- RASTER_WORKER_POOL_TYPE_DIRECT));
+ RASTER_WORKER_POOL_TYPE_GPU));
class RasterWorkerPoolCommonPerfTest : public RasterWorkerPoolPerfTestBase,
public testing::Test {
« no previous file with comments | « cc/resources/gpu_raster_worker_pool.cc ('k') | cc/resources/raster_worker_pool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698