Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: gm/gmmain.cpp

Issue 23137022: Replace uses of GR_DEBUG by SK_DEBUG. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: include/gpu/ Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 /* 8 /*
9 * Code for the "gm" (Golden Master) rendering comparison tool. 9 * Code for the "gm" (Golden Master) rendering comparison tool.
10 * 10 *
(...skipping 20 matching lines...) Expand all
31 #include "SkImageEncoder.h" 31 #include "SkImageEncoder.h"
32 #include "SkOSFile.h" 32 #include "SkOSFile.h"
33 #include "SkPicture.h" 33 #include "SkPicture.h"
34 #include "SkRefCnt.h" 34 #include "SkRefCnt.h"
35 #include "SkStream.h" 35 #include "SkStream.h"
36 #include "SkTArray.h" 36 #include "SkTArray.h"
37 #include "SkTDict.h" 37 #include "SkTDict.h"
38 #include "SkTileGridPicture.h" 38 #include "SkTileGridPicture.h"
39 #include "SamplePipeControllers.h" 39 #include "SamplePipeControllers.h"
40 40
41 #ifdef SK_DEBUG
42 static const bool kDebugOnly = true;
43 #else
44 static const bool kDebugOnly = false;
45 #endif
46
41 __SK_FORCE_IMAGE_DECODER_LINKING; 47 __SK_FORCE_IMAGE_DECODER_LINKING;
42 48
43 #ifdef SK_BUILD_FOR_WIN 49 #ifdef SK_BUILD_FOR_WIN
44 // json includes xlocale which generates warning 4530 because we're compilin g without 50 // json includes xlocale which generates warning 4530 because we're compilin g without
45 // exceptions; see https://code.google.com/p/skia/issues/detail?id=1067 51 // exceptions; see https://code.google.com/p/skia/issues/detail?id=1067
46 #pragma warning(push) 52 #pragma warning(push)
47 #pragma warning(disable : 4530) 53 #pragma warning(disable : 4530)
48 #endif 54 #endif
49 #include "json/value.h" 55 #include "json/value.h"
50 #ifdef SK_BUILD_FOR_WIN 56 #ifdef SK_BUILD_FOR_WIN
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 #if 0 // stop testing this (for now at least) since we want to remove support for it (soon please!!!) 1246 #if 0 // stop testing this (for now at least) since we want to remove support for it (soon please!!!)
1241 { SkBitmap::kARGB_4444_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "4444", true }, 1247 { SkBitmap::kARGB_4444_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "4444", true },
1242 #endif 1248 #endif
1243 { SkBitmap::kRGB_565_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "565", true }, 1249 { SkBitmap::kRGB_565_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "565", true },
1244 #if SK_SUPPORT_GPU 1250 #if SK_SUPPORT_GPU
1245 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 0, kRW_ConfigFlag, "gpu", true }, 1251 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 0, kRW_ConfigFlag, "gpu", true },
1246 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 16, kRW_ConfigFlag, "msaa16", false}, 1252 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 16, kRW_ConfigFlag, "msaa16", false},
1247 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 4, kRW_ConfigFlag, "msaa4", false}, 1253 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 4, kRW_ConfigFlag, "msaa4", false},
1248 /* The gpudebug context does not generate meaningful images, so don't record 1254 /* The gpudebug context does not generate meaningful images, so don't record
1249 * the images it generates! We only run it to look for asserts. */ 1255 * the images it generates! We only run it to look for asserts. */
1250 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kDebug_GLC ontextType, 0, kNone_ConfigFlag, "gpudebug", GR_DEBUG}, 1256 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kDebug_GLC ontextType, 0, kNone_ConfigFlag, "gpudebug", kDebugOnly},
1251 /* The gpunull context does the least amount of work possible and doesn't 1257 /* The gpunull context does the least amount of work possible and doesn't
1252 generate meaninful images, so don't record them!. It can be run to 1258 generate meaninful images, so don't record them!. It can be run to
1253 isolate the CPU-side processing expense from the GPU-side. 1259 isolate the CPU-side processing expense from the GPU-side.
1254 */ 1260 */
1255 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNull_GLCo ntextType, 0, kNone_ConfigFlag, "gpunull", GR_DEBUG}, 1261 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNull_GLCo ntextType, 0, kNone_ConfigFlag, "gpunull", kDebugOnly},
1256 #if SK_ANGLE 1262 #if SK_ANGLE
1257 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kANGLE_GLC ontextType, 0, kRW_ConfigFlag, "angle", true }, 1263 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kANGLE_GLC ontextType, 0, kRW_ConfigFlag, "angle", true },
1258 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kANGLE_GLC ontextType, 16, kRW_ConfigFlag, "anglemsaa16", true }, 1264 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kANGLE_GLC ontextType, 16, kRW_ConfigFlag, "anglemsaa16", true },
1259 #endif // SK_ANGLE 1265 #endif // SK_ANGLE
1260 #ifdef SK_MESA 1266 #ifdef SK_MESA
1261 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kMESA_GLCo ntextType, 0, kRW_ConfigFlag, "mesa", true }, 1267 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kMESA_GLCo ntextType, 0, kRW_ConfigFlag, "mesa", true },
1262 #endif // SK_MESA 1268 #endif // SK_MESA
1263 #endif // SK_SUPPORT_GPU 1269 #endif // SK_SUPPORT_GPU
1264 #ifdef SK_SUPPORT_XPS 1270 #ifdef SK_SUPPORT_XPS
1265 /* At present we have no way of comparing XPS files (either natively or by c onverting to PNG). */ 1271 /* At present we have no way of comparing XPS files (either natively or by c onverting to PNG). */
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
2184 if (FLAGS_forceBWtext) { 2190 if (FLAGS_forceBWtext) {
2185 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); 2191 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref();
2186 } 2192 }
2187 } 2193 }
2188 2194
2189 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 2195 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
2190 int main(int argc, char * const argv[]) { 2196 int main(int argc, char * const argv[]) {
2191 return tool_main(argc, (char**) argv); 2197 return tool_main(argc, (char**) argv);
2192 } 2198 }
2193 #endif 2199 #endif
OLDNEW
« no previous file with comments | « bench/benchmain.cpp ('k') | gyp/common.gypi » ('j') | include/gpu/GrUserConfig.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698