Chromium Code Reviews| Index: gpu/command_buffer/client/BUILD.gn |
| diff --git a/gpu/command_buffer/client/BUILD.gn b/gpu/command_buffer/client/BUILD.gn |
| index 910af3cd9e241df6726d67d2528d87fa1dbe919c..535bb4913327ae689f43e88f1e06e3dd70cc3f4a 100644 |
| --- a/gpu/command_buffer/client/BUILD.gn |
| +++ b/gpu/command_buffer/client/BUILD.gn |
| @@ -52,36 +52,40 @@ gles2_c_lib_source_files = [ |
| "gles2_lib.cc", |
| ] |
| +gles2_implementation_source_files = [ |
| + "buffer_tracker.cc", |
| + "buffer_tracker.h", |
| + "client_context_state.h", |
| + "client_context_state.cc", |
| + "client_context_state_autogen.h", |
| + "client_context_state_impl_autogen.h", |
| + "gles2_impl_export.h", |
| + "gles2_implementation_autogen.h", |
| + "gles2_implementation.cc", |
| + "gles2_implementation.h", |
| + "gles2_implementation_impl_autogen.h", |
| + "gles2_interface.h", |
| + "gles2_trace_implementation_autogen.h", |
| + "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", |
| + "program_info_manager.cc", |
| + "program_info_manager.h", |
| + "query_tracker.cc", |
| + "query_tracker.h", |
| + "share_group.cc", |
| + "share_group.h", |
| + "vertex_array_object_manager.cc", |
| + "vertex_array_object_manager.h", |
| +] |
| + |
| +# Library emulates GLES2 using command_buffers. |
| component("gles2_implementation") { |
| - sources = [ |
| - "buffer_tracker.cc", |
| - "buffer_tracker.h", |
| - "client_context_state.h", |
| - "client_context_state.cc", |
| - "client_context_state_autogen.h", |
| - "client_context_state_impl_autogen.h", |
| - "gles2_impl_export.h", |
| - "gles2_implementation_autogen.h", |
| - "gles2_implementation.cc", |
| - "gles2_implementation.h", |
| - "gles2_implementation_impl_autogen.h", |
| - "gles2_interface.h", |
| - "gles2_trace_implementation_autogen.h", |
| - "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", |
| - "program_info_manager.cc", |
| - "program_info_manager.h", |
| - "query_tracker.cc", |
| - "query_tracker.h", |
| - "share_group.cc", |
| - "share_group.h", |
| - "vertex_array_object_manager.cc", |
| - "vertex_array_object_manager.h", |
| - ] |
| + sources = gles2_implementation_source_files |
| + |
| defines = [ "GLES2_IMPL_IMPLEMENTATION" ] |
| all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
| @@ -99,6 +103,49 @@ component("gles2_implementation") { |
| ] |
| } |
| +# Library emulates GLES2 using command_buffers. |
| +component("gles2_implementation_client_side_arrays") { |
| + sources = gles2_implementation_source_files |
| + |
| + defines = [ |
| + "GLES2_IMPL_IMPLEMENTATION", |
| + "GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1", |
| + ] |
| + all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
| + |
| + if (is_win) { |
| + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
|
jamesr
2014/05/28 23:24:15
should this comment also go in the cc/BUILD.gn cop
brettw
2014/05/29 16:50:14
Always happy to write other people's names in TODO
|
| + cflags = [ "/wd4267" ] # size_t to int truncation. |
| + } |
| + |
| + deps = [ |
| + ":gles2_cmd_helper", |
| + "//base", |
| + "//gpu/command_buffer/common", |
| + "//ui/gfx/geometry", |
| + "//ui/gl", |
| + ] |
| +} |
| + |
| +component("gl_in_process_context") { |
| + sources = [ |
| + "gl_in_process_context.h", |
| + "gl_in_process_context.cc", |
| + "gl_in_process_context_export.h", |
| + ] |
| + |
| + defines = [ "GL_IN_PROCESS_CONTEXT_IMPLEMENTATION" ] |
| + |
| + deps = [ |
| + ":gles2_implementation", |
| + "//gpu", |
| + "//base", |
| + "//base/third_party/dynamic_annotations", |
| + "//ui/gfx/geometry", |
| + "//ui/gl", |
| + ] |
| +} |
| + |
| component("gles2_c_lib") { |
| sources = gles2_c_lib_source_files |
| defines = [ "GLES2_C_LIB_IMPLEMENTATION" ] |