Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: bench/nanobench.cpp

Issue 1641173003: Fix broken Android framework builds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/nanobench.cpp
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index c07bfa0d8d7cbdf2ae36e7cf8e4a5ce05365c168..5a009521456a2019adbd928b930a3c62b77016ef 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -436,12 +436,11 @@ static void create_config(const SkCommandLineConfig* config, SkTArray<Config>* c
#undef CPU_CONFIG
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
- if (is_cpu_config_allowed("hwui", config)) {
- Config config = { "hwui", Benchmark::kHWUI_Backend, kRGBA_8888_SkColorType,
+ if (config->getTag().equals("hwui")) {
+ Config config = { SkString("hwui"), Benchmark::kHWUI_Backend, kRGBA_8888_SkColorType,
kPremul_SkAlphaType, 0, kBogusGLContextType, kBogusGLContextOptions,
false };
configs->push_back(config);
- return;
}
#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698