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

Unified Diff: cc/quads/render_pass.cc

Issue 853393002: cc: refactor of MathUtil::AddToTracedValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/quads/picture_draw_quad.cc ('k') | cc/quads/render_pass_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass.cc
diff --git a/cc/quads/render_pass.cc b/cc/quads/render_pass.cc
index a1426f5341654cbdc88504048f8685921f305626..0a77a90779e0877213f13cf5c0d11335d34f62a7 100644
--- a/cc/quads/render_pass.cc
+++ b/cc/quads/render_pass.cc
@@ -181,13 +181,8 @@ void RenderPass::SetAll(RenderPassId id,
}
void RenderPass::AsValueInto(base::debug::TracedValue* value) const {
- value->BeginArray("output_rect");
- MathUtil::AddToTracedValue(output_rect, value);
- value->EndArray();
-
- value->BeginArray("damage_rect");
- MathUtil::AddToTracedValue(damage_rect, value);
- value->EndArray();
+ MathUtil::AddToTracedValue("output_rect", output_rect, value);
+ MathUtil::AddToTracedValue("damage_rect", damage_rect, value);
value->SetBoolean("has_transparent_background", has_transparent_background);
value->SetInteger("copy_requests", copy_requests.size());
« no previous file with comments | « cc/quads/picture_draw_quad.cc ('k') | cc/quads/render_pass_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698