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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 1233003004: NotifyAllTileTasksCompleted for synchronous renderer compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2454
Patch Set: 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/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 6c3ae9e86bf5484b536468d4b271ea448d8f85a6..6d9c9c67199fbe1de37c8e323c741e004d8b6798 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -353,6 +353,22 @@ class LayerTreeHostFreeWorkerContextResourcesOnZeroMemoryLimit
SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostFreeWorkerContextResourcesOnZeroMemoryLimit);
+// Test if the LTH successfully frees resources on the worker context when
+// hard memory limit is set to zero while using a synchronous compositor (like
+// Android WebView).
+class LayerTreeHostFreeWorkerContextResourcesOnZeroMemoryLimitSynchronous
+ : public LayerTreeHostFreeWorkerContextResourcesOnZeroMemoryLimit {
+ public:
+ void InitializeSettings(LayerTreeSettings* settings) override {
+ LayerTreeHostFreeWorkerContextResourcesTest::InitializeSettings(settings);
+ settings->use_external_begin_frame_source = true;
+ settings->using_synchronous_renderer_compositor = true;
+ }
+};
+
+SINGLE_AND_MULTI_THREAD_TEST_F(
+ LayerTreeHostFreeWorkerContextResourcesOnZeroMemoryLimitSynchronous);
+
// Two setNeedsCommits in a row should lead to at least 1 commit and at least 1
// draw with frame 0.
class LayerTreeHostTestSetNeedsCommit1 : public LayerTreeHostTest {
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698