1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 "cmd_buffer_helper.cc",
20 defines = [ "GPU_IMPLEMENTATION" ]
23 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
24 cflags = [ "/wd4267" ] # size_t to int truncation.
27 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
30 "//gpu/command_buffer/common",
34 group("gles2_cmd_helper") {
35 if (is_component_build) {
38 deps = [ ":gles2_cmd_helper_sources" ]
42 source_set("gles2_cmd_helper_sources") {
43 visibility = [ ":gles2_cmd_helper", "//gpu" ]
45 "gles2_cmd_helper.cc",
47 "gles2_cmd_helper_autogen.h",
50 defines = [ "GPU_IMPLEMENTATION" ]
53 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
54 cflags = [ "/wd4267" ] # size_t to int truncation.
60 gles2_c_lib_source_files = [
62 "gles2_c_lib_autogen.h",
63 "gles2_c_lib_export.h",
68 gles2_implementation_source_files = [
71 "client_context_state.h",
72 "client_context_state.cc",
73 "client_context_state_autogen.h",
74 "client_context_state_impl_autogen.h",
75 "gles2_impl_export.h",
76 "gles2_implementation_autogen.h",
77 "gles2_implementation.cc",
78 "gles2_implementation.h",
79 "gles2_implementation_impl_autogen.h",
80 "gles2_trace_implementation_autogen.h",
81 "gles2_trace_implementation.cc",
82 "gles2_trace_implementation.h",
83 "gles2_trace_implementation_impl_autogen.h",
84 "gpu_memory_buffer_factory.h",
85 "gpu_memory_buffer_tracker.cc",
86 "gpu_memory_buffer_tracker.h",
87 "program_info_manager.cc",
88 "program_info_manager.h",
93 "vertex_array_object_manager.cc",
94 "vertex_array_object_manager.h",
97 # Provides GLES2 interface, but does not cause any implementation to be linked
98 # in. Useful when a target uses the interface, but permits its users to choose
100 source_set("gles2_interface") {
101 sources = [ "gles2_interface.h" ]
102 public_configs = [ "//third_party/khronos:khronos_headers" ]
108 # Library emulates GLES2 using command_buffers.
109 component("gles2_implementation") {
110 sources = gles2_implementation_source_files
112 defines = [ "GLES2_IMPL_IMPLEMENTATION" ]
113 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
116 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
117 cflags = [ "/wd4267" ] # size_t to int truncation.
124 "//gpu/command_buffer/common",
130 # Library emulates GLES2 using command_buffers.
131 component("gles2_implementation_client_side_arrays") {
132 sources = gles2_implementation_source_files
135 "GLES2_IMPL_IMPLEMENTATION",
136 "GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1",
138 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
141 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
142 cflags = [ "/wd4267" ] # size_t to int truncation.
149 "//gpu/command_buffer/common",
155 component("gl_in_process_context") {
157 "gl_in_process_context.h",
158 "gl_in_process_context.cc",
159 "gl_in_process_context_export.h",
162 defines = [ "GL_IN_PROCESS_CONTEXT_IMPLEMENTATION" ]
165 ":gles2_implementation",
167 "//gpu/command_buffer/common:gles2_utils",
169 "//base/third_party/dynamic_annotations",
175 component("gles2_c_lib") {
176 sources = gles2_c_lib_source_files
177 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ]
180 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
181 cflags = [ "/wd4267" ] # size_t to int truncation.
188 "//base/third_party/dynamic_annotations",
189 "//gpu/command_buffer/common",