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

Unified Diff: skia/BUILD.gn

Issue 2861343002: Enable gpu rasterization in the vr shell
Patch Set: additional trace instrumentation Created 3 years, 7 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 | « chrome/browser/android/vr_shell/vr_shell_gl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/BUILD.gn
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index 853e365e9a95c9dd051bf57bdb6a29f0b5ec7109..90db4614b88a3ddb92f0bc9686f3566b3e1df5ee 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -5,6 +5,7 @@
import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//build/config/sanitizers/sanitizers.gni")
+import("//device/vr/features/features.gni")
import("//printing/features/features.gni")
import("//testing/test.gni")
import("//third_party/skia/gn/shared_sources.gni")
@@ -430,6 +431,21 @@ component("skia") {
deps += [ "//build/config/freetype" ]
}
+ if (is_android && enable_vr) {
+ sources -= [
+ "//third_party/skia/src/gpu/gl/GrGLCreateNativeInterface_none.cpp",
+ "//third_party/skia/src/gpu/gl/GrGLDefaultInterface_none.cpp",
+ ]
+ sources += [
+ "//third_party/skia/src/gpu/gl/GrGLDefaultInterface_native.cpp",
+ "//third_party/skia/src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp",
+ ]
+ libs = [
+ "EGL",
+ "GLESv2",
+ ]
+ }
+
if (skia_support_pdf) {
deps += [
"//third_party/sfntly",
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_gl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698