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

Unified Diff: cc/quads/texture_draw_quad.cc

Issue 421183003: Revert of Add builders for tracing event's structural arguments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/texture_draw_quad.h ('k') | cc/quads/tile_draw_quad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/texture_draw_quad.cc
diff --git a/cc/quads/texture_draw_quad.cc b/cc/quads/texture_draw_quad.cc
index 72435c2134010b4f19a28f87691e186120568062..6637e4f9f72c47cbb6cd8d0fc2c661b2493bd03f 100644
--- a/cc/quads/texture_draw_quad.cc
+++ b/cc/quads/texture_draw_quad.cc
@@ -4,7 +4,6 @@
#include "cc/quads/texture_draw_quad.h"
-#include "base/debug/trace_event_argument.h"
#include "base/logging.h"
#include "base/values.h"
#include "cc/base/math_util.h"
@@ -84,24 +83,16 @@
return static_cast<const TextureDrawQuad*>(quad);
}
-void TextureDrawQuad::ExtendValue(base::debug::TracedValue* value) const {
+void TextureDrawQuad::ExtendValue(base::DictionaryValue* value) const {
value->SetInteger("resource_id", resource_id);
value->SetBoolean("premultiplied_alpha", premultiplied_alpha);
- value->BeginArray("uv_top_left");
- MathUtil::AddToTracedValue(uv_top_left, value);
- value->EndArray();
-
- value->BeginArray("uv_bottom_right");
- MathUtil::AddToTracedValue(uv_bottom_right, value);
- value->EndArray();
-
+ value->Set("uv_top_left", MathUtil::AsValue(uv_top_left).release());
+ value->Set("uv_bottom_right", MathUtil::AsValue(uv_bottom_right).release());
value->SetInteger("background_color", background_color);
-
- value->BeginArray("vertex_opacity");
+ scoped_ptr<base::ListValue> vertex_opacity_value(new base::ListValue);
for (size_t i = 0; i < 4; ++i)
- value->AppendDouble(vertex_opacity[i]);
- value->EndArray();
-
+ vertex_opacity_value->AppendDouble(vertex_opacity[i]);
+ value->Set("vertex_opacity", vertex_opacity_value.release());
value->SetBoolean("flipped", flipped);
}
« no previous file with comments | « cc/quads/texture_draw_quad.h ('k') | cc/quads/tile_draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698