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

Unified Diff: cc/tiles/tile_manager_unittest.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/tiles/tile_manager_perftest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager_unittest.cc
diff --git a/cc/tiles/tile_manager_unittest.cc b/cc/tiles/tile_manager_unittest.cc
index 7a121560cf877a55be6b7604f605a03098077b05..2da6e3e2ee9469fea01367ae685361778c95d444 100644
--- a/cc/tiles/tile_manager_unittest.cc
+++ b/cc/tiles/tile_manager_unittest.cc
@@ -1828,7 +1828,7 @@ TEST_F(TileManagerTest, LowResHasNoImage) {
}
// Fake TileTaskRunner that just no-ops all calls.
-class FakeTileTaskRunner : public TileTaskRunner, public TileTaskClient {
+class FakeTileTaskRunner : public TileTaskRunner, public RasterBufferProvider {
public:
FakeTileTaskRunner() {}
~FakeTileTaskRunner() override {}
@@ -1842,10 +1842,11 @@ class FakeTileTaskRunner : public TileTaskRunner, public TileTaskClient {
bool GetResourceRequiresSwizzle(bool must_support_alpha) const override {
return false;
}
+ RasterBufferProvider* AsRasterBufferProvider() override { return this; }
void ScheduleTasks(TaskGraph* graph) override {}
- // TileTaskClient methods.
+ // RasterBufferProvider methods.
std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
const Resource* resource,
uint64_t resource_content_id,
@@ -1949,7 +1950,7 @@ class VerifyResourceContentIdTileTaskRunner : public FakeTileTaskRunner {
}
}
- // TileTaskClient methods.
+ // RasterBufferProvider methods.
std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
const Resource* resource,
uint64_t resource_content_id,
« no previous file with comments | « cc/tiles/tile_manager_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698