Use strings instead of arbitrary buffers for video statistics

This commit is contained in:
Lioncash
2014-05-25 20:52:58 -04:00
parent 010ca048df
commit 1583ce9363
4 changed files with 81 additions and 87 deletions

View File

@ -4,6 +4,7 @@
#pragma once
#include <string>
#include <vector>
#include "Common/CommonTypes.h"
@ -69,10 +70,8 @@ struct Statistics
void ResetFrame();
static void SwapDL();
// Yeah, this is unsafe, but we really don't wanna faff around allocating
// buffers here.
static char *ToString(char *ptr);
static char *ToStringProj(char *ptr);
static std::string ToString();
static std::string ToStringProj();
};
extern Statistics stats;