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",
55 "scoped_animation_duration_scale_mode.cc",
56 "scoped_animation_duration_scale_mode.h",
57 "scoped_layer_animation_settings.cc",
58 "scoped_layer_animation_settings.h",
59 "transform_animation_curve_adapter.cc",
60 "transform_animation_curve_adapter.h",
63 defines = [ "COMPOSITOR_IMPLEMENTATION" ]
67 "//base/third_party/dynamic_annotations",
70 "//cc/surfaces:surface_id",
71 "//gpu/command_buffer/common",
78 if (is_win && use_aura) {
79 # TODO(sky): before we make this real need to remove
80 # IDR_BITMAP_BRUSH_IMAGE.
83 "//third_party/angle:libEGL",
84 "//third_party/angle:libGLESv2",
89 source_set("test_support") {
92 "test/context_factories_for_test.cc",
93 "test/context_factories_for_test.h",
94 "test/draw_waiter_for_test.cc",
95 "test/draw_waiter_for_test.h",
96 "test/in_process_context_factory.cc",
97 "test/in_process_context_factory.h",
98 "test/in_process_context_provider.cc",
99 "test/in_process_context_provider.h",
100 "test/layer_animator_test_controller.cc",
101 "test/layer_animator_test_controller.h",
102 "test/test_compositor_host.h",
103 "test/test_compositor_host_mac.mm",
104 "test/test_compositor_host_win.cc",
105 "test/test_layer_animation_delegate.cc",
106 "test/test_layer_animation_delegate.h",
107 "test/test_layer_animation_observer.cc",
108 "test/test_layer_animation_observer.h",
109 "test/test_layers.cc",
110 "test/test_layers.h",
111 "test/test_suite.cc",
113 "test/test_utils.cc",
121 "//base/test:test_support",
125 "//gpu/command_buffer/client:gl_in_process_context",
126 "//gpu/command_buffer/client:gles2_c_lib",
127 "//gpu/command_buffer/client:gles2_implementation",
128 "//gpu/command_buffer/common:gles2_utils",
129 "//gpu/skia_bindings",
132 "//third_party/WebKit/public:blink_minimal",
140 configs += [ "//build/config/linux:x11" ]
141 deps += [ "//ui/gfx/x" ]
145 sources += [ "test/test_compositor_host_ozone.cc" ]
146 } else if (use_x11) {
147 sources += [ "test/test_compositor_host_x11.cc" ]
152 test("compositor_unittests") {
154 "compositor_unittest.cc",
155 "layer_animation_element_unittest.cc",
156 "layer_animation_sequence_unittest.cc",
157 "layer_animator_unittest.cc",
158 "layer_owner_unittest.cc",
160 "run_all_unittests.cc",
161 "transform_animation_curve_adapter_unittest.cc",
169 "//base/test:test_support",
183 deps += [ "//third_party/mesa:osmesa" ]