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

Unified Diff: cc/resources/raster_mode.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/resources/raster_mode.h ('k') | cc/resources/tile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/raster_mode.cc
diff --git a/cc/resources/raster_mode.cc b/cc/resources/raster_mode.cc
index d67fdd850f445240fd81045fc8addb01842a23f3..5da8ee76e9b229677d05f5e9ad976a947ec19195 100644
--- a/cc/resources/raster_mode.cc
+++ b/cc/resources/raster_mode.cc
@@ -10,15 +10,18 @@
namespace cc {
-std::string RasterModeToString(RasterMode raster_mode) {
+scoped_ptr<base::Value> RasterModeAsValue(RasterMode raster_mode) {
switch (raster_mode) {
case HIGH_QUALITY_RASTER_MODE:
- return "HIGH_QUALITY_RASTER_MODE";
+ return scoped_ptr<base::Value>(
+ new base::StringValue("HIGH_QUALITY_RASTER_MODE"));
case LOW_QUALITY_RASTER_MODE:
- return "LOW_QUALITY_RASTER_MODE";
+ return scoped_ptr<base::Value>(
+ new base::StringValue("LOW_QUALITY_RASTER_MODE"));
default:
NOTREACHED() << "Unrecognized RasterMode value " << raster_mode;
- return "<unknown RasterMode value>";
+ return scoped_ptr<base::Value>(
+ new base::StringValue("<unknown RasterMode value>"));
}
}
« no previous file with comments | « cc/resources/raster_mode.h ('k') | cc/resources/tile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698