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

Unified Diff: cc/debug/traced_picture.cc

Issue 14772032: Trace picture piles on layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nitfixen Created 7 years, 7 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/base/math_util.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/traced_picture.cc
diff --git a/cc/debug/traced_picture.cc b/cc/debug/traced_picture.cc
index 756470a7764b89d3bff3e47b51b335a9b7fc8daf..33ae7e1daf5971982e1a9411f7fc8605ef8fa47c 100644
--- a/cc/debug/traced_picture.cc
+++ b/cc/debug/traced_picture.cc
@@ -28,9 +28,16 @@ scoped_ptr<base::debug::ConvertableToTraceFormat>
void TracedPicture::AppendAsTraceFormat(std::string* out) const {
std::string encoded_picture;
picture_->AsBase64String(&encoded_picture);
- out->append("\"");
+ out->append("{");
+ out->append("\"layer_rect\": [");
+ base::StringAppendF(
+ out, "%i,%i,%i,%i",
+ picture_->LayerRect().x(), picture_->LayerRect().y(),
+ picture_->LayerRect().width(), picture_->LayerRect().height());
+ out->append("],");
+ out->append("\"data_b64\": \"");
out->append(encoded_picture);
- out->append("\"");
+ out->append("\"}");
}
} // namespace cc
« no previous file with comments | « cc/base/math_util.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698