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

Unified Diff: cc/test/layer_tree_json_parser.cc

Issue 332873005: Rendering context information added to SharedQuadState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layer_tree_json_parser fix 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/layer_tree_host_common_test.h ('k') | cc/test/render_pass_test_common.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 e94bbea6f7b97a7edac61d650fd7e6dc8a4c3c63..1514d83487797aa8294f705d97a148fdbf33350a 100644
--- a/cc/test/layer_tree_json_parser.cc
+++ b/cc/test/layer_tree_json_parser.cc
@@ -130,8 +130,10 @@ scoped_refptr<Layer> ParseTreeFromValue(base::Value* val,
new_layer->SetHaveScrollEventHandlers(scroll_handler);
bool is_3d_sorted;
- if (dict->GetBoolean("Is3DSorted", &is_3d_sorted))
- new_layer->SetIs3dSorted(is_3d_sorted);
+ if (dict->GetBoolean("Is3DSorted", &is_3d_sorted)) {
+ // A non-zero context ID will put the layer into a 3D sorting context
+ new_layer->Set3dSortingContextId(is_3d_sorted ? 1 : 0);
+ }
if (dict->HasKey("TouchRegion")) {
success &= dict->GetList("TouchRegion", &list);
« no previous file with comments | « cc/test/layer_tree_host_common_test.h ('k') | cc/test/render_pass_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698