| Index: tools/flags/SkCommonFlagsConfig.cpp
|
| diff --git a/tools/flags/SkCommonFlagsConfig.cpp b/tools/flags/SkCommonFlagsConfig.cpp
|
| index 973f14eaa17d9db82d7a5ecf168ed42623a41d8f..0847ae5b79ea268947ef0bf3c8633c0db754b37d 100644
|
| --- a/tools/flags/SkCommonFlagsConfig.cpp
|
| +++ b/tools/flags/SkCommonFlagsConfig.cpp
|
| @@ -211,47 +211,43 @@ static bool parse_option_bool(const SkString& value, bool* outBool) {
|
| }
|
| static bool parse_option_gpu_api(const SkString& value,
|
| SkCommandLineConfigGpu::ContextType* outContextType) {
|
| - if (value.equals("native")) {
|
| - *outContextType = GrContextFactory::kNative_GLContextType;
|
| - return true;
|
| - }
|
| if (value.equals("gl")) {
|
| - *outContextType = GrContextFactory::kGL_GLContextType;
|
| + *outContextType = GrContextFactory::kGL_ContextType;
|
| return true;
|
| }
|
| if (value.equals("gles")) {
|
| - *outContextType = GrContextFactory::kGLES_GLContextType;
|
| + *outContextType = GrContextFactory::kGLES_ContextType;
|
| return true;
|
| }
|
| if (value.equals("debug")) {
|
| - *outContextType = GrContextFactory::kDebug_GLContextType;
|
| + *outContextType = GrContextFactory::kDebugGL_ContextType;
|
| return true;
|
| }
|
| if (value.equals("null")) {
|
| - *outContextType = GrContextFactory::kNull_GLContextType;
|
| + *outContextType = GrContextFactory::kNullGL_ContextType;
|
| return true;
|
| }
|
| #if SK_ANGLE
|
| #ifdef SK_BUILD_FOR_WIN
|
| if (value.equals("angle")) {
|
| - *outContextType = GrContextFactory::kANGLE_GLContextType;
|
| + *outContextType = GrContextFactory::kANGLE_ContextType;
|
| return true;
|
| }
|
| #endif
|
| if (value.equals("angle-gl")) {
|
| - *outContextType = GrContextFactory::kANGLE_GL_GLContextType;
|
| + *outContextType = GrContextFactory::kANGLE_GL_ContextType;
|
| return true;
|
| }
|
| #endif
|
| #if SK_COMMAND_BUFFER
|
| if (value.equals("commandbuffer")) {
|
| - *outContextType = GrContextFactory::kCommandBuffer_GLContextType;
|
| + *outContextType = GrContextFactory::kCommandBuffer_ContextType;
|
| return true;
|
| }
|
| #endif
|
| #if SK_MESA
|
| if (value.equals("mesa")) {
|
| - *outContextType = GrContextFactory::kMESA_GLContextType;
|
| + *outContextType = GrContextFactory::kMESA_ContextType;
|
| return true;
|
| }
|
| #endif
|
| @@ -283,7 +279,7 @@ SkCommandLineConfigGpu* parse_command_line_config_gpu(const SkString& tag,
|
| const SkString& options) {
|
| // Defaults for GPU backend.
|
| bool seenAPI = false;
|
| - SkCommandLineConfigGpu::ContextType contextType = GrContextFactory::kNative_GLContextType;
|
| + SkCommandLineConfigGpu::ContextType contextType = GrContextFactory::kNativeGL_ContextType;
|
| bool seenUseNVPR = false;
|
| bool useNVPR = false;
|
| bool seenUseDIText =false;
|
|
|