OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 source_set("client") { | 5 source_set("client") { |
6 sources = [ | 6 sources = [ |
7 "cmd_buffer_helper.cc", | 7 "cmd_buffer_helper.cc", |
8 "cmd_buffer_helper.h", | 8 "cmd_buffer_helper.h", |
9 "fenced_allocator.cc", | 9 "fenced_allocator.cc", |
10 "fenced_allocator.h", | 10 "fenced_allocator.h", |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 "buffer_tracker.h", | 70 "buffer_tracker.h", |
71 "client_context_state.h", | 71 "client_context_state.h", |
72 "client_context_state.cc", | 72 "client_context_state.cc", |
73 "client_context_state_autogen.h", | 73 "client_context_state_autogen.h", |
74 "client_context_state_impl_autogen.h", | 74 "client_context_state_impl_autogen.h", |
75 "gles2_impl_export.h", | 75 "gles2_impl_export.h", |
76 "gles2_implementation_autogen.h", | 76 "gles2_implementation_autogen.h", |
77 "gles2_implementation.cc", | 77 "gles2_implementation.cc", |
78 "gles2_implementation.h", | 78 "gles2_implementation.h", |
79 "gles2_implementation_impl_autogen.h", | 79 "gles2_implementation_impl_autogen.h", |
80 "gles2_interface.h", | |
81 "gles2_trace_implementation_autogen.h", | 80 "gles2_trace_implementation_autogen.h", |
82 "gles2_trace_implementation.cc", | 81 "gles2_trace_implementation.cc", |
83 "gles2_trace_implementation.h", | 82 "gles2_trace_implementation.h", |
84 "gles2_trace_implementation_impl_autogen.h", | 83 "gles2_trace_implementation_impl_autogen.h", |
85 "gpu_memory_buffer_factory.h", | 84 "gpu_memory_buffer_factory.h", |
86 "gpu_memory_buffer_tracker.cc", | 85 "gpu_memory_buffer_tracker.cc", |
87 "gpu_memory_buffer_tracker.h", | 86 "gpu_memory_buffer_tracker.h", |
88 "program_info_manager.cc", | 87 "program_info_manager.cc", |
89 "program_info_manager.h", | 88 "program_info_manager.h", |
90 "query_tracker.cc", | 89 "query_tracker.cc", |
91 "query_tracker.h", | 90 "query_tracker.h", |
92 "share_group.cc", | 91 "share_group.cc", |
93 "share_group.h", | 92 "share_group.h", |
94 "vertex_array_object_manager.cc", | 93 "vertex_array_object_manager.cc", |
95 "vertex_array_object_manager.h", | 94 "vertex_array_object_manager.h", |
96 ] | 95 ] |
97 | 96 |
| 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 |
| 99 # an implementation. |
| 100 source_set("gles2_interface") { |
| 101 sources = [ "gles2_interface.h" ] |
| 102 direct_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
| 103 deps = [ |
| 104 "//base", |
| 105 ] |
| 106 } |
| 107 |
98 # Library emulates GLES2 using command_buffers. | 108 # Library emulates GLES2 using command_buffers. |
99 component("gles2_implementation") { | 109 component("gles2_implementation") { |
100 sources = gles2_implementation_source_files | 110 sources = gles2_implementation_source_files |
101 | 111 |
102 defines = [ "GLES2_IMPL_IMPLEMENTATION" ] | 112 defines = [ "GLES2_IMPL_IMPLEMENTATION" ] |
103 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] | 113 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
104 | 114 |
105 if (is_win) { | 115 if (is_win) { |
106 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 116 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
107 cflags = [ "/wd4267" ] # size_t to int truncation. | 117 cflags = [ "/wd4267" ] # size_t to int truncation. |
108 } | 118 } |
109 | 119 |
110 deps = [ | 120 deps = [ |
111 ":gles2_cmd_helper", | 121 ":gles2_cmd_helper", |
| 122 ":gles2_interface", |
112 "//base", | 123 "//base", |
113 "//gpu/command_buffer/common", | 124 "//gpu/command_buffer/common", |
114 "//ui/gfx/geometry", | 125 "//ui/gfx/geometry", |
115 "//ui/gl", | 126 "//ui/gl", |
116 ] | 127 ] |
117 } | 128 } |
118 | 129 |
119 # Library emulates GLES2 using command_buffers. | 130 # Library emulates GLES2 using command_buffers. |
120 component("gles2_implementation_client_side_arrays") { | 131 component("gles2_implementation_client_side_arrays") { |
121 sources = gles2_implementation_source_files | 132 sources = gles2_implementation_source_files |
122 | 133 |
123 defines = [ | 134 defines = [ |
124 "GLES2_IMPL_IMPLEMENTATION", | 135 "GLES2_IMPL_IMPLEMENTATION", |
125 "GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1", | 136 "GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1", |
126 ] | 137 ] |
127 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] | 138 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
128 | 139 |
129 if (is_win) { | 140 if (is_win) { |
130 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 141 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
131 cflags = [ "/wd4267" ] # size_t to int truncation. | 142 cflags = [ "/wd4267" ] # size_t to int truncation. |
132 } | 143 } |
133 | 144 |
134 deps = [ | 145 deps = [ |
135 ":gles2_cmd_helper", | 146 ":gles2_cmd_helper", |
| 147 ":gles2_interface", |
136 "//base", | 148 "//base", |
137 "//gpu/command_buffer/common", | 149 "//gpu/command_buffer/common", |
138 "//ui/gfx/geometry", | 150 "//ui/gfx/geometry", |
139 "//ui/gl", | 151 "//ui/gl", |
140 ] | 152 ] |
141 } | 153 } |
142 | 154 |
143 component("gl_in_process_context") { | 155 component("gl_in_process_context") { |
144 sources = [ | 156 sources = [ |
145 "gl_in_process_context.h", | 157 "gl_in_process_context.h", |
(...skipping 18 matching lines...) Expand all Loading... |
164 sources = gles2_c_lib_source_files | 176 sources = gles2_c_lib_source_files |
165 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ] | 177 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ] |
166 | 178 |
167 if (is_win) { | 179 if (is_win) { |
168 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 180 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
169 cflags = [ "/wd4267" ] # size_t to int truncation. | 181 cflags = [ "/wd4267" ] # size_t to int truncation. |
170 } | 182 } |
171 | 183 |
172 deps = [ | 184 deps = [ |
173 ":client", | 185 ":client", |
| 186 ":gles2_interface", |
174 "//base", | 187 "//base", |
175 "//base/third_party/dynamic_annotations", | 188 "//base/third_party/dynamic_annotations", |
176 "//gpu/command_buffer/common", | 189 "//gpu/command_buffer/common", |
177 ] | 190 ] |
178 } | 191 } |
179 | 192 |
OLD | NEW |