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

Unified Diff: cc/tiles/gpu_image_decode_cache_unittest.cc

Issue 2664703002: Move purging from OnMemoryState to OnPurgeMemory() in cc/ (Closed)
Patch Set: Don't call OnPurgeMemory() in OnStateChange() Created 3 years, 10 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/tiles/gpu_image_decode_cache_unittest.cc
diff --git a/cc/tiles/gpu_image_decode_cache_unittest.cc b/cc/tiles/gpu_image_decode_cache_unittest.cc
index aeeb6880a4f640cdfa22288b441503bf1cb192b6..901c7f8476faf079a83d37149aeb326078934dad 100644
--- a/cc/tiles/gpu_image_decode_cache_unittest.cc
+++ b/cc/tiles/gpu_image_decode_cache_unittest.cc
@@ -1336,7 +1336,8 @@ TEST(GpuImageDecodeCacheTest, MemoryStateSuspended) {
DCHECK_EQ(cache.GetBytesUsedForTesting(), 0u);
DCHECK_EQ(cache.GetNumCacheEntriesForTesting(), 1u);
- // Set us to the SUSPENDED state.
+ // Set us to the SUSPENDED state with purging.
+ cache.OnPurgeMemory();
cache.OnMemoryStateChange(base::MemoryState::SUSPENDED);
// Nothing should be cached.

Powered by Google App Engine
This is Rietveld 408576698