Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / gpu / command_buffer / client / BUILD.gn
index 01a90a3..810948a 100644 (file)
@@ -81,9 +81,8 @@ gles2_implementation_source_files = [
   "gles2_trace_implementation.cc",
   "gles2_trace_implementation.h",
   "gles2_trace_implementation_impl_autogen.h",
-  "gpu_memory_buffer_factory.h",
-  "gpu_memory_buffer_tracker.cc",
-  "gpu_memory_buffer_tracker.h",
+  "gpu_switches.cc",
+  "gpu_switches.h",
   "program_info_manager.cc",
   "program_info_manager.h",
   "query_tracker.cc",
@@ -105,36 +104,21 @@ source_set("gles2_interface") {
   ]
 }
 
-# Library emulates GLES2 using command_buffers.
-component("gles2_implementation") {
-  sources = gles2_implementation_source_files
-
-  defines = [ "GLES2_IMPL_IMPLEMENTATION" ]
-  all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
-
-  if (is_win) {
-    # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
-    cflags = [ "/wd4267" ]  # size_t to int truncation.
-  }
-
+source_set("gpu_memory_buffer_manager") {
+  sources = [
+    "gpu_memory_buffer_manager.cc",
+    "gpu_memory_buffer_manager.h",
+  ]
   deps = [
-    ":gles2_cmd_helper",
-    ":gles2_interface",
-    "//base",
-    "//gpu/command_buffer/common",
-    "//ui/gfx/geometry",
-    "//ui/gl",
+    "//ui/gfx",
   ]
 }
 
 # Library emulates GLES2 using command_buffers.
-component("gles2_implementation_client_side_arrays") {
+component("gles2_implementation") {
   sources = gles2_implementation_source_files
 
-  defines = [
-    "GLES2_IMPL_IMPLEMENTATION",
-    "GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1",
-  ]
+  defines = [ "GLES2_IMPL_IMPLEMENTATION" ]
   all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
 
   if (is_win) {
@@ -148,7 +132,6 @@ component("gles2_implementation_client_side_arrays") {
     "//base",
     "//gpu/command_buffer/common",
     "//ui/gfx/geometry",
-    "//ui/gl",
   ]
 }
 
@@ -163,6 +146,7 @@ component("gl_in_process_context") {
 
   deps = [
     ":gles2_implementation",
+    ":gpu_memory_buffer_manager",
     "//gpu",
     "//gpu/command_buffer/common:gles2_utils",
     "//base",