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")
7 component("compositor") {
9 "closure_animation_observer.cc",
10 "closure_animation_observer.h",
13 "compositor_animation_observer.h",
14 "compositor_export.h",
15 "compositor_observer.cc",
16 "compositor_observer.h",
17 "compositor_vsync_manager.cc",
18 "compositor_vsync_manager.h",
19 "compositor_switches.cc",
20 "compositor_switches.h",
25 "float_animation_curve_adapter.cc",
26 "float_animation_curve_adapter.h",
29 "layer_animation_delegate.h",
30 "layer_animation_element.cc",
31 "layer_animation_element.h",
32 "layer_animation_observer.cc",
33 "layer_animation_observer.h",
34 "layer_animation_sequence.cc",
35 "layer_animation_sequence.h",
38 "layer_animator_collection.cc",
39 "layer_animator_collection.h",
43 "layer_tree_owner.cc",
47 "scoped_animation_duration_scale_mode.cc",
48 "scoped_animation_duration_scale_mode.h",
49 "scoped_layer_animation_settings.cc",
50 "scoped_layer_animation_settings.h",
51 "transform_animation_curve_adapter.cc",
52 "transform_animation_curve_adapter.h",
55 defines = [ "COMPOSITOR_IMPLEMENTATION" ]
59 "//base/third_party/dynamic_annotations",
62 "//gpu/command_buffer/common",
69 if (is_win && use_aura) {
70 # TODO(sky): before we make this real need to remove
71 # IDR_BITMAP_BRUSH_IMAGE.
74 "//third_party/angle:libEGL",
75 "//third_party/angle:libGLESv2",
80 source_set("test_support") {
83 "test/context_factories_for_test.cc",
84 "test/context_factories_for_test.h",
85 "test/draw_waiter_for_test.cc",
86 "test/draw_waiter_for_test.h",
87 "test/in_process_context_factory.cc",
88 "test/in_process_context_factory.h",
89 "test/layer_animator_test_controller.cc",
90 "test/layer_animator_test_controller.h",
91 "test/test_compositor_host.h",
92 "test/test_compositor_host_mac.mm",
93 "test/test_compositor_host_win.cc",
94 "test/test_layer_animation_delegate.cc",
95 "test/test_layer_animation_delegate.h",
96 "test/test_layer_animation_observer.cc",
97 "test/test_layer_animation_observer.h",
98 "test/test_layers.cc",
100 "test/test_suite.cc",
102 "test/test_utils.cc",
110 "//base/test:test_support",
116 "//third_party/WebKit/public:blink_minimal",
121 "//webkit/common/gpu",
125 configs += [ "//build/config/linux:x11" ]
126 deps += [ "//ui/gfx/x" ]
130 sources += [ "test/test_compositor_host_ozone.cc" ]
131 } else if (use_x11) {
132 sources += [ "test/test_compositor_host_x11.cc" ]
136 # TODO(GYP) enable this when all dependencies are complete and it links.
137 #test("compositor_unittests") {
139 # "layer_animation_element_unittest.cc",
140 # "layer_animation_sequence_unittest.cc",
141 # "layer_animator_unittest.cc",
142 # "layer_owner_unittest.cc",
143 # "layer_unittest.cc",
144 # "run_all_unittests.cc",
145 # "transform_animation_curve_adapter_unittest.cc",
152 # "//base/allocator",
153 # "//base/test:test_support",
155 # "//cc:test_support",
160 # "//ui/gfx/geometry",
166 # deps += [ "//third_party/mesa:osmesa" ]