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

Unified Diff: cc/test/layer_tree_json_parser.cc

Issue 305063002: Added perftests for layer sorting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « cc/test/data/layer_sort_rubik.json ('k') | cc/trees/layer_tree_host_common_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_json_parser.cc
diff --git a/cc/test/layer_tree_json_parser.cc b/cc/test/layer_tree_json_parser.cc
index 6e3164ce9e40fb912d831d233980bea3b89c7c4c..32bb0fa896aa7258cbfd599e8a50d9c7090cb359 100644
--- a/cc/test/layer_tree_json_parser.cc
+++ b/cc/test/layer_tree_json_parser.cc
@@ -130,6 +130,10 @@ scoped_refptr<Layer> ParseTreeFromValue(base::Value* val,
if (dict->GetBoolean("ScrollHandler", &scroll_handler))
new_layer->SetHaveScrollEventHandlers(scroll_handler);
+ bool is_3d_sorted;
+ if (dict->GetBoolean("Is3DSorted", &is_3d_sorted))
+ new_layer->SetIs3dSorted(is_3d_sorted);
+
if (dict->HasKey("TouchRegion")) {
success &= dict->GetList("TouchRegion", &list);
Region touch_region;
« no previous file with comments | « cc/test/data/layer_sort_rubik.json ('k') | cc/trees/layer_tree_host_common_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698