blob: 4d71c7128b1c3d72a22ef164a5fcd16f6d3ce6e4 [file] [log] [blame]
[email protected]c1372a62014-05-21 19:42:311# 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.
4
5import("//build/config/ui.gni")
6import("//third_party/protobuf/proto_library.gni")
7
brettw542f7532015-04-06 22:35:458group("service") {
9 if (is_component_build) {
10 public_deps = [
11 "//gpu",
12 ]
13 } else {
14 public_deps = [
15 ":service_sources",
16 ]
17 }
18}
19
20source_set("service_sources") {
21 visibility = [ "//gpu/*" ]
22
[email protected]c1372a62014-05-21 19:42:3123 sources = [
24 "async_pixel_transfer_delegate.cc",
25 "async_pixel_transfer_delegate.h",
satoruxc5bd7a32015-02-18 01:54:5226 "async_pixel_transfer_manager.cc",
27 "async_pixel_transfer_manager.h",
[email protected]c1372a62014-05-21 19:42:3128 "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",
[email protected]c1372a62014-05-21 19:42:3140 "buffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5241 "buffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3142 "cmd_buffer_engine.h",
43 "cmd_parser.cc",
44 "cmd_parser.h",
45 "command_buffer_service.cc",
46 "command_buffer_service.h",
47 "common_decoder.cc",
48 "common_decoder.h",
[email protected]c1372a62014-05-21 19:42:3149 "context_group.cc",
satoruxc5bd7a32015-02-18 01:54:5250 "context_group.h",
51 "context_state.cc",
[email protected]c1372a62014-05-21 19:42:3152 "context_state.h",
53 "context_state_autogen.h",
54 "context_state_impl_autogen.h",
[email protected]c1372a62014-05-21 19:42:3155 "error_state.cc",
56 "error_state.h",
[email protected]c1372a62014-05-21 19:42:3157 "feature_info.cc",
satoruxc5bd7a32015-02-18 01:54:5258 "feature_info.h",
[email protected]c1372a62014-05-21 19:42:3159 "framebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5260 "framebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3161 "gl_context_virtual.cc",
62 "gl_context_virtual.h",
63 "gl_state_restorer_impl.cc",
64 "gl_state_restorer_impl.h",
65 "gl_utils.h",
satoruxc5bd7a32015-02-18 01:54:5266 "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",
[email protected]c1372a62014-05-21 19:42:3177 "gpu_scheduler.cc",
78 "gpu_scheduler.h",
79 "gpu_scheduler_mock.h",
80 "gpu_state_tracer.cc",
81 "gpu_state_tracer.h",
82 "gpu_switches.cc",
83 "gpu_switches.h",
satoruxc5bd7a32015-02-18 01:54:5284 "gpu_tracer.cc",
85 "gpu_tracer.h",
[email protected]c1372a62014-05-21 19:42:3186 "id_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5287 "id_manager.h",
revemaneeba91b2014-10-28 22:49:2088 "image_factory.cc",
89 "image_factory.h",
[email protected]c1372a62014-05-21 19:42:3190 "image_manager.cc",
91 "image_manager.h",
92 "in_process_command_buffer.cc",
93 "in_process_command_buffer.h",
94 "logger.cc",
95 "logger.h",
[email protected]c1372a62014-05-21 19:42:3196 "mailbox_manager.h",
sieversb727d532014-10-24 19:11:3497 "mailbox_manager_impl.cc",
98 "mailbox_manager_impl.h",
99 "mailbox_manager_sync.cc",
100 "mailbox_manager_sync.h",
[email protected]c1372a62014-05-21 19:42:31101 "memory_program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52102 "memory_program_cache.h",
[email protected]c1372a62014-05-21 19:42:31103 "mocks.h",
[email protected]c1372a62014-05-21 19:42:31104 "program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52105 "program_cache.h",
106 "program_manager.cc",
107 "program_manager.h",
108 "query_manager.cc",
109 "query_manager.h",
110 "renderbuffer_manager.cc",
111 "renderbuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:31112 "shader_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52113 "shader_manager.h",
[email protected]c1372a62014-05-21 19:42:31114 "shader_translator.cc",
satoruxc5bd7a32015-02-18 01:54:52115 "shader_translator.h",
[email protected]c1372a62014-05-21 19:42:31116 "shader_translator_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52117 "shader_translator_cache.h",
[email protected]c1372a62014-05-21 19:42:31118 "stream_texture_manager_in_process_android.cc",
satoruxc5bd7a32015-02-18 01:54:52119 "stream_texture_manager_in_process_android.h",
abarth3f1812022014-11-18 23:33:07120 "sync_point_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52121 "sync_point_manager.h",
[email protected]c1372a62014-05-21 19:42:31122 "texture_definition.cc",
satoruxc5bd7a32015-02-18 01:54:52123 "texture_definition.h",
[email protected]c1372a62014-05-21 19:42:31124 "texture_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52125 "texture_manager.h",
[email protected]c1372a62014-05-21 19:42:31126 "transfer_buffer_manager.cc",
127 "transfer_buffer_manager.h",
orglofchcad5a6742014-11-07 19:51:12128 "valuebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52129 "valuebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:31130 "vertex_array_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52131 "vertex_array_manager.h",
[email protected]c1372a62014-05-21 19:42:31132 "vertex_attrib_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52133 "vertex_attrib_manager.h",
[email protected]c1372a62014-05-21 19:42:31134 ]
135
brettw8f2fd172015-03-16 22:14:18136 configs += [
137 "//gpu:gpu_implementation",
138 "//third_party/khronos:khronos_headers",
139 ]
[email protected]c1372a62014-05-21 19:42:31140
ckocagilfc8d7f232014-09-30 19:31:43141 # Prefer mesa GL headers to system headers, which cause problems on Win.
142 include_dirs = [ "//third_party/mesa/src/include" ]
143
brettw7dab582e2014-09-20 01:44:11144 public_deps = [
brettw542f7532015-04-06 22:35:45145 "//gpu/command_buffer/common:common_sources",
brettw7dab582e2014-09-20 01:44:11146 ]
[email protected]c1372a62014-05-21 19:42:31147 deps = [
148 ":disk_cache_proto",
149 "//base",
150 "//base/third_party/dynamic_annotations",
151 "//crypto",
[email protected]d5ba08c2014-06-18 07:01:08152 "//third_party/angle:translator",
[email protected]c1372a62014-05-21 19:42:31153 "//third_party/protobuf:protobuf_lite",
154 "//third_party/re2",
155 "//third_party/smhasher:cityhash",
156 "//ui/gfx",
157 "//ui/gfx/geometry",
158 "//ui/gl",
[email protected]c1372a62014-05-21 19:42:31159 ]
160
[email protected]c1372a62014-05-21 19:42:31161 if (is_win || is_android || (is_linux && use_x11)) {
162 sources += [
163 "async_pixel_transfer_manager_egl.cc",
164 "async_pixel_transfer_manager_egl.h",
165 ]
166 }
167
jiangj2bd42fd2015-04-18 13:29:06168 if (is_mac) {
169 # Required by gles2_cmd_decoder.cc on Mac.
170 libs = [
171 "IOSurface.framework",
172 "OpenGL.framework",
173 ]
174 }
175
[email protected]c1372a62014-05-21 19:42:31176 if (is_android && !is_debug) {
177 # On Android optimize more since this component can be a bottleneck.
178 configs -= [ "//build/config/compiler:optimize" ]
179 configs += [ "//build/config/compiler:optimize_max" ]
180 }
181}
182
183proto_library("disk_cache_proto") {
scottmg34fb7e52014-12-03 23:27:24184 sources = [
185 "disk_cache_proto.proto",
186 ]
[email protected]c1372a62014-05-21 19:42:31187}