diff options
author | hendrikw <hendrikw@chromium.org> | 2015-09-02 20:06:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-03 03:06:50 +0000 |
commit | a89ffff5113b3feb0c905f7ddc50da84a4ed577b (patch) | |
tree | c3b781ed6a98ac9913b823705e98f4fcdf82863e /gpu/BUILD.gn | |
parent | e3066b3c9eeceae9d68cea0e5967e2bcc10d6137 (diff) | |
download | chromium_src-a89ffff5113b3feb0c905f7ddc50da84a4ed577b.zip chromium_src-a89ffff5113b3feb0c905f7ddc50da84a4ed577b.tar.gz chromium_src-a89ffff5113b3feb0c905f7ddc50da84a4ed577b.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}
Review URL: https://codereview.chromium.org/1220883008
Cr-Commit-Position: refs/heads/master@{#347103}
Diffstat (limited to 'gpu/BUILD.gn')
-rw-r--r-- | gpu/BUILD.gn | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn index 2668617..5468fa1 100644 --- a/gpu/BUILD.gn +++ b/gpu/BUILD.gn @@ -49,6 +49,42 @@ 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 = [ "EGLAPIENTRY=" ] + if (current_os == "win") { + defines += [ "EGLAPI=__declspec(dllexport)" ] + } else { + defines += [ "EGLAPI=__attribute__((visibility(\"default\")))" ] + } +} + source_set("test_support") { testonly = true sources = [ |