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

Unified Diff: cc/raster/tile_task_worker_pool_perftest.cc

Issue 1885873002: cc: Rename TileTaskClient interface to RasterBufferProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_schedule
Patch Set: Removed patch dependency. Created 4 years, 8 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/raster/tile_task_worker_pool.cc ('k') | cc/raster/tile_task_worker_pool_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/tile_task_worker_pool_perftest.cc
diff --git a/cc/raster/tile_task_worker_pool_perftest.cc b/cc/raster/tile_task_worker_pool_perftest.cc
index d2c7e6c50f29d24207040c3b2ea0200831f99c6a..2335ca75f70d29972cff9dae102905469c0718e6 100644
--- a/cc/raster/tile_task_worker_pool_perftest.cc
+++ b/cc/raster/tile_task_worker_pool_perftest.cc
@@ -15,7 +15,6 @@
#include "cc/raster/gpu_rasterizer.h"
#include "cc/raster/gpu_tile_task_worker_pool.h"
#include "cc/raster/one_copy_tile_task_worker_pool.h"
-#include "cc/raster/raster_buffer.h"
#include "cc/raster/synchronous_task_graph_runner.h"
#include "cc/raster/tile_task_runner.h"
#include "cc/raster/tile_task_worker_pool.h"
@@ -132,8 +131,10 @@ class PerfImageDecodeTaskImpl : public ImageDecodeTask {
void RunOnWorkerThread() override {}
// Overridden from TileTask:
- void ScheduleOnOriginThread(TileTaskClient* client) override {}
- void CompleteOnOriginThread(TileTaskClient* client) override { Reset(); }
+ void ScheduleOnOriginThread(RasterBufferProvider* provider) override {}
+ void CompleteOnOriginThread(RasterBufferProvider* provider) override {
+ Reset();
+ }
void Reset() {
did_run_ = false;
@@ -157,12 +158,12 @@ class PerfRasterTaskImpl : public RasterTask {
void RunOnWorkerThread() override {}
// Overridden from TileTask:
- void ScheduleOnOriginThread(TileTaskClient* client) override {
+ void ScheduleOnOriginThread(RasterBufferProvider* provider) override {
// No tile ids are given to support partial updates.
- raster_buffer_ = client->AcquireBufferForRaster(resource_.get(), 0, 0);
+ raster_buffer_ = provider->AcquireBufferForRaster(resource_.get(), 0, 0);
}
- void CompleteOnOriginThread(TileTaskClient* client) override {
- client->ReleaseBufferForRaster(std::move(raster_buffer_));
+ void CompleteOnOriginThread(RasterBufferProvider* provider) override {
+ provider->ReleaseBufferForRaster(std::move(raster_buffer_));
Reset();
}
« no previous file with comments | « cc/raster/tile_task_worker_pool.cc ('k') | cc/raster/tile_task_worker_pool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698