• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3# found in the LICENSE file.
4
5source_set("client") {
6  sources = [
7    "cmd_buffer_helper.cc",
8    "cmd_buffer_helper.h",
9    "fenced_allocator.cc",
10    "fenced_allocator.h",
11    "gpu_control.h",
12    "mapped_memory.cc",
13    "mapped_memory.h",
14    "ring_buffer.cc",
15    "ring_buffer.h",
16    "transfer_buffer.cc",
17    "transfer_buffer.h",
18  ]
19
20  if (is_win) {
21    # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
22    cflags = [ "/wd4267" ]  # size_t to int truncation.
23  }
24
25  all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
26
27  deps = [
28    "//gpu/command_buffer/common",
29  ]
30}
31
32source_set("gles2_cmd_helper") {
33  sources = [
34    "gles2_cmd_helper.cc",
35    "gles2_cmd_helper.h",
36    "gles2_cmd_helper_autogen.h",
37  ]
38
39  if (is_win) {
40    # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
41    cflags = [ "/wd4267" ]  # size_t to int truncation.
42  }
43
44  deps = [ ":client" ]
45}
46
47gles2_c_lib_source_files = [
48  "gles2_c_lib.cc",
49  "gles2_c_lib_autogen.h",
50  "gles2_c_lib_export.h",
51  "gles2_lib.h",
52  "gles2_lib.cc",
53]
54
55gles2_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.
86component("gles2_implementation") {
87  sources = gles2_implementation_source_files
88
89  defines = [ "GLES2_IMPL_IMPLEMENTATION" ]
90  all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
91
92  if (is_win) {
93    # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
94    cflags = [ "/wd4267" ]  # size_t to int truncation.
95  }
96
97  deps = [
98    ":gles2_cmd_helper",
99    "//base",
100    "//gpu/command_buffer/common",
101    "//ui/gfx/geometry",
102    "//ui/gl",
103  ]
104}
105
106# Library emulates GLES2 using command_buffers.
107component("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
130component("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
149component("gles2_c_lib") {
150  sources = gles2_c_lib_source_files
151  defines = [ "GLES2_C_LIB_IMPLEMENTATION" ]
152
153  if (is_win) {
154    # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
155    cflags = [ "/wd4267" ]  # size_t to int truncation.
156  }
157
158  deps = [
159    ":client",
160    "//base",
161    "//base/third_party/dynamic_annotations",
162    "//gpu/command_buffer/common",
163  ]
164}
165
166