| Index: tools/flags/SkCommonFlagsConfig.cpp
|
| diff --git a/tools/flags/SkCommonFlagsConfig.cpp b/tools/flags/SkCommonFlagsConfig.cpp
|
| index e2aa3270f2dd15ab681476f05cb3e71c45d7bd1b..c82e8de0036214b4a0398eeeb00bef325f773b12 100644
|
| --- a/tools/flags/SkCommonFlagsConfig.cpp
|
| +++ b/tools/flags/SkCommonFlagsConfig.cpp
|
| @@ -64,6 +64,7 @@ static const char configExtendedHelp[] =
|
| #endif
|
| #if SK_COMMAND_BUFFER
|
| "\t\tcommandbuffer\t\tUse command buffer.\n"
|
| + "\t\tcommandbuffer3\t\tUse command buffer ES 3.0 (experimental).\n"
|
| #endif
|
| #if SK_MESA
|
| "\t\tmesa\t\t\tUse MESA.\n"
|
| @@ -214,7 +215,11 @@ static bool parse_option_gpu_api(const SkString& value,
|
| #endif
|
| #if SK_COMMAND_BUFFER
|
| if (value.equals("commandbuffer")) {
|
| - *outContextType = GrContextFactory::kCommandBuffer_GLContextType;
|
| + *outContextType = GrContextFactory::kCommandBufferES2_GLContextType;
|
| + return true;
|
| + }
|
| + if (value.equals("commandbuffer3")) {
|
| + *outContextType = GrContextFactory::kCommandBufferES3_GLContextType;
|
| return true;
|
| }
|
| #endif
|
|
|