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

Unified Diff: cc/tiles/tile_manager_unittest.cc

Issue 2081883002: Reland of cc: Add mailbox support to ResourceProvider write locks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@worker_context_sync_tokens_revert
Patch Set: rebase Created 4 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/tiles/tile_manager.cc ('k') | cc/tiles/tile_task_manager.h » ('j') | 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 f910c7a9fda68a600054fe5e24a0a5b2878f9e20..0492417226851639da655baf119c61d0c3e6c04b 100644
--- a/cc/tiles/tile_manager_unittest.cc
+++ b/cc/tiles/tile_manager_unittest.cc
@@ -1811,15 +1811,6 @@ class VerifyResourceContentIdRasterBufferProvider
uint64_t expected_resource_id_;
};
-class VerifyResourceContentIdTileTaskManager : public FakeTileTaskManagerImpl {
- public:
- explicit VerifyResourceContentIdTileTaskManager(uint64_t expected_resource_id)
- : FakeTileTaskManagerImpl(base::WrapUnique<RasterBufferProvider>(
- new VerifyResourceContentIdRasterBufferProvider(
- expected_resource_id))) {}
- ~VerifyResourceContentIdTileTaskManager() override {}
-};
-
// Runs a test to ensure that partial raster is either enabled or disabled,
// depending on |partial_raster_enabled|'s value. Takes ownership of host_impl
// so that cleanup order can be controlled.
@@ -1833,9 +1824,13 @@ void RunPartialRasterCheck(std::unique_ptr<LayerTreeHostImpl> host_impl,
// Create a VerifyResourceContentIdTileTaskManager to ensure that the
// raster task we see is created with |kExpectedId|.
- VerifyResourceContentIdTileTaskManager verifying_task_manager(kExpectedId);
- host_impl->tile_manager()->SetTileTaskManagerForTesting(
- &verifying_task_manager);
+ FakeTileTaskManagerImpl tile_task_manager;
+ host_impl->tile_manager()->SetTileTaskManagerForTesting(&tile_task_manager);
+
+ VerifyResourceContentIdRasterBufferProvider raster_buffer_provider(
+ kExpectedId);
+ host_impl->tile_manager()->SetRasterBufferProviderForTesting(
+ &raster_buffer_provider);
// Ensure there's a resource with our |kInvalidatedId| in the resource pool.
host_impl->resource_pool()->ReleaseResource(
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/tiles/tile_task_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698