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

Unified Diff: cc/tiles/tile_manager_unittest.cc

Issue 2235623003: cc: Add gfx::ColorSpace to cc::ResourceProvider resource creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/trees/layer_tree_host_impl.cc » ('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 3d657d7b7962e6906bd6a7c39fa1ffc7160d3622..9e904b815aaa257efa7ff1453cb62bdc7963a934 100644
--- a/cc/tiles/tile_manager_unittest.cc
+++ b/cc/tiles/tile_manager_unittest.cc
@@ -1327,7 +1327,7 @@ TEST_F(TileManagerTilePriorityQueueTest,
EXPECT_TRUE(host_impl()->is_likely_to_require_a_draw());
Resource* resource = host_impl()->resource_pool()->AcquireResource(
- gfx::Size(256, 256), RGBA_8888);
+ gfx::Size(256, 256), RGBA_8888, gfx::ColorSpace());
host_impl()->tile_manager()->CheckIfMoreTilesNeedToBePreparedForTesting();
EXPECT_FALSE(host_impl()->is_likely_to_require_a_draw());
@@ -1839,8 +1839,8 @@ void RunPartialRasterCheck(std::unique_ptr<LayerTreeHostImpl> host_impl,
&raster_buffer_provider);
// Ensure there's a resource with our |kInvalidatedId| in the resource pool.
- auto* resource =
- host_impl->resource_pool()->AcquireResource(kTileSize, RGBA_8888);
+ auto* resource = host_impl->resource_pool()->AcquireResource(
+ kTileSize, RGBA_8888, gfx::ColorSpace());
host_impl->resource_pool()->OnContentReplaced(resource->id(), kInvalidatedId);
host_impl->resource_pool()->ReleaseResource(resource);
host_impl->resource_pool()->CheckBusyResources();
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698