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

Unified Diff: cc/quads/render_pass_draw_quad.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/render_pass.cc ('k') | cc/quads/shared_quad_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass_draw_quad.cc
diff --git a/cc/quads/render_pass_draw_quad.cc b/cc/quads/render_pass_draw_quad.cc
index d3aeb05c62e62b36175aff3dc5465c1984ee9b5e..ce5065ff06b792725182be3893240220e47532e5 100644
--- a/cc/quads/render_pass_draw_quad.cc
+++ b/cc/quads/render_pass_draw_quad.cc
@@ -98,22 +98,13 @@ const RenderPassDrawQuad* RenderPassDrawQuad::MaterialCast(
void RenderPassDrawQuad::ExtendValue(base::debug::TracedValue* value) const {
TracedValue::SetIDRef(render_pass_id.AsTracingId(), value, "render_pass_id");
value->SetInteger("mask_resource_id", mask_resource_id);
-
- value->BeginDictionary("mask_texture_size");
- MathUtil::AddToTracedValue(mask_texture_size, value);
- value->EndDictionary();
-
- value->BeginArray("mask_uv_scale");
- MathUtil::AddToTracedValue(mask_uv_scale, value);
- value->EndArray();
+ MathUtil::AddToTracedValue("mask_texture_size", mask_texture_size, value);
+ MathUtil::AddToTracedValue("mask_uv_scale", mask_uv_scale, value);
value->BeginDictionary("filters");
filters.AsValueInto(value);
value->EndDictionary();
-
- value->BeginArray("filters_scale");
- MathUtil::AddToTracedValue(filters_scale, value);
- value->EndArray();
+ MathUtil::AddToTracedValue("filters_scale", filters_scale, value);
value->BeginDictionary("background_filters");
background_filters.AsValueInto(value);
« no previous file with comments | « cc/quads/render_pass.cc ('k') | cc/quads/shared_quad_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698