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

Unified Diff: cc/test/test_layer_tree_host_base.cc

Issue 2726343004: cc: Optimize decode scheduling for checker-images. (Closed)
Patch Set: rebase Created 3 years, 8 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/test/test_layer_tree_host_base.h ('k') | cc/tiles/checker_image_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_layer_tree_host_base.cc
diff --git a/cc/test/test_layer_tree_host_base.cc b/cc/test/test_layer_tree_host_base.cc
index 35fcfadb6fa23b62bc0b311105b831df403007a3..68f9f9b9e719902bd0b7cc103459c546d4fa94b5 100644
--- a/cc/test/test_layer_tree_host_base.cc
+++ b/cc/test/test_layer_tree_host_base.cc
@@ -159,6 +159,18 @@ void TestLayerTreeHostBase::ActivateTree() {
host_impl()->active_tree()->UpdateDrawProperties(update_lcd_text);
}
+void TestLayerTreeHostBase::PerformImplSideInvalidation() {
+ DCHECK(host_impl()->active_tree());
+ DCHECK(!host_impl()->pending_tree());
+ DCHECK(host_impl()->recycle_tree());
+
+ host_impl()->CreatePendingTree();
+ host_impl()->sync_tree()->InvalidateRegionForImages(
+ host_impl()->tile_manager()->TakeImagesToInvalidateOnSyncTree());
+ pending_layer_ = old_pending_layer_;
+ old_pending_layer_ = nullptr;
+}
+
void TestLayerTreeHostBase::RebuildPropertyTreesOnPendingTree() {
host_impl()->pending_tree()->property_trees()->needs_rebuild = true;
host_impl()->pending_tree()->BuildLayerListAndPropertyTreesForTesting();
« no previous file with comments | « cc/test/test_layer_tree_host_base.h ('k') | cc/tiles/checker_image_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698