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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 } | 45 } |
46 | 46 |
47 gles2_c_lib_source_files = [ | 47 gles2_c_lib_source_files = [ |
48 "gles2_c_lib.cc", | 48 "gles2_c_lib.cc", |
49 "gles2_c_lib_autogen.h", | 49 "gles2_c_lib_autogen.h", |
50 "gles2_c_lib_export.h", | 50 "gles2_c_lib_export.h", |
51 "gles2_lib.h", | 51 "gles2_lib.h", |
52 "gles2_lib.cc", | 52 "gles2_lib.cc", |
53 ] | 53 ] |
54 | 54 |
| 55 gles2_implementation_source_files = [ |
| 56 "buffer_tracker.cc", |
| 57 "buffer_tracker.h", |
| 58 "client_context_state.h", |
| 59 "client_context_state.cc", |
| 60 "client_context_state_autogen.h", |
| 61 "client_context_state_impl_autogen.h", |
| 62 "gles2_impl_export.h", |
| 63 "gles2_implementation_autogen.h", |
| 64 "gles2_implementation.cc", |
| 65 "gles2_implementation.h", |
| 66 "gles2_implementation_impl_autogen.h", |
| 67 "gles2_interface.h", |
| 68 "gles2_trace_implementation_autogen.h", |
| 69 "gles2_trace_implementation.cc", |
| 70 "gles2_trace_implementation.h", |
| 71 "gles2_trace_implementation_impl_autogen.h", |
| 72 "gpu_memory_buffer_factory.h", |
| 73 "gpu_memory_buffer_tracker.cc", |
| 74 "gpu_memory_buffer_tracker.h", |
| 75 "program_info_manager.cc", |
| 76 "program_info_manager.h", |
| 77 "query_tracker.cc", |
| 78 "query_tracker.h", |
| 79 "share_group.cc", |
| 80 "share_group.h", |
| 81 "vertex_array_object_manager.cc", |
| 82 "vertex_array_object_manager.h", |
| 83 ] |
| 84 |
| 85 # Library emulates GLES2 using command_buffers. |
55 component("gles2_implementation") { | 86 component("gles2_implementation") { |
56 sources = [ | 87 sources = gles2_implementation_source_files |
57 "buffer_tracker.cc", | 88 |
58 "buffer_tracker.h", | |
59 "client_context_state.h", | |
60 "client_context_state.cc", | |
61 "client_context_state_autogen.h", | |
62 "client_context_state_impl_autogen.h", | |
63 "gles2_impl_export.h", | |
64 "gles2_implementation_autogen.h", | |
65 "gles2_implementation.cc", | |
66 "gles2_implementation.h", | |
67 "gles2_implementation_impl_autogen.h", | |
68 "gles2_interface.h", | |
69 "gles2_trace_implementation_autogen.h", | |
70 "gles2_trace_implementation.cc", | |
71 "gles2_trace_implementation.h", | |
72 "gles2_trace_implementation_impl_autogen.h", | |
73 "gpu_memory_buffer_factory.h", | |
74 "gpu_memory_buffer_tracker.cc", | |
75 "gpu_memory_buffer_tracker.h", | |
76 "program_info_manager.cc", | |
77 "program_info_manager.h", | |
78 "query_tracker.cc", | |
79 "query_tracker.h", | |
80 "share_group.cc", | |
81 "share_group.h", | |
82 "vertex_array_object_manager.cc", | |
83 "vertex_array_object_manager.h", | |
84 ] | |
85 defines = [ "GLES2_IMPL_IMPLEMENTATION" ] | 89 defines = [ "GLES2_IMPL_IMPLEMENTATION" ] |
86 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] | 90 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
87 | 91 |
88 if (is_win) { | 92 if (is_win) { |
89 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 93 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
90 cflags = [ "/wd4267" ] # size_t to int truncation. | 94 cflags = [ "/wd4267" ] # size_t to int truncation. |
91 } | 95 } |
92 | 96 |
93 deps = [ | 97 deps = [ |
94 ":gles2_cmd_helper", | 98 ":gles2_cmd_helper", |
95 "//base", | 99 "//base", |
96 "//gpu/command_buffer/common", | 100 "//gpu/command_buffer/common", |
97 "//ui/gfx/geometry", | 101 "//ui/gfx/geometry", |
98 "//ui/gl", | 102 "//ui/gl", |
99 ] | 103 ] |
100 } | 104 } |
101 | 105 |
| 106 # Library emulates GLES2 using command_buffers. |
| 107 component("gles2_implementation_client_side_arrays") { |
| 108 sources = gles2_implementation_source_files |
| 109 |
| 110 defines = [ |
| 111 "GLES2_IMPL_IMPLEMENTATION", |
| 112 "GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1", |
| 113 ] |
| 114 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
| 115 |
| 116 if (is_win) { |
| 117 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 118 cflags = [ "/wd4267" ] # size_t to int truncation. |
| 119 } |
| 120 |
| 121 deps = [ |
| 122 ":gles2_cmd_helper", |
| 123 "//base", |
| 124 "//gpu/command_buffer/common", |
| 125 "//ui/gfx/geometry", |
| 126 "//ui/gl", |
| 127 ] |
| 128 } |
| 129 |
| 130 component("gl_in_process_context") { |
| 131 sources = [ |
| 132 "gl_in_process_context.h", |
| 133 "gl_in_process_context.cc", |
| 134 "gl_in_process_context_export.h", |
| 135 ] |
| 136 |
| 137 defines = [ "GL_IN_PROCESS_CONTEXT_IMPLEMENTATION" ] |
| 138 |
| 139 deps = [ |
| 140 ":gles2_implementation", |
| 141 "//gpu", |
| 142 "//base", |
| 143 "//base/third_party/dynamic_annotations", |
| 144 "//ui/gfx/geometry", |
| 145 "//ui/gl", |
| 146 ] |
| 147 } |
| 148 |
102 component("gles2_c_lib") { | 149 component("gles2_c_lib") { |
103 sources = gles2_c_lib_source_files | 150 sources = gles2_c_lib_source_files |
104 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ] | 151 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ] |
105 | 152 |
106 if (is_win) { | 153 if (is_win) { |
107 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 154 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
108 cflags = [ "/wd4267" ] # size_t to int truncation. | 155 cflags = [ "/wd4267" ] # size_t to int truncation. |
109 } | 156 } |
110 | 157 |
111 deps = [ | 158 deps = [ |
112 ":client", | 159 ":client", |
113 ":gles2_implementation", | 160 ":gles2_implementation", |
114 "//base", | 161 "//base", |
115 "//base/third_party/dynamic_annotations", | 162 "//base/third_party/dynamic_annotations", |
116 "//gpu/command_buffer/common", | 163 "//gpu/command_buffer/common", |
117 ] | 164 ] |
118 } | 165 } |
119 | 166 |
OLD | NEW |