1 # Copyright 2014 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.
5 import("//build/config/ui.gni")
6 import("//third_party/protobuf/proto_library.gni")
9 if (is_component_build) {
20 source_set("service_sources") {
21 visibility = [ "//gpu/*" ]
24 "async_pixel_transfer_delegate.cc",
25 "async_pixel_transfer_delegate.h",
26 "async_pixel_transfer_manager.cc",
27 "async_pixel_transfer_manager.h",
28 "async_pixel_transfer_manager_android.cc",
29 "async_pixel_transfer_manager_idle.cc",
30 "async_pixel_transfer_manager_idle.h",
31 "async_pixel_transfer_manager_linux.cc",
32 "async_pixel_transfer_manager_mac.cc",
33 "async_pixel_transfer_manager_share_group.cc",
34 "async_pixel_transfer_manager_share_group.h",
35 "async_pixel_transfer_manager_stub.cc",
36 "async_pixel_transfer_manager_stub.h",
37 "async_pixel_transfer_manager_sync.cc",
38 "async_pixel_transfer_manager_sync.h",
39 "async_pixel_transfer_manager_win.cc",
42 "cmd_buffer_engine.h",
45 "command_buffer_service.cc",
46 "command_buffer_service.h",
53 "context_state_autogen.h",
54 "context_state_impl_autogen.h",
59 "framebuffer_manager.cc",
60 "framebuffer_manager.h",
61 "gl_context_virtual.cc",
62 "gl_context_virtual.h",
63 "gl_state_restorer_impl.cc",
64 "gl_state_restorer_impl.h",
66 "gles2_cmd_clear_framebuffer.cc",
67 "gles2_cmd_clear_framebuffer.h",
68 "gles2_cmd_copy_texture_chromium.cc",
69 "gles2_cmd_copy_texture_chromium.h",
70 "gles2_cmd_decoder.cc",
71 "gles2_cmd_decoder.h",
72 "gles2_cmd_decoder_autogen.h",
73 "gles2_cmd_validation.cc",
74 "gles2_cmd_validation.h",
75 "gles2_cmd_validation_autogen.h",
76 "gles2_cmd_validation_implementation_autogen.h",
79 "gpu_state_tracer.cc",
91 "in_process_command_buffer.cc",
92 "in_process_command_buffer.h",
97 "mailbox_manager_impl.cc",
98 "mailbox_manager_impl.h",
99 "mailbox_manager_sync.cc",
100 "mailbox_manager_sync.h",
101 "memory_program_cache.cc",
102 "memory_program_cache.h",
107 "program_manager.cc",
111 "renderbuffer_manager.cc",
112 "renderbuffer_manager.h",
115 "shader_translator.cc",
116 "shader_translator.h",
117 "shader_translator_cache.cc",
118 "shader_translator_cache.h",
119 "stream_texture_manager_in_process_android.cc",
120 "stream_texture_manager_in_process_android.h",
121 "sync_point_manager.cc",
122 "sync_point_manager.h",
123 "texture_definition.cc",
124 "texture_definition.h",
125 "texture_manager.cc",
127 "transfer_buffer_manager.cc",
128 "transfer_buffer_manager.h",
129 "valuebuffer_manager.cc",
130 "valuebuffer_manager.h",
131 "vertex_array_manager.cc",
132 "vertex_array_manager.h",
133 "vertex_attrib_manager.cc",
134 "vertex_attrib_manager.h",
138 "//gpu:gpu_implementation",
139 "//third_party/khronos:khronos_headers",
142 # Prefer mesa GL headers to system headers, which cause problems on Win.
143 include_dirs = [ "//third_party/mesa/src/include" ]
146 "//gpu/command_buffer/common:common_sources",
151 "//base/third_party/dynamic_annotations",
153 "//gpu/config:config_sources",
154 "//third_party/angle:translator",
155 "//third_party/protobuf:protobuf_lite",
157 "//third_party/smhasher:cityhash",
163 if (is_win || is_android || (is_linux && use_x11)) {
165 "async_pixel_transfer_manager_egl.cc",
166 "async_pixel_transfer_manager_egl.h",
171 # Required by gles2_cmd_decoder.cc on Mac.
173 "IOSurface.framework",
178 if (is_android && !is_debug) {
179 # On Android optimize more since this component can be a bottleneck.
180 configs -= [ "//build/config/compiler:optimize" ]
181 configs += [ "//build/config/compiler:optimize_max" ]
185 proto_library("disk_cache_proto") {
187 "disk_cache_proto.proto",