summaryrefslogtreecommitdiffstats
path: root/cmds/flatland
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-03-13 23:18:43 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-13 23:18:43 +0000
commitc45011f27209d5d548be3f96f2a23f7ff7f48c4c (patch)
tree89f759817f6ca11ae4ed715a207e3f6aa37fa09b /cmds/flatland
parentf4b08ebc61153afac8cab1e87ba015b142a394b6 (diff)
parentcdbf28b3f7f5327f4cb0eb95b8326bf4c24c87ba (diff)
downloadframeworks_native-c45011f27209d5d548be3f96f2a23f7ff7f48c4c.zip
frameworks_native-c45011f27209d5d548be3f96f2a23f7ff7f48c4c.tar.gz
frameworks_native-c45011f27209d5d548be3f96f2a23f7ff7f48c4c.tar.bz2
am cdbf28b3: Merge "native frameworks: 64-bit compile issues"
* commit 'cdbf28b3f7f5327f4cb0eb95b8326bf4c24c87ba': native frameworks: 64-bit compile issues
Diffstat (limited to 'cmds/flatland')
-rw-r--r--cmds/flatland/Composers.cpp4
-rw-r--r--cmds/flatland/GLHelper.cpp2
-rw-r--r--cmds/flatland/Main.cpp7
3 files changed, 7 insertions, 6 deletions
diff --git a/cmds/flatland/Composers.cpp b/cmds/flatland/Composers.cpp
index 15cdb29..1173a81 100644
--- a/cmds/flatland/Composers.cpp
+++ b/cmds/flatland/Composers.cpp
@@ -122,12 +122,12 @@ public:
virtual void tearDown() {
}
- virtual bool compose(GLuint texName, const sp<GLConsumer>& glc) {
+ virtual bool compose(GLuint /*texName*/, const sp<GLConsumer>& /*glc*/) {
return true;
}
protected:
- virtual bool setUp(GLHelper* helper) {
+ virtual bool setUp(GLHelper* /*helper*/) {
return true;
}
diff --git a/cmds/flatland/GLHelper.cpp b/cmds/flatland/GLHelper.cpp
index 42694b3..05d082b 100644
--- a/cmds/flatland/GLHelper.cpp
+++ b/cmds/flatland/GLHelper.cpp
@@ -332,7 +332,7 @@ static bool compileShader(GLenum shaderType, const char* src,
static void printShaderSource(const char* const* src) {
for (size_t i = 0; i < MAX_SHADER_LINES && src[i] != NULL; i++) {
- fprintf(stderr, "%3d: %s\n", i+1, src[i]);
+ fprintf(stderr, "%3zu: %s\n", i+1, src[i]);
}
}
diff --git a/cmds/flatland/Main.cpp b/cmds/flatland/Main.cpp
index d6ac3d2..c0e5b3d 100644
--- a/cmds/flatland/Main.cpp
+++ b/cmds/flatland/Main.cpp
@@ -600,7 +600,7 @@ static bool runTest(const BenchmarkDesc b, size_t run) {
uint32_t runHeight = b.runHeights[run];
uint32_t runWidth = b.width * runHeight / b.height;
- printf(" %-*s | %4d x %4d | ", g_BenchmarkNameLen, b.name,
+ printf(" %-*s | %4d x %4d | ", static_cast<int>(g_BenchmarkNameLen), b.name,
runWidth, runHeight);
fflush(stdout);
@@ -690,8 +690,9 @@ static void printResultsTableHeader() {
size_t len = strlen(scenario);
size_t leftPad = (g_BenchmarkNameLen - len) / 2;
size_t rightPad = g_BenchmarkNameLen - len - leftPad;
- printf(" %*s%s%*s | Resolution | Time (ms)\n", leftPad, "",
- "Scenario", rightPad, "");
+ printf(" %*s%s%*s | Resolution | Time (ms)\n",
+ static_cast<int>(leftPad), "",
+ "Scenario", static_cast<int>(rightPad), "");
}
// Run ALL the benchmarks!