Merge "Fix warning" into mnc-dev

This commit is contained in:
John Reck
2015-06-03 17:16:46 +00:00
committed by Android (Google) Code Review
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@
namespace android {
namespace uirenderer {
std::string FrameInfoNames[] = {
const std::string FrameInfoNames[] = {
"Flags",
"IntendedVsync",
"Vsync",

View File

@@ -50,7 +50,7 @@ enum class FrameInfoIndex {
kNumIndexes
};
extern std::string FrameInfoNames[];
extern const std::string FrameInfoNames[];
enum class FrameInfoFlags {
kWindowLayoutChanged = 1 << 0,

View File

@@ -401,7 +401,7 @@ void CanvasContext::dumpFrames(int fd) {
FILE* file = fdopen(fd, "a");
fprintf(file, "\n\n---PROFILEDATA---\n");
for (size_t i = 0; i < static_cast<size_t>(FrameInfoIndex::kNumIndexes); i++) {
fprintf(file, FrameInfoNames[i].c_str());
fprintf(file, "%s", FrameInfoNames[i].c_str());
fprintf(file, ",");
}
for (size_t i = 0; i < mFrames.size(); i++) {