aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/kilobench/kilobench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/kilobench/kilobench.cpp')
-rw-r--r--tools/kilobench/kilobench.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/kilobench/kilobench.cpp b/tools/kilobench/kilobench.cpp
index f4c2999b91..dc7f938a5d 100644
--- a/tools/kilobench/kilobench.cpp
+++ b/tools/kilobench/kilobench.cpp
@@ -175,8 +175,8 @@ struct GPUTarget {
}
bool init(Benchmark* bench, GrContextFactory* factory, bool useDfText,
- GrContextFactory::GLContextType ctxType,
- GrContextFactory::GLContextOptions ctxOptions, int numSamples) {
+ GrContextFactory::ContextType ctxType,
+ GrContextFactory::ContextOptions ctxOptions, int numSamples) {
GrContext* context = factory->get(ctxType, ctxOptions);
int maxRTSize = context->caps()->maxRenderTargetSize();
SkImageInfo info = SkImageInfo::Make(SkTMin(bench->getSize().fX, maxRTSize),
@@ -478,8 +478,8 @@ struct AutoSetupContextBenchAndTarget {
fCtxFactory.reset(new GrContextFactory(grContextOpts));
SkAssertResult(fTarget.init(bench, fCtxFactory, false,
- GrContextFactory::kNative_GLContextType,
- GrContextFactory::kNone_GLContextOptions, 0));
+ GrContextFactory::kNativeGL_ContextType,
+ GrContextFactory::kNone_ContextOptions, 0));
fCanvas = fTarget.getCanvas();
fTarget.setup();