summaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorwangxianzhu@chromium.org <wangxianzhu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-25 22:01:52 +0000
committerwangxianzhu@chromium.org <wangxianzhu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-25 22:01:52 +0000
commit729ce2168a4614964398b564f323b127271c50b6 (patch)
tree2ab505781f24fb6f50907ec94642b02e548a500f /cc
parent903eef3b5c3c4567cbcf5273da076fbf4981d0fc (diff)
downloadchromium_src-729ce2168a4614964398b564f323b127271c50b6.zip
chromium_src-729ce2168a4614964398b564f323b127271c50b6.tar.gz
chromium_src-729ce2168a4614964398b564f323b127271c50b6.tar.bz2
Show pictures layer_rect in trace
Sometimes I want to know the position of a new recorded picture on the layer, in order to know which pictures contribute to a tile. BUG=none Review URL: https://codereview.chromium.org/211533002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259351 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc')
-rw-r--r--cc/resources/picture.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc
index 02d7650..3b90ac4 100644
--- a/cc/resources/picture.cc
+++ b/cc/resources/picture.cc
@@ -505,8 +505,7 @@ scoped_refptr<base::debug::ConvertableToTraceFormat>
Picture::AsTraceableRecordData() const {
scoped_ptr<base::DictionaryValue> record_data(new base::DictionaryValue());
record_data->Set("picture_id", TracedValue::CreateIDRef(this).release());
- record_data->SetInteger("width", layer_rect_.width());
- record_data->SetInteger("height", layer_rect_.height());
+ record_data->Set("layer_rect", MathUtil::AsValue(layer_rect_).release());
return TracedValue::FromValue(record_data.release());
}