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

Unified Diff: cc/output/output_surface_unittest.cc

Issue 1324413003: Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove more redundant code. Created 5 years, 3 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/output/output_surface_unittest.cc
diff --git a/cc/output/output_surface_unittest.cc b/cc/output/output_surface_unittest.cc
index 633733265072318641ebe9ef09ca2468c8ae8328..1ca1d5a12ce152e0956a8d27073fce29d64560a2 100644
--- a/cc/output/output_surface_unittest.cc
+++ b/cc/output/output_surface_unittest.cc
@@ -166,20 +166,17 @@ TEST(OutputSurfaceTest, MemoryAllocation) {
policy.priority_cutoff_when_visible =
gpu::MemoryAllocation::CUTOFF_ALLOW_REQUIRED_ONLY;
- context_provider->SetMemoryAllocation(policy);
piman 2015/09/28 18:32:38 I assume the test will need to be updated to pass,
sohanjg 2015/09/29 14:19:26 Done.
EXPECT_EQ(1234u, client.memory_policy().bytes_limit_when_visible);
EXPECT_EQ(gpu::MemoryAllocation::CUTOFF_ALLOW_REQUIRED_ONLY,
client.memory_policy().priority_cutoff_when_visible);
policy.priority_cutoff_when_visible =
gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING;
- context_provider->SetMemoryAllocation(policy);
EXPECT_EQ(gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING,
client.memory_policy().priority_cutoff_when_visible);
// 0 bytes limit should be ignored.
policy.bytes_limit_when_visible = 0;
- context_provider->SetMemoryAllocation(policy);
EXPECT_EQ(1234u, client.memory_policy().bytes_limit_when_visible);
}

Powered by Google App Engine
This is Rietveld 408576698