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") {
11 "compositor_export.h",
12 "compositor_observer.h",
13 "compositor_vsync_manager.cc",
14 "compositor_vsync_manager.h",
15 "compositor_switches.cc",
16 "compositor_switches.h",
21 "float_animation_curve_adapter.cc",
22 "float_animation_curve_adapter.h",
25 "layer_animation_delegate.h",
26 "layer_animation_element.cc",
27 "layer_animation_element.h",
28 "layer_animation_observer.cc",
29 "layer_animation_observer.h",
30 "layer_animation_sequence.cc",
31 "layer_animation_sequence.h",
34 "layer_animator_collection.cc",
35 "layer_animator_collection.h",
39 "layer_tree_owner.cc",
43 "scoped_animation_duration_scale_mode.cc",
44 "scoped_animation_duration_scale_mode.h",
45 "scoped_layer_animation_settings.cc",
46 "scoped_layer_animation_settings.h",
47 "transform_animation_curve_adapter.cc",
48 "transform_animation_curve_adapter.h",
51 defines = [ "COMPOSITOR_IMPLEMENTATION" ]
55 "//base/third_party/dynamic_annotations",
57 "//gpu/command_buffer/common",
64 if (is_win && use_aura) {
65 # TODO(sky): before we make this real need to remove
66 # IDR_BITMAP_BRUSH_IMAGE.
69 "//third_party/angle:libEGL",
70 "//third_party/angle:libGLESv2",
75 source_set("test_support") {
77 "test/context_factories_for_test.cc",
78 "test/context_factories_for_test.h",
79 "test/draw_waiter_for_test.cc",
80 "test/draw_waiter_for_test.h",
81 "test/in_process_context_factory.cc",
82 "test/in_process_context_factory.h",
83 "test/layer_animator_test_controller.cc",
84 "test/layer_animator_test_controller.h",
85 "test/test_compositor_host.h",
86 "test/test_compositor_host_mac.mm",
87 "test/test_compositor_host_win.cc",
88 "test/test_layer_animation_delegate.cc",
89 "test/test_layer_animation_delegate.h",
90 "test/test_layer_animation_observer.cc",
91 "test/test_layer_animation_observer.h",
92 "test/test_layers.cc",
107 "//third_party/WebKit/public:blink_minimal",
112 "//webkit/common/gpu",
116 configs += [ "//build/config/linux:x11" ]
117 deps += [ "//ui/gfx/x" ]
121 sources += [ "test/test_compositor_host_ozone.cc" ]
122 } else if (use_x11) {
123 sources += [ "test/test_compositor_host_x11.cc" ]
127 # TODO(GYP) enable this when all dependencies are complete and it links.
128 #test("compositor_unittests") {
130 # "layer_animation_element_unittest.cc",
131 # "layer_animation_sequence_unittest.cc",
132 # "layer_animator_unittest.cc",
133 # "layer_owner_unittest.cc",
134 # "layer_unittest.cc",
135 # "run_all_unittests.cc",
136 # "transform_animation_curve_adapter_unittest.cc",
143 # "//base/allocator",
144 # "//base/test:test_support",
146 # "//cc:test_support",
151 # "//ui/gfx/geometry",
157 # deps += [ "//third_party/mesa:osmesa" ]