зеркало из https://github.com/mozilla/moz-skia.git
Fix signed/unsigned comparison warnings in benchmain.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@7833 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
3934200b67
Коммит
5c90e29142
|
@ -623,7 +623,7 @@ int tool_main(int argc, char** argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
SkTArray<BenchTimer*> timers(SK_ARRAY_COUNT(gConfigs));
|
SkTArray<BenchTimer*> timers(SK_ARRAY_COUNT(gConfigs));
|
||||||
for (int i = 0; i < SK_ARRAY_COUNT(gConfigs); ++i) {
|
for (size_t i = 0; i < SK_ARRAY_COUNT(gConfigs); ++i) {
|
||||||
#if SK_SUPPORT_GPU
|
#if SK_SUPPORT_GPU
|
||||||
SkGLContext* ctx = NULL;
|
SkGLContext* ctx = NULL;
|
||||||
if (kGPU_Backend == gConfigs[i].fBackend) {
|
if (kGPU_Backend == gConfigs[i].fBackend) {
|
||||||
|
@ -839,7 +839,7 @@ int tool_main(int argc, char** argv) {
|
||||||
// Destroy the GrContext before the inst tracking printing at main() exit occurs.
|
// Destroy the GrContext before the inst tracking printing at main() exit occurs.
|
||||||
gContextFactory.destroyContexts();
|
gContextFactory.destroyContexts();
|
||||||
#endif
|
#endif
|
||||||
for (int i = 0; i < SK_ARRAY_COUNT(gConfigs); ++i) {
|
for (size_t i = 0; i < SK_ARRAY_COUNT(gConfigs); ++i) {
|
||||||
SkDELETE(timers[i]);
|
SkDELETE(timers[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче