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

Unified Diff: cc/test/fake_tile_manager.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/zero_copy_tile_task_worker_pool.cc ('k') | cc/tiles/gpu_image_decode_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_tile_manager.cc
diff --git a/cc/test/fake_tile_manager.cc b/cc/test/fake_tile_manager.cc
index b76cd17654e9c6cd56977e9d4c5e7a46d3cd5579..ebc0b70a51bfc3dcab4e50cce76172bccf2a0675 100644
--- a/cc/test/fake_tile_manager.cc
+++ b/cc/test/fake_tile_manager.cc
@@ -19,7 +19,8 @@ namespace cc {
namespace {
-class FakeTileTaskRunnerImpl : public TileTaskRunner, public TileTaskClient {
+class FakeTileTaskRunnerImpl : public TileTaskRunner,
+ public RasterBufferProvider {
public:
// Overridden from TileTaskRunner:
void Shutdown() override {}
@@ -52,8 +53,9 @@ class FakeTileTaskRunnerImpl : public TileTaskRunner, public TileTaskClient {
bool GetResourceRequiresSwizzle(bool must_support_alpha) const override {
return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha));
}
+ RasterBufferProvider* AsRasterBufferProvider() override { return this; }
- // Overridden from TileTaskClient:
+ // Overridden from RasterBufferProvider:
std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
const Resource* resource,
uint64_t resource_content_id,
« no previous file with comments | « cc/raster/zero_copy_tile_task_worker_pool.cc ('k') | cc/tiles/gpu_image_decode_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698