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