Fix Android framework build
authorscroggo <scroggo@google.com>
Tue, 1 Dec 2015 15:53:37 +0000 (07:53 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 1 Dec 2015 15:53:37 +0000 (07:53 -0800)
eeebdb538d476c1bfc8b63a946094ca1b505ecd1 did not update a Config that
only builds if SK_BUILD_FOR_ANDROID_FRAMEWORK. This appears to be the
necessary parameter that is missing.

BUG=skia:2992

Review URL: https://codereview.chromium.org/1491563003

bench/nanobench.cpp

index 6c42097f18237426a3fbf203bec3b305bd18cd35..f742ef97241ef89d684441136a7cbb6e8e7bade0 100644 (file)
@@ -464,7 +464,8 @@ static void create_configs(SkTDArray<Config>* configs) {
 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
     if (is_cpu_config_allowed("hwui")) {
         Config config = { "hwui", Benchmark::kHWUI_Backend, kRGBA_8888_SkColorType,
-                          kPremul_SkAlphaType, 0, kBogusGLContextType, false };
+                          kPremul_SkAlphaType, 0, kBogusGLContextType, kNone_GLContextOptions,
+                          false };
         configs->push(config);
     }
 #endif