diff options
author | Kevin Lubick <kjlubick@google.com> | 2017-03-29 11:19:01 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-29 15:56:45 +0000 |
commit | 4a24e10a0b805af6106dd8f7225c10a703696245 (patch) | |
tree | a38079b99ede54d4103ec2b469f0c192c9515adf /BUILD.gn | |
parent | a1b282be3f93a6713e1bf7e1d0fc0caef5940a40 (diff) |
Add skia_use_egl flag
This allows us to specify it for Linux Arm devices (like chromebooks, and
possibly RPIs)
Bug: skia:6442
Change-Id: I043bc3b3686caf28fedfe1a6ab1dfd300cc4f066
Reviewed-on: https://skia-review.googlesource.com/10469
Reviewed-by: Mike Klein <mtklein@chromium.org>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -13,6 +13,7 @@ is_skia_dev_build = is_skia_standalone && !is_official_build declare_args() { skia_use_angle = false + skia_use_egl = false skia_use_expat = true skia_use_fontconfig = is_linux skia_use_freetype = is_android || is_fuchsia || is_linux @@ -411,6 +412,9 @@ optional("gpu") { libs = [] if (is_android) { sources += [ "src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp" ] + } else if (skia_use_egl) { + sources += [ "src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp" ] + libs += [ "EGL" ] } else if (is_linux) { sources += [ "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp" ] libs += [ @@ -856,7 +860,7 @@ if (skia_enable_tools) { ] libs = [] - if (is_android) { + if (is_android || skia_use_egl) { sources += [ "tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp" ] } else if (is_ios) { sources += [ "tools/gpu/gl/iOS/CreatePlatformGLTestContext_iOS.mm" ] |