| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 component("compositor") { | 8 component("compositor") { |
| 9 sources = [ | 9 sources = [ |
| 10 "closure_animation_observer.cc", | 10 "closure_animation_observer.cc", |
| 11 "closure_animation_observer.h", | 11 "closure_animation_observer.h", |
| 12 "compositor.cc", | 12 "compositor.cc", |
| 13 "compositor.h", | 13 "compositor.h", |
| 14 "compositor_animation_observer.h", | 14 "compositor_animation_observer.h", |
| 15 "compositor_export.h", | 15 "compositor_export.h", |
| 16 "compositor_observer.h", | 16 "compositor_observer.h", |
| 17 "compositor_switches.cc", | 17 "compositor_switches.cc", |
| 18 "compositor_switches.h", | 18 "compositor_switches.h", |
| 19 "compositor_vsync_manager.cc", | |
| 20 "compositor_vsync_manager.h", | |
| 21 "debug_utils.cc", | 19 "debug_utils.cc", |
| 22 "debug_utils.h", | 20 "debug_utils.h", |
| 23 "dip_util.cc", | 21 "dip_util.cc", |
| 24 "dip_util.h", | 22 "dip_util.h", |
| 25 "float_animation_curve_adapter.cc", | 23 "float_animation_curve_adapter.cc", |
| 26 "float_animation_curve_adapter.h", | 24 "float_animation_curve_adapter.h", |
| 27 "layer.cc", | 25 "layer.cc", |
| 28 "layer.h", | 26 "layer.h", |
| 29 "layer_animation_delegate.h", | 27 "layer_animation_delegate.h", |
| 30 "layer_animation_element.cc", | 28 "layer_animation_element.cc", |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 "//ui/resources", | 73 "//ui/resources", |
| 76 "//third_party/angle:libEGL", | 74 "//third_party/angle:libEGL", |
| 77 "//third_party/angle:libGLESv2", | 75 "//third_party/angle:libGLESv2", |
| 78 ] | 76 ] |
| 79 } | 77 } |
| 80 } | 78 } |
| 81 | 79 |
| 82 source_set("test_support") { | 80 source_set("test_support") { |
| 83 testonly = true | 81 testonly = true |
| 84 sources = [ | 82 sources = [ |
| 83 "test/compositor_test_api.cc", |
| 84 "test/compositor_test_api.h", |
| 85 "test/context_factories_for_test.cc", | 85 "test/context_factories_for_test.cc", |
| 86 "test/context_factories_for_test.h", | 86 "test/context_factories_for_test.h", |
| 87 "test/draw_waiter_for_test.cc", | 87 "test/draw_waiter_for_test.cc", |
| 88 "test/draw_waiter_for_test.h", | 88 "test/draw_waiter_for_test.h", |
| 89 "test/in_process_context_factory.cc", | 89 "test/in_process_context_factory.cc", |
| 90 "test/in_process_context_factory.h", | 90 "test/in_process_context_factory.h", |
| 91 "test/in_process_context_provider.cc", | 91 "test/in_process_context_provider.cc", |
| 92 "test/in_process_context_provider.h", | 92 "test/in_process_context_provider.h", |
| 93 "test/layer_animator_test_controller.cc", | 93 "test/layer_animator_test_controller.cc", |
| 94 "test/layer_animator_test_controller.h", | 94 "test/layer_animator_test_controller.h", |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 if (use_ozone) { | 137 if (use_ozone) { |
| 138 sources += [ "test/test_compositor_host_ozone.cc" ] | 138 sources += [ "test/test_compositor_host_ozone.cc" ] |
| 139 } else if (use_x11) { | 139 } else if (use_x11) { |
| 140 sources += [ "test/test_compositor_host_x11.cc" ] | 140 sources += [ "test/test_compositor_host_x11.cc" ] |
| 141 } | 141 } |
| 142 } | 142 } |
| 143 | 143 |
| 144 if (!is_android) { | 144 if (!is_android) { |
| 145 test("compositor_unittests") { | 145 test("compositor_unittests") { |
| 146 sources = [ | 146 sources = [ |
| 147 "compositor_unittest.cc", |
| 147 "layer_animation_element_unittest.cc", | 148 "layer_animation_element_unittest.cc", |
| 148 "layer_animation_sequence_unittest.cc", | 149 "layer_animation_sequence_unittest.cc", |
| 149 "layer_animator_unittest.cc", | 150 "layer_animator_unittest.cc", |
| 150 "layer_owner_unittest.cc", | 151 "layer_owner_unittest.cc", |
| 151 "layer_unittest.cc", | 152 "layer_unittest.cc", |
| 152 "run_all_unittests.cc", | 153 "run_all_unittests.cc", |
| 153 "transform_animation_curve_adapter_unittest.cc", | 154 "transform_animation_curve_adapter_unittest.cc", |
| 154 ] | 155 ] |
| 155 | 156 |
| 156 deps = [ | 157 deps = [ |
| (...skipping 11 matching lines...) Expand all Loading... |
| 168 "//ui/gfx/geometry", | 169 "//ui/gfx/geometry", |
| 169 "//ui/gl", | 170 "//ui/gl", |
| 170 "//ui/resources", | 171 "//ui/resources", |
| 171 ] | 172 ] |
| 172 | 173 |
| 173 if (is_linux) { | 174 if (is_linux) { |
| 174 deps += [ "//third_party/mesa:osmesa" ] | 175 deps += [ "//third_party/mesa:osmesa" ] |
| 175 } | 176 } |
| 176 } | 177 } |
| 177 } | 178 } |
| OLD | NEW |