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",
96 "mailbox_manager_impl.cc",
97 "mailbox_manager_impl.h",
98 "mailbox_manager_sync.cc",
99 "mailbox_manager_sync.h",
100 "memory_program_cache.cc",
101 "memory_program_cache.h",
104 "program_manager.cc",
108 "renderbuffer_manager.cc",
109 "renderbuffer_manager.h",
112 "shader_translator.cc",
113 "shader_translator.h",
114 "shader_translator_cache.cc",
115 "shader_translator_cache.h",
116 "stream_texture_manager_in_process_android.cc",
117 "stream_texture_manager_in_process_android.h",
118 "sync_point_manager.cc",
119 "sync_point_manager.h",
120 "texture_definition.cc",
121 "texture_definition.h",
122 "texture_manager.cc",
124 "transfer_buffer_manager.cc",
125 "transfer_buffer_manager.h",
126 "valuebuffer_manager.cc",
127 "valuebuffer_manager.h",
128 "vertex_array_manager.cc",
129 "vertex_array_manager.h",
130 "vertex_attrib_manager.cc",
131 "vertex_attrib_manager.h",
135 "//gpu:gpu_implementation",
136 "//third_party/khronos:khronos_headers",
139 # Prefer mesa GL headers to system headers, which cause problems on Win.
140 include_dirs = [ "//third_party/mesa/src/include" ]
143 "//gpu/command_buffer/common:common_sources",
148 "//base/third_party/dynamic_annotations",
150 "//gpu/config:config_sources",
151 "//third_party/angle:translator",
152 "//third_party/protobuf:protobuf_lite",
154 "//third_party/smhasher:cityhash",
160 if (is_win || is_android || (is_linux && use_x11)) {
162 "async_pixel_transfer_manager_egl.cc",
163 "async_pixel_transfer_manager_egl.h",
168 # Required by gles2_cmd_decoder.cc on Mac.
170 "IOSurface.framework",
175 if (is_android && !is_debug) {
176 # On Android optimize more since this component can be a bottleneck.
177 configs -= [ "//build/config/compiler:optimize" ]
178 configs += [ "//build/config/compiler:optimize_max" ]
182 proto_library("disk_cache_proto") {
184 "disk_cache_proto.proto",