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

Unified Diff: cc/raster/tile_task_worker_pool_unittest.cc

Issue 1202843008: cc: Fix BytesPerPixel issue and refactor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Android build break. Created 5 years, 5 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/pixel_buffer_tile_task_worker_pool.cc ('k') | cc/resources/resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/tile_task_worker_pool_unittest.cc
diff --git a/cc/raster/tile_task_worker_pool_unittest.cc b/cc/raster/tile_task_worker_pool_unittest.cc
index 76e5fe4d56ffacbcf2b3f0a32552f6d9ba6287df..fa36474c3b977792b4ebb4d5609fffa3db801510 100644
--- a/cc/raster/tile_task_worker_pool_unittest.cc
+++ b/cc/raster/tile_task_worker_pool_unittest.cc
@@ -406,8 +406,8 @@ TEST_P(TileTaskWorkerPoolTest, LargeResources) {
ScopedResource::Create(resource_provider_.get()));
resource->Allocate(size, ResourceProvider::TEXTURE_HINT_IMMUTABLE,
RGBA_8888);
- EXPECT_GE(Resource::UncheckedMemorySizeBytes(resource->size(),
- resource->format()),
+ EXPECT_GE(ResourceUtil::UncheckedSizeInBytes<size_t>(resource->size(),
+ resource->format()),
kMaxTransferBufferUsageBytes);
}
« no previous file with comments | « cc/raster/pixel_buffer_tile_task_worker_pool.cc ('k') | cc/resources/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698