summaryrefslogtreecommitdiffstats
path: root/gpu/BUILD.gn
diff options
context:
space:
mode:
authorhendrikw <hendrikw@chromium.org>2015-09-03 16:02:18 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-03 23:02:59 +0000
commit68d2c333812a14fbb81136f401bfbfe7cf915d7d (patch)
tree0123df2c9dec1d2d0885d0a29280d0db0c880a67 /gpu/BUILD.gn
parent75c602b3547645feba9d9494a3dadefd791176a4 (diff)
downloadchromium_src-68d2c333812a14fbb81136f401bfbfe7cf915d7d.zip
chromium_src-68d2c333812a14fbb81136f401bfbfe7cf915d7d.tar.gz
chromium_src-68d2c333812a14fbb81136f401bfbfe7cf915d7d.tar.bz2
Add command_buffer_gles2
This is a very simple library that exposes some egl-like functions that can be used by skia to use the command buffer as a backend for their tests Committed: https://crrev.com/604b615373e4e9f873db37cef9c6416176fc35f3 Cr-Commit-Position: refs/heads/master@{#346251} Committed: https://crrev.com/efa3a446183fbbff2034a03989f12543d0713e39 Cr-Commit-Position: refs/heads/master@{#346840} Committed: https://crrev.com/d65c55dac3f47e9a237579eb6f5fe31e19ca4704 Cr-Commit-Position: refs/heads/master@{#347013} Committed: https://crrev.com/a89ffff5113b3feb0c905f7ddc50da84a4ed577b Cr-Commit-Position: refs/heads/master@{#347103} Review URL: https://codereview.chromium.org/1220883008 Cr-Commit-Position: refs/heads/master@{#347277}
Diffstat (limited to 'gpu/BUILD.gn')
-rw-r--r--gpu/BUILD.gn39
1 files changed, 39 insertions, 0 deletions
diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn
index 7322c09..dbd236c 100644
--- a/gpu/BUILD.gn
+++ b/gpu/BUILD.gn
@@ -49,6 +49,45 @@ component("gpu") {
]
}
+# GYP version: //gpu/gpu.gyp:command_buffer_gles2
+shared_library("command_buffer_gles2") {
+ sources = [
+ # TODO(hendrikw): Move egl out of gles2_conform_support.
+ "gles2_conform_support/egl/config.cc",
+ "gles2_conform_support/egl/config.h",
+ "gles2_conform_support/egl/display.cc",
+ "gles2_conform_support/egl/display.h",
+ "gles2_conform_support/egl/egl.cc",
+ "gles2_conform_support/egl/surface.cc",
+ "gles2_conform_support/egl/surface.h",
+ ]
+
+ deps = [
+ "//base",
+ "//gpu/command_buffer/client:gles2_c_lib",
+ "//gpu/command_buffer/client:gles2_implementation",
+ "//gpu/command_buffer/service",
+ "//ui/gl:gl",
+ ]
+
+ if (!is_component_build) {
+ deps += [
+ "//gpu/command_buffer/client:client_sources",
+ "//gpu/command_buffer/client:gles2_cmd_helper_sources",
+ ]
+ }
+
+ defines = [
+ "COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY",
+ "EGLAPIENTRY=",
+ ]
+ if (current_os == "win") {
+ defines += [ "EGLAPI=__declspec(dllexport)" ]
+ } else {
+ defines += [ "EGLAPI=__attribute__((visibility(\"default\")))" ]
+ }
+}
+
source_set("test_support") {
testonly = true
sources = [