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

Unified Diff: gpu/BUILD.gn

Issue 1220883008: Add command_buffer_gles2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed another comment Created 5 years, 3 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 | « no previous file | gpu/gles2_conform_support/egl/display.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/BUILD.gn
diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn
index cf993771214fe341fbe0762c2fc6d3d7e6c076f6..1a0f9bee28d6a0edf4ed9bf39867b8d3d5b3189e 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) {
Nico 2015/12/21 16:48:46 Why is this conditional here? This seems wrong at
+ 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 = [
« no previous file with comments | « no previous file | gpu/gles2_conform_support/egl/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698