| 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);
|
|
|