| Index: bench/nanobench.cpp
|
| diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
|
| index 2c86adafb9fa0281f15979b2e2862be901dfb781..f1841e5b6c24099ef18c0e0538fd221be4b94515 100644
|
| --- a/bench/nanobench.cpp
|
| +++ b/bench/nanobench.cpp
|
| @@ -31,7 +31,6 @@
|
| #include "SkCanvas.h"
|
| #include "SkCodec.h"
|
| #include "SkCommonFlags.h"
|
| -#include "SkCommonFlagsConfig.h"
|
| #include "SkData.h"
|
| #include "SkForceLinking.h"
|
| #include "SkGraphics.h"
|
| @@ -172,10 +171,11 @@
|
| 0;
|
| SkSurfaceProps props(flags, SkSurfaceProps::kLegacyFontHost_InitType);
|
| this->surface.reset(SkSurface::NewRenderTarget(gGrFactory->get(this->config.ctxType,
|
| + kNone_GrGLStandard,
|
| this->config.ctxOptions),
|
| SkSurface::kNo_Budgeted, info,
|
| this->config.samples, &props));
|
| - this->gl = gGrFactory->getContextInfo(this->config.ctxType,
|
| + this->gl = gGrFactory->getContextInfo(this->config.ctxType, kNone_GrGLStandard,
|
| this->config.ctxOptions)->fGLContext;
|
| if (!this->surface.get()) {
|
| return false;
|
| @@ -393,7 +393,7 @@
|
| if (!is_cpu_config_allowed(name)) {
|
| return false;
|
| }
|
| - if (const GrContext* ctx = gGrFactory->get(ctxType, ctxOptions)) {
|
| + if (const GrContext* ctx = gGrFactory->get(ctxType, kNone_GrGLStandard, ctxOptions)) {
|
| return sampleCnt <= ctx->caps()->maxSampleCount();
|
| }
|
| return false;
|
| @@ -449,13 +449,11 @@
|
| GPU_CONFIG(gpudft, kNative_GLContextType, kNone_GLContextOptions, 0, true)
|
| GPU_CONFIG(debug, kDebug_GLContextType, kNone_GLContextOptions, 0, false)
|
| GPU_CONFIG(nullgpu, kNull_GLContextType, kNone_GLContextOptions, 0, false)
|
| -#if SK_ANGLE
|
| -#ifdef SK_BUILD_FOR_WIN
|
| +#ifdef SK_ANGLE
|
| GPU_CONFIG(angle, kANGLE_GLContextType, kNone_GLContextOptions, 0, false)
|
| -#endif
|
| GPU_CONFIG(angle-gl, kANGLE_GL_GLContextType, kNone_GLContextOptions, 0, false)
|
| #endif
|
| -#if SK_COMMAND_BUFFER
|
| +#ifdef SK_COMMAND_BUFFER
|
| GPU_CONFIG(commandbuffer, kCommandBuffer_GLContextType, kNone_GLContextOptions, 0, false)
|
| #endif
|
| #if SK_MESA
|
| @@ -1281,7 +1279,7 @@
|
| #if SK_SUPPORT_GPU
|
| if (FLAGS_gpuStats && Benchmark::kGPU_Backend == configs[i].backend) {
|
| GrContext* context = gGrFactory->get(configs[i].ctxType,
|
| - configs[i].ctxOptions);
|
| + kNone_GrGLStandard, configs[i].ctxOptions);
|
| context->printCacheStats();
|
| context->printGpuStats();
|
| }
|
|
|