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", |
11 "gpu_control.h", | 11 "gpu_control.h", |
12 "mapped_memory.cc", | 12 "mapped_memory.cc", |
13 "mapped_memory.h", | 13 "mapped_memory.h", |
14 "ring_buffer.cc", | 14 "ring_buffer.cc", |
15 "ring_buffer.h", | 15 "ring_buffer.h", |
16 "transfer_buffer.cc", | 16 "transfer_buffer.cc", |
17 "transfer_buffer.h", | 17 "transfer_buffer.h", |
18 ] | 18 ] |
19 | 19 |
20 defines = [ "GPU_IMPLEMENTATION" ] | 20 defines = [ "GPU_IMPLEMENTATION" ] |
21 | 21 |
22 if (is_win) { | 22 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
23 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 23 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
24 cflags = [ "/wd4267" ] # size_t to int truncation. | |
25 } | |
26 | 24 |
27 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] | 25 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
28 | 26 |
29 deps = [ | 27 deps = [ |
30 "//gpu/command_buffer/common", | 28 "//gpu/command_buffer/common", |
31 ] | 29 ] |
32 } | 30 } |
33 | 31 |
34 group("gles2_cmd_helper") { | 32 group("gles2_cmd_helper") { |
35 if (is_component_build) { | 33 if (is_component_build) { |
(...skipping 13 matching lines...) Expand all Loading... |
49 "//gpu", | 47 "//gpu", |
50 ] | 48 ] |
51 sources = [ | 49 sources = [ |
52 "gles2_cmd_helper.cc", | 50 "gles2_cmd_helper.cc", |
53 "gles2_cmd_helper.h", | 51 "gles2_cmd_helper.h", |
54 "gles2_cmd_helper_autogen.h", | 52 "gles2_cmd_helper_autogen.h", |
55 ] | 53 ] |
56 | 54 |
57 defines = [ "GPU_IMPLEMENTATION" ] | 55 defines = [ "GPU_IMPLEMENTATION" ] |
58 | 56 |
59 if (is_win) { | 57 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
60 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 58 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
61 cflags = [ "/wd4267" ] # size_t to int truncation. | |
62 } | |
63 | 59 |
64 deps = [ | 60 deps = [ |
65 ":client", | 61 ":client", |
66 ] | 62 ] |
67 } | 63 } |
68 | 64 |
69 gles2_c_lib_source_files = [ | 65 gles2_c_lib_source_files = [ |
70 "gles2_c_lib.cc", | 66 "gles2_c_lib.cc", |
71 "gles2_c_lib_autogen.h", | 67 "gles2_c_lib_autogen.h", |
72 "gles2_c_lib_export.h", | 68 "gles2_c_lib_export.h", |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 ] | 118 ] |
123 deps = [ | 119 deps = [ |
124 "//ui/gfx", | 120 "//ui/gfx", |
125 ] | 121 ] |
126 } | 122 } |
127 | 123 |
128 # Library emulates GLES2 using command_buffers. | 124 # Library emulates GLES2 using command_buffers. |
129 component("gles2_implementation") { | 125 component("gles2_implementation") { |
130 sources = gles2_implementation_source_files | 126 sources = gles2_implementation_source_files |
131 | 127 |
| 128 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 129 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 130 |
132 defines = [ "GLES2_IMPL_IMPLEMENTATION" ] | 131 defines = [ "GLES2_IMPL_IMPLEMENTATION" ] |
133 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] | 132 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
134 | 133 |
135 if (is_win) { | |
136 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
137 cflags = [ "/wd4267" ] # size_t to int truncation. | |
138 } | |
139 | |
140 deps = [ | 134 deps = [ |
141 ":gles2_cmd_helper", | 135 ":gles2_cmd_helper", |
142 ":gles2_interface", | 136 ":gles2_interface", |
143 "//base", | 137 "//base", |
144 "//gpu/command_buffer/common", | 138 "//gpu/command_buffer/common", |
145 "//ui/gfx/geometry", | 139 "//ui/gfx/geometry", |
146 ] | 140 ] |
147 } | 141 } |
148 | 142 |
149 component("gl_in_process_context") { | 143 component("gl_in_process_context") { |
(...skipping 14 matching lines...) Expand all Loading... |
164 "//base/third_party/dynamic_annotations", | 158 "//base/third_party/dynamic_annotations", |
165 "//ui/gfx/geometry", | 159 "//ui/gfx/geometry", |
166 "//ui/gl", | 160 "//ui/gl", |
167 ] | 161 ] |
168 } | 162 } |
169 | 163 |
170 component("gles2_c_lib") { | 164 component("gles2_c_lib") { |
171 sources = gles2_c_lib_source_files | 165 sources = gles2_c_lib_source_files |
172 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ] | 166 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ] |
173 | 167 |
174 if (is_win) { | 168 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
175 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 169 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
176 cflags = [ "/wd4267" ] # size_t to int truncation. | |
177 } | |
178 | 170 |
179 deps = [ | 171 deps = [ |
180 ":client", | 172 ":client", |
181 ":gles2_interface", | 173 ":gles2_interface", |
182 "//base", | 174 "//base", |
183 "//base/third_party/dynamic_annotations", | 175 "//base/third_party/dynamic_annotations", |
184 "//gpu/command_buffer/common", | 176 "//gpu/command_buffer/common", |
185 ] | 177 ] |
186 } | 178 } |
OLD | NEW |