Commit fd17d0e9 authored by r.kasibhatla's avatar r.kasibhatla Committed by Commit bot

Add Layer Id information to the LayerTree json string

LayerTreeAsJson is useful during debugging of layer tree operations.
Adding the layer id into the information for the layer currently being
serialized. This helps the function be more usable as user knows which
layer he is looking when checking the json.

BUG=None

R=danakj,enne

Review URL: https://codereview.chromium.org/1140913002

Cr-Commit-Position: refs/heads/master@{#330306}
parent 948fbc73
......@@ -656,6 +656,7 @@ gfx::Vector2dF LayerImpl::FixedContainerSizeDelta() const {
base::DictionaryValue* LayerImpl::LayerTreeAsJson() const {
base::DictionaryValue* result = new base::DictionaryValue;
result->SetInteger("LayerId", id());
result->SetString("LayerType", LayerTypeAsString());
base::ListValue* list = new base::ListValue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment