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

Unified Diff: cc/resources/resource_provider_unittest.cc

Issue 1951193002: cc: Add mailbox support to ResourceProvider write locks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@worker_context_stream
Patch Set: cleanup tasks if ordering barrier fails 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
Index: cc/resources/resource_provider_unittest.cc
diff --git a/cc/resources/resource_provider_unittest.cc b/cc/resources/resource_provider_unittest.cc
index 7884a205114d051ef6da65b233e7c43386c7c4c0..891844c6e529f1b7b1456934093fca56567f6f19 100644
--- a/cc/resources/resource_provider_unittest.cc
+++ b/cc/resources/resource_provider_unittest.cc
@@ -3722,7 +3722,7 @@ TEST_P(ResourceProviderTest, GpuMemoryBufferReadLockFail) {
{
ResourceProvider::ScopedReadLockGpuMemoryBuffer lock(
resource_provider_.get(), id);
- EXPECT_FALSE(lock.GetGpuMemoryBuffer());
+ EXPECT_FALSE(lock.gpu_memory_buffer());
}
}
@@ -3747,7 +3747,7 @@ TEST_P(ResourceProviderTest, GpuMemoryBufferReadLockSucceed) {
{
ResourceProvider::ScopedReadLockGpuMemoryBuffer lock(
resource_provider_.get(), id);
- EXPECT_EQ(gpu_memory_buffer, lock.GetGpuMemoryBuffer());
+ EXPECT_EQ(gpu_memory_buffer, lock.gpu_memory_buffer());
}
}
@@ -3804,14 +3804,14 @@ TEST_P(ResourceProviderTest, ChildGpuMemoryBufferReadLock) {
{
ResourceProvider::ScopedReadLockGpuMemoryBuffer lock(
resource_provider_.get(), list[0].id);
- EXPECT_FALSE(lock.GetGpuMemoryBuffer());
+ EXPECT_FALSE(lock.gpu_memory_buffer());
}
// The gmb resource should have a GpuMemoryBuffer when locked
{
ResourceProvider::ScopedReadLockGpuMemoryBuffer lock(
resource_provider_.get(), list[1].id);
- gfx::GpuMemoryBuffer* parent_gmb = lock.GetGpuMemoryBuffer();
+ gfx::GpuMemoryBuffer* parent_gmb = lock.gpu_memory_buffer();
EXPECT_TRUE(parent_gmb);
EXPECT_NE(child_gmb, parent_gmb);

Powered by Google App Engine
This is Rietveld 408576698