This source file includes following definitions.
- RasterModeAsValue
#include "cc/resources/raster_mode.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
namespace cc {
scoped_ptr<base::Value> RasterModeAsValue(RasterMode raster_mode) {
switch (raster_mode) {
case HIGH_QUALITY_NO_LCD_RASTER_MODE:
return scoped_ptr<base::Value>(
new base::StringValue("HIGH_QUALITY_NO_LCD_RASTER_MODE"));
case HIGH_QUALITY_RASTER_MODE:
return scoped_ptr<base::Value>(
new base::StringValue("HIGH_QUALITY_RASTER_MODE"));
case LOW_QUALITY_RASTER_MODE:
return scoped_ptr<base::Value>(
new base::StringValue("LOW_QUALITY_RASTER_MODE"));
default:
NOTREACHED() << "Unrecognized RasterMode value " << raster_mode;
return scoped_ptr<base::Value>(
new base::StringValue("<unknown RasterMode value>"));
}
}
}