aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-08-03 08:28:20 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-03 08:28:20 -0700
commit5259da5377a27298939fcef677851d46c75badde (patch)
tree3f3893ffeaa98788970ae123acce32c7a9efbd31
parentb90301754800a49b9bd258d0f1fb8538a268e48e (diff)
GN: gpu support in tools
If you want to try this out, the DOCS_PREVIEW link is a quickstart. Are the GrGLCreateNativeInteface_* meant to be part of Skia-the-library or just used by testing tools? I've got it written here as tool-only, but we could easily move it to libskia if it's a thing we want to ship. I'm honestly not sure I understand how this linked before without a definition of GrGLCreateNativeInterface(). Or are there two, one real and one no-op default with some sort of weak linking setup? dlopen()? BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2201233003 DOCS_PREVIEW= https://skia.org/user/quick/gn?cl=2201233003 Review-Url: https://codereview.chromium.org/2201233003
-rw-r--r--BUILD.gn10
-rw-r--r--site/user/quick/gn.md2
2 files changed, 9 insertions, 3 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 1682c59aca..0780f1b522 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -363,14 +363,20 @@ test_lib("gpu_tool_utils") {
libs = []
if (is_linux) {
- sources += [ "tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp" ]
+ sources += [
+ "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp",
+ "tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp",
+ ]
libs += [
"GL",
"GLU",
"X11",
]
} else if (is_mac) {
- sources += [ "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp" ]
+ sources += [
+ "src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp",
+ "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp",
+ ]
libs += [ "OpenGL.framework" ]
}
}
diff --git a/site/user/quick/gn.md b/site/user/quick/gn.md
index c710576be4..915a823526 100644
--- a/site/user/quick/gn.md
+++ b/site/user/quick/gn.md
@@ -12,7 +12,7 @@ Supported Features
----------
* Linux, Mac
- * Software rendering
+ * Software and GL rendering
* libskia.a, libskia.so
* DM, nanobench