diff options
author | thildebr@chromium.org <thildebr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-21 05:36:18 +0000 |
---|---|---|
committer | thildebr@chromium.org <thildebr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-21 05:36:18 +0000 |
commit | 0d364a9edbb5bb6412365749eb0118dc4072ddd7 (patch) | |
tree | def9568a02eae264e50c06875f90b08cc002eeb9 | |
parent | 4147385d2f55c886595ae09faf8d5ee060873725 (diff) | |
download | chromium_src-0d364a9edbb5bb6412365749eb0118dc4072ddd7.zip chromium_src-0d364a9edbb5bb6412365749eb0118dc4072ddd7.tar.gz chromium_src-0d364a9edbb5bb6412365749eb0118dc4072ddd7.tar.bz2 |
Small layer_tree_json_parser fix for Is3dSorted
BUG=386585
Review URL: https://codereview.chromium.org/341273004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278931 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | cc/test/layer_tree_json_parser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/test/layer_tree_json_parser.cc b/cc/test/layer_tree_json_parser.cc index f177e118..1514d83 100644 --- a/cc/test/layer_tree_json_parser.cc +++ b/cc/test/layer_tree_json_parser.cc @@ -132,7 +132,7 @@ scoped_refptr<Layer> ParseTreeFromValue(base::Value* val, bool 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(1); + new_layer->Set3dSortingContextId(is_3d_sorted ? 1 : 0); } if (dict->HasKey("TouchRegion")) { |