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

Side by Side Diff: gm/gmmain.cpp

Issue 19678010: Improve null gpu's memory handling (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Added recycling of buffer id slots Created 7 years, 5 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
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCreateNullInterface.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 { SkBitmap::kARGB_4444_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "4444", true }, 1251 { SkBitmap::kARGB_4444_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "4444", true },
1252 #endif 1252 #endif
1253 { SkBitmap::kRGB_565_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "565", true }, 1253 { SkBitmap::kRGB_565_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "565", true },
1254 #if SK_SUPPORT_GPU 1254 #if SK_SUPPORT_GPU
1255 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 0, kRW_ConfigFlag, "gpu", true }, 1255 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 0, kRW_ConfigFlag, "gpu", true },
1256 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 16, kRW_ConfigFlag, "msaa16", false}, 1256 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 16, kRW_ConfigFlag, "msaa16", false},
1257 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 4, kRW_ConfigFlag, "msaa4", false}, 1257 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 4, kRW_ConfigFlag, "msaa4", false},
1258 /* The gpudebug context does not generate meaningful images, so don't record 1258 /* The gpudebug context does not generate meaningful images, so don't record
1259 * the images it generates! We only run it to look for asserts. */ 1259 * the images it generates! We only run it to look for asserts. */
1260 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kDebug_GLC ontextType, 0, kNone_ConfigFlag, "gpudebug", GR_DEBUG}, 1260 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kDebug_GLC ontextType, 0, kNone_ConfigFlag, "gpudebug", GR_DEBUG},
1261 /* The gpunull context does the least amount of work possible and doesn't
1262 generate meaninful images, so don't record them!. It can be run to
1263 isolate the CPU-side processing expense from the GPU-side.
1264 */
1265 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNull_GLCo ntextType, 0, kNone_ConfigFlag, "gpunull", GR_DEBUG},
1261 #if SK_ANGLE 1266 #if SK_ANGLE
1262 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kANGLE_GLC ontextType, 0, kRW_ConfigFlag, "angle", true }, 1267 { 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, 16, kRW_ConfigFlag, "anglemsaa16", true }, 1268 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kANGLE_GLC ontextType, 16, kRW_ConfigFlag, "anglemsaa16", true },
1264 #endif // SK_ANGLE 1269 #endif // SK_ANGLE
1265 #ifdef SK_MESA 1270 #ifdef SK_MESA
1266 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kMESA_GLCo ntextType, 0, kRW_ConfigFlag, "mesa", true }, 1271 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kMESA_GLCo ntextType, 0, kRW_ConfigFlag, "mesa", true },
1267 #endif // SK_MESA 1272 #endif // SK_MESA
1268 #endif // SK_SUPPORT_GPU 1273 #endif // SK_SUPPORT_GPU
1269 #ifdef SK_SUPPORT_XPS 1274 #ifdef SK_SUPPORT_XPS
1270 /* At present we have no way of comparing XPS files (either natively or by c onverting to PNG). */ 1275 /* At present we have no way of comparing XPS files (either natively or by c onverting to PNG). */
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
2174 if (FLAGS_forceBWtext) { 2179 if (FLAGS_forceBWtext) {
2175 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); 2180 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref();
2176 } 2181 }
2177 } 2182 }
2178 2183
2179 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 2184 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
2180 int main(int argc, char * const argv[]) { 2185 int main(int argc, char * const argv[]) {
2181 return tool_main(argc, (char**) argv); 2186 return tool_main(argc, (char**) argv);
2182 } 2187 }
2183 #endif 2188 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCreateNullInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698