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")
8 source_set("service") {
10 "async_pixel_transfer_delegate.cc",
11 "async_pixel_transfer_delegate.h",
12 "async_pixel_transfer_manager_android.cc",
13 "async_pixel_transfer_manager_idle.cc",
14 "async_pixel_transfer_manager_idle.h",
15 "async_pixel_transfer_manager_linux.cc",
16 "async_pixel_transfer_manager_mac.cc",
17 "async_pixel_transfer_manager_share_group.cc",
18 "async_pixel_transfer_manager_share_group.h",
19 "async_pixel_transfer_manager_stub.cc",
20 "async_pixel_transfer_manager_stub.h",
21 "async_pixel_transfer_manager_sync.cc",
22 "async_pixel_transfer_manager_sync.h",
23 "async_pixel_transfer_manager_win.cc",
24 "async_pixel_transfer_manager.cc",
25 "async_pixel_transfer_manager.h",
28 "cmd_buffer_engine.h",
31 "command_buffer_service.cc",
32 "command_buffer_service.h",
38 "context_state_autogen.h",
39 "context_state_impl_autogen.h",
45 "framebuffer_manager.h",
46 "framebuffer_manager.cc",
47 "gles2_cmd_copy_texture_chromium.cc",
48 "gles2_cmd_copy_texture_chromium.h",
49 "gles2_cmd_decoder.h",
50 "gles2_cmd_decoder_autogen.h",
51 "gles2_cmd_decoder.cc",
52 "gles2_cmd_validation.h",
53 "gles2_cmd_validation.cc",
54 "gles2_cmd_validation_autogen.h",
55 "gles2_cmd_validation_implementation_autogen.h",
56 "gl_context_virtual.cc",
57 "gl_context_virtual.h",
58 "gl_state_restorer_impl.cc",
59 "gl_state_restorer_impl.h",
63 "gpu_scheduler_mock.h",
64 "gpu_state_tracer.cc",
74 "in_process_command_buffer.cc",
75 "in_process_command_buffer.h",
80 "mailbox_synchronizer.cc",
81 "mailbox_synchronizer.h",
82 "memory_program_cache.h",
83 "memory_program_cache.cc",
89 "renderbuffer_manager.h",
90 "renderbuffer_manager.cc",
95 "shader_translator.h",
96 "shader_translator.cc",
97 "shader_translator_cache.h",
98 "shader_translator_cache.cc",
99 "stream_texture_manager_in_process_android.h",
100 "stream_texture_manager_in_process_android.cc",
101 "texture_definition.h",
102 "texture_definition.cc",
104 "texture_manager.cc",
105 "transfer_buffer_manager.cc",
106 "transfer_buffer_manager.h",
107 "vertex_array_manager.h",
108 "vertex_array_manager.cc",
109 "vertex_attrib_manager.h",
110 "vertex_attrib_manager.cc",
113 defines = [ "GPU_IMPLEMENTATION" ]
116 "//third_party/khronos:khronos_headers",
120 "//gpu/command_buffer/common",
125 "//base/third_party/dynamic_annotations",
127 "//third_party/angle:translator",
128 "//third_party/protobuf:protobuf_lite",
130 "//third_party/smhasher:cityhash",
136 if (ui_compositor_image_transport) {
137 include_dirs = [ "//third_party/khronos" ]
140 if (is_win || is_android || (is_linux && use_x11)) {
142 "async_pixel_transfer_manager_egl.cc",
143 "async_pixel_transfer_manager_egl.h",
147 if (is_android && !is_debug) {
148 # On Android optimize more since this component can be a bottleneck.
149 configs -= [ "//build/config/compiler:optimize" ]
150 configs += [ "//build/config/compiler:optimize_max" ]
154 proto_library("disk_cache_proto") {
155 sources = [ "disk_cache_proto.proto" ]