blob: 44b090907fe82366e4a5240e256d27ce634d2278 [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
8source_set("service") {
9 sources = [
10 "async_pixel_transfer_delegate.cc",
11 "async_pixel_transfer_delegate.h",
satoruxc5bd7a32015-02-18 01:54:5212 "async_pixel_transfer_manager.cc",
13 "async_pixel_transfer_manager.h",
[email protected]c1372a62014-05-21 19:42:3114 "async_pixel_transfer_manager_android.cc",
15 "async_pixel_transfer_manager_idle.cc",
16 "async_pixel_transfer_manager_idle.h",
17 "async_pixel_transfer_manager_linux.cc",
18 "async_pixel_transfer_manager_mac.cc",
19 "async_pixel_transfer_manager_share_group.cc",
20 "async_pixel_transfer_manager_share_group.h",
21 "async_pixel_transfer_manager_stub.cc",
22 "async_pixel_transfer_manager_stub.h",
23 "async_pixel_transfer_manager_sync.cc",
24 "async_pixel_transfer_manager_sync.h",
25 "async_pixel_transfer_manager_win.cc",
[email protected]c1372a62014-05-21 19:42:3126 "buffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5227 "buffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3128 "cmd_buffer_engine.h",
29 "cmd_parser.cc",
30 "cmd_parser.h",
31 "command_buffer_service.cc",
32 "command_buffer_service.h",
33 "common_decoder.cc",
34 "common_decoder.h",
[email protected]c1372a62014-05-21 19:42:3135 "context_group.cc",
satoruxc5bd7a32015-02-18 01:54:5236 "context_group.h",
37 "context_state.cc",
[email protected]c1372a62014-05-21 19:42:3138 "context_state.h",
39 "context_state_autogen.h",
40 "context_state_impl_autogen.h",
[email protected]c1372a62014-05-21 19:42:3141 "error_state.cc",
42 "error_state.h",
[email protected]c1372a62014-05-21 19:42:3143 "feature_info.cc",
satoruxc5bd7a32015-02-18 01:54:5244 "feature_info.h",
[email protected]c1372a62014-05-21 19:42:3145 "framebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5246 "framebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3147 "gl_context_virtual.cc",
48 "gl_context_virtual.h",
49 "gl_state_restorer_impl.cc",
50 "gl_state_restorer_impl.h",
51 "gl_utils.h",
satoruxc5bd7a32015-02-18 01:54:5252 "gles2_cmd_clear_framebuffer.cc",
53 "gles2_cmd_clear_framebuffer.h",
54 "gles2_cmd_copy_texture_chromium.cc",
55 "gles2_cmd_copy_texture_chromium.h",
56 "gles2_cmd_decoder.cc",
57 "gles2_cmd_decoder.h",
58 "gles2_cmd_decoder_autogen.h",
59 "gles2_cmd_validation.cc",
60 "gles2_cmd_validation.h",
61 "gles2_cmd_validation_autogen.h",
62 "gles2_cmd_validation_implementation_autogen.h",
[email protected]c1372a62014-05-21 19:42:3163 "gpu_scheduler.cc",
64 "gpu_scheduler.h",
65 "gpu_scheduler_mock.h",
66 "gpu_state_tracer.cc",
67 "gpu_state_tracer.h",
68 "gpu_switches.cc",
69 "gpu_switches.h",
satoruxc5bd7a32015-02-18 01:54:5270 "gpu_tracer.cc",
71 "gpu_tracer.h",
[email protected]c1372a62014-05-21 19:42:3172 "id_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5273 "id_manager.h",
revemaneeba91b2014-10-28 22:49:2074 "image_factory.cc",
75 "image_factory.h",
[email protected]c1372a62014-05-21 19:42:3176 "image_manager.cc",
77 "image_manager.h",
78 "in_process_command_buffer.cc",
79 "in_process_command_buffer.h",
80 "logger.cc",
81 "logger.h",
[email protected]c1372a62014-05-21 19:42:3182 "mailbox_manager.h",
sieversb727d532014-10-24 19:11:3483 "mailbox_manager_impl.cc",
84 "mailbox_manager_impl.h",
85 "mailbox_manager_sync.cc",
86 "mailbox_manager_sync.h",
[email protected]c1372a62014-05-21 19:42:3187 "memory_program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:5288 "memory_program_cache.h",
[email protected]c1372a62014-05-21 19:42:3189 "mocks.h",
[email protected]c1372a62014-05-21 19:42:3190 "program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:5291 "program_cache.h",
92 "program_manager.cc",
93 "program_manager.h",
94 "query_manager.cc",
95 "query_manager.h",
96 "renderbuffer_manager.cc",
97 "renderbuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3198 "shader_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5299 "shader_manager.h",
[email protected]c1372a62014-05-21 19:42:31100 "shader_translator.cc",
satoruxc5bd7a32015-02-18 01:54:52101 "shader_translator.h",
[email protected]c1372a62014-05-21 19:42:31102 "shader_translator_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52103 "shader_translator_cache.h",
[email protected]c1372a62014-05-21 19:42:31104 "stream_texture_manager_in_process_android.cc",
satoruxc5bd7a32015-02-18 01:54:52105 "stream_texture_manager_in_process_android.h",
abarth3f1812022014-11-18 23:33:07106 "sync_point_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52107 "sync_point_manager.h",
[email protected]c1372a62014-05-21 19:42:31108 "texture_definition.cc",
satoruxc5bd7a32015-02-18 01:54:52109 "texture_definition.h",
[email protected]c1372a62014-05-21 19:42:31110 "texture_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52111 "texture_manager.h",
[email protected]c1372a62014-05-21 19:42:31112 "transfer_buffer_manager.cc",
113 "transfer_buffer_manager.h",
orglofchcad5a6742014-11-07 19:51:12114 "valuebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52115 "valuebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:31116 "vertex_array_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52117 "vertex_array_manager.h",
[email protected]c1372a62014-05-21 19:42:31118 "vertex_attrib_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52119 "vertex_attrib_manager.h",
[email protected]c1372a62014-05-21 19:42:31120 ]
121
brettw8f2fd172015-03-16 22:14:18122 configs += [
123 "//gpu:gpu_implementation",
124 "//third_party/khronos:khronos_headers",
125 ]
[email protected]c1372a62014-05-21 19:42:31126
ckocagilfc8d7f232014-09-30 19:31:43127 # Prefer mesa GL headers to system headers, which cause problems on Win.
128 include_dirs = [ "//third_party/mesa/src/include" ]
129
brettw7dab582e2014-09-20 01:44:11130 public_deps = [
131 "//gpu/command_buffer/common",
132 ]
[email protected]c1372a62014-05-21 19:42:31133 deps = [
134 ":disk_cache_proto",
135 "//base",
136 "//base/third_party/dynamic_annotations",
137 "//crypto",
[email protected]d5ba08c2014-06-18 07:01:08138 "//third_party/angle:translator",
[email protected]c1372a62014-05-21 19:42:31139 "//third_party/protobuf:protobuf_lite",
140 "//third_party/re2",
141 "//third_party/smhasher:cityhash",
142 "//ui/gfx",
143 "//ui/gfx/geometry",
144 "//ui/gl",
[email protected]c1372a62014-05-21 19:42:31145 ]
146
147 if (ui_compositor_image_transport) {
ckocagilfc8d7f232014-09-30 19:31:43148 include_dirs += [ "//third_party/khronos" ]
[email protected]c1372a62014-05-21 19:42:31149 }
150
151 if (is_win || is_android || (is_linux && use_x11)) {
152 sources += [
153 "async_pixel_transfer_manager_egl.cc",
154 "async_pixel_transfer_manager_egl.h",
155 ]
156 }
157
158 if (is_android && !is_debug) {
159 # On Android optimize more since this component can be a bottleneck.
160 configs -= [ "//build/config/compiler:optimize" ]
161 configs += [ "//build/config/compiler:optimize_max" ]
162 }
163}
164
165proto_library("disk_cache_proto") {
scottmg34fb7e52014-12-03 23:27:24166 sources = [
167 "disk_cache_proto.proto",
168 ]
[email protected]c1372a62014-05-21 19:42:31169}