| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 # in. Useful when a target uses the interface, but permits its users to choose | 97 # in. Useful when a target uses the interface, but permits its users to choose |
| 98 # an implementation. | 98 # an implementation. |
| 99 source_set("gles2_interface") { | 99 source_set("gles2_interface") { |
| 100 sources = [ "gles2_interface.h" ] | 100 sources = [ "gles2_interface.h" ] |
| 101 public_configs = [ "//third_party/khronos:khronos_headers" ] | 101 public_configs = [ "//third_party/khronos:khronos_headers" ] |
| 102 deps = [ | 102 deps = [ |
| 103 "//base", | 103 "//base", |
| 104 ] | 104 ] |
| 105 } | 105 } |
| 106 | 106 |
| 107 source_set("gpu_memory_buffer_manager") { |
| 108 sources = [ |
| 109 "gpu_memory_buffer_manager.cc", |
| 110 "gpu_memory_buffer_manager.h", |
| 111 ] |
| 112 deps = [ |
| 113 "//ui/gfx", |
| 114 ] |
| 115 } |
| 116 |
| 107 # Library emulates GLES2 using command_buffers. | 117 # Library emulates GLES2 using command_buffers. |
| 108 component("gles2_implementation") { | 118 component("gles2_implementation") { |
| 109 sources = gles2_implementation_source_files | 119 sources = gles2_implementation_source_files |
| 110 | 120 |
| 111 defines = [ "GLES2_IMPL_IMPLEMENTATION" ] | 121 defines = [ "GLES2_IMPL_IMPLEMENTATION" ] |
| 112 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] | 122 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
| 113 | 123 |
| 114 if (is_win) { | 124 if (is_win) { |
| 115 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 125 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 116 cflags = [ "/wd4267" ] # size_t to int truncation. | 126 cflags = [ "/wd4267" ] # size_t to int truncation. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 sources = [ | 164 sources = [ |
| 155 "gl_in_process_context.h", | 165 "gl_in_process_context.h", |
| 156 "gl_in_process_context.cc", | 166 "gl_in_process_context.cc", |
| 157 "gl_in_process_context_export.h", | 167 "gl_in_process_context_export.h", |
| 158 ] | 168 ] |
| 159 | 169 |
| 160 defines = [ "GL_IN_PROCESS_CONTEXT_IMPLEMENTATION" ] | 170 defines = [ "GL_IN_PROCESS_CONTEXT_IMPLEMENTATION" ] |
| 161 | 171 |
| 162 deps = [ | 172 deps = [ |
| 163 ":gles2_implementation", | 173 ":gles2_implementation", |
| 174 ":gpu_memory_buffer_manager", |
| 164 "//gpu", | 175 "//gpu", |
| 165 "//gpu/command_buffer/common:gles2_utils", | 176 "//gpu/command_buffer/common:gles2_utils", |
| 166 "//base", | 177 "//base", |
| 167 "//base/third_party/dynamic_annotations", | 178 "//base/third_party/dynamic_annotations", |
| 168 "//ui/gfx/geometry", | 179 "//ui/gfx/geometry", |
| 169 "//ui/gl", | 180 "//ui/gl", |
| 170 ] | 181 ] |
| 171 } | 182 } |
| 172 | 183 |
| 173 component("gles2_c_lib") { | 184 component("gles2_c_lib") { |
| 174 sources = gles2_c_lib_source_files | 185 sources = gles2_c_lib_source_files |
| 175 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ] | 186 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ] |
| 176 | 187 |
| 177 if (is_win) { | 188 if (is_win) { |
| 178 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 189 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 179 cflags = [ "/wd4267" ] # size_t to int truncation. | 190 cflags = [ "/wd4267" ] # size_t to int truncation. |
| 180 } | 191 } |
| 181 | 192 |
| 182 deps = [ | 193 deps = [ |
| 183 ":client", | 194 ":client", |
| 184 ":gles2_interface", | 195 ":gles2_interface", |
| 185 "//base", | 196 "//base", |
| 186 "//base/third_party/dynamic_annotations", | 197 "//base/third_party/dynamic_annotations", |
| 187 "//gpu/command_buffer/common", | 198 "//gpu/command_buffer/common", |
| 188 ] | 199 ] |
| 189 } | 200 } |
| 190 | 201 |
| OLD | NEW |