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",
37 "layer_tree_owner.cc",
41 "scoped_animation_duration_scale_mode.cc",
42 "scoped_animation_duration_scale_mode.h",
43 "scoped_layer_animation_settings.cc",
44 "scoped_layer_animation_settings.h",
45 "transform_animation_curve_adapter.cc",
46 "transform_animation_curve_adapter.h",
49 defines = [ "COMPOSITOR_IMPLEMENTATION" ]
53 "//base/third_party/dynamic_annotations",
55 "//gpu/command_buffer/common",
62 if (is_win && use_aura) {
63 # TODO(sky): before we make this real need to remove
64 # IDR_BITMAP_BRUSH_IMAGE.
67 "//third_party/angle:libEGL",
68 "//third_party/angle:libGLESv2",
73 source_set("test_support") {
75 "test/context_factories_for_test.cc",
76 "test/context_factories_for_test.h",
77 "test/draw_waiter_for_test.cc",
78 "test/draw_waiter_for_test.h",
79 "test/in_process_context_factory.cc",
80 "test/in_process_context_factory.h",
81 "test/layer_animator_test_controller.cc",
82 "test/layer_animator_test_controller.h",
83 "test/test_compositor_host.h",
84 "test/test_compositor_host_mac.mm",
85 "test/test_compositor_host_ozone.cc",
86 "test/test_compositor_host_win.cc",
87 "test/test_compositor_host_x11.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 # TODO(GYP) enable this when all dependencies are complete and it links.
122 #test("compositor_unittests") {
124 # "layer_animation_element_unittest.cc",
125 # "layer_animation_sequence_unittest.cc",
126 # "layer_animator_unittest.cc",
127 # "layer_owner_unittest.cc",
128 # "layer_unittest.cc",
129 # "run_all_unittests.cc",
130 # "transform_animation_curve_adapter_unittest.cc",
137 # "//base/allocator",
138 # "//base/test:test_support",
140 # "//cc:test_support",
145 # "//ui/gfx/geometry",
151 # #deps += [ "//third_party/mesa:osmesa" ] # TODO(GYP)