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("//testing/test.gni")
8 component("compositor") {
10 "clip_transform_recorder.cc",
11 "clip_transform_recorder.h",
12 "closure_animation_observer.cc",
13 "closure_animation_observer.h",
14 "compositing_recorder.cc",
15 "compositing_recorder.h",
18 "compositor_animation_observer.h",
19 "compositor_export.h",
20 "compositor_observer.h",
21 "compositor_switches.cc",
22 "compositor_switches.h",
23 "compositor_vsync_manager.cc",
24 "compositor_vsync_manager.h",
29 "float_animation_curve_adapter.cc",
30 "float_animation_curve_adapter.h",
33 "layer_animation_delegate.h",
34 "layer_animation_element.cc",
35 "layer_animation_element.h",
36 "layer_animation_observer.cc",
37 "layer_animation_observer.h",
38 "layer_animation_sequence.cc",
39 "layer_animation_sequence.h",
42 "layer_animator_collection.cc",
43 "layer_animator_collection.h",
47 "layer_tree_owner.cc",
56 "scoped_animation_duration_scale_mode.cc",
57 "scoped_animation_duration_scale_mode.h",
58 "scoped_layer_animation_settings.cc",
59 "scoped_layer_animation_settings.h",
60 "transform_animation_curve_adapter.cc",
61 "transform_animation_curve_adapter.h",
64 defines = [ "COMPOSITOR_IMPLEMENTATION" ]
68 "//base/third_party/dynamic_annotations",
71 "//cc/surfaces:surface_id",
72 "//gpu/command_buffer/common",
79 if (is_win && use_aura) {
80 # TODO(sky): before we make this real need to remove
81 # IDR_BITMAP_BRUSH_IMAGE.
84 "//third_party/angle:libEGL",
85 "//third_party/angle:libGLESv2",
90 source_set("test_support") {
93 "test/context_factories_for_test.cc",
94 "test/context_factories_for_test.h",
95 "test/draw_waiter_for_test.cc",
96 "test/draw_waiter_for_test.h",
97 "test/in_process_context_factory.cc",
98 "test/in_process_context_factory.h",
99 "test/in_process_context_provider.cc",
100 "test/in_process_context_provider.h",
101 "test/layer_animator_test_controller.cc",
102 "test/layer_animator_test_controller.h",
103 "test/test_compositor_host.h",
104 "test/test_compositor_host_mac.mm",
105 "test/test_compositor_host_win.cc",
106 "test/test_layer_animation_delegate.cc",
107 "test/test_layer_animation_delegate.h",
108 "test/test_layer_animation_observer.cc",
109 "test/test_layer_animation_observer.h",
110 "test/test_layers.cc",
111 "test/test_layers.h",
112 "test/test_suite.cc",
114 "test/test_utils.cc",
122 "//base/test:test_support",
126 "//gpu/command_buffer/client:gl_in_process_context",
127 "//gpu/command_buffer/client:gles2_c_lib",
128 "//gpu/command_buffer/client:gles2_implementation",
129 "//gpu/command_buffer/common:gles2_utils",
130 "//gpu/skia_bindings",
133 "//third_party/WebKit/public:blink_minimal",
141 configs += [ "//build/config/linux:x11" ]
142 deps += [ "//ui/gfx/x" ]
146 sources += [ "test/test_compositor_host_ozone.cc" ]
147 } else if (use_x11) {
148 sources += [ "test/test_compositor_host_x11.cc" ]
153 test("compositor_unittests") {
155 "compositor_unittest.cc",
156 "layer_animation_element_unittest.cc",
157 "layer_animation_sequence_unittest.cc",
158 "layer_animator_unittest.cc",
159 "layer_owner_unittest.cc",
161 "run_all_unittests.cc",
162 "transform_animation_curve_adapter_unittest.cc",
170 "//base/test:test_support",
184 deps += [ "//third_party/mesa:osmesa" ]