| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 import("//build/config/ui.gni") | |
| 6 | |
| 7 component("compositor") { | |
| 8 sources = [ | |
| 9 "closure_animation_observer.cc", | |
| 10 "closure_animation_observer.h", | |
| 11 "compositor.cc", | |
| 12 "compositor.h", | |
| 13 "compositor_animation_observer.h", | |
| 14 "compositor_export.h", | |
| 15 "compositor_observer.cc", | |
| 16 "compositor_observer.h", | |
| 17 "compositor_vsync_manager.cc", | |
| 18 "compositor_vsync_manager.h", | |
| 19 "compositor_switches.cc", | |
| 20 "compositor_switches.h", | |
| 21 "debug_utils.cc", | |
| 22 "debug_utils.h", | |
| 23 "dip_util.cc", | |
| 24 "dip_util.h", | |
| 25 "float_animation_curve_adapter.cc", | |
| 26 "float_animation_curve_adapter.h", | |
| 27 "layer.cc", | |
| 28 "layer.h", | |
| 29 "layer_animation_delegate.h", | |
| 30 "layer_animation_element.cc", | |
| 31 "layer_animation_element.h", | |
| 32 "layer_animation_observer.cc", | |
| 33 "layer_animation_observer.h", | |
| 34 "layer_animation_sequence.cc", | |
| 35 "layer_animation_sequence.h", | |
| 36 "layer_animator.cc", | |
| 37 "layer_animator.h", | |
| 38 "layer_animator_collection.cc", | |
| 39 "layer_animator_collection.h", | |
| 40 "layer_delegate.h", | |
| 41 "layer_owner.cc", | |
| 42 "layer_owner.h", | |
| 43 "layer_tree_owner.cc", | |
| 44 "layer_tree_owner.h", | |
| 45 "layer_type.h", | |
| 46 "reflector.h", | |
| 47 "scoped_animation_duration_scale_mode.cc", | |
| 48 "scoped_animation_duration_scale_mode.h", | |
| 49 "scoped_layer_animation_settings.cc", | |
| 50 "scoped_layer_animation_settings.h", | |
| 51 "transform_animation_curve_adapter.cc", | |
| 52 "transform_animation_curve_adapter.h", | |
| 53 ] | |
| 54 | |
| 55 defines = [ "COMPOSITOR_IMPLEMENTATION" ] | |
| 56 | |
| 57 deps = [ | |
| 58 "//base", | |
| 59 "//base/third_party/dynamic_annotations", | |
| 60 "//cc", | |
| 61 "//cc/surfaces", | |
| 62 "//gpu/command_buffer/common", | |
| 63 "//skia", | |
| 64 "//ui/gfx", | |
| 65 "//ui/gfx/geometry", | |
| 66 "//ui/gl", | |
| 67 ] | |
| 68 | |
| 69 if (is_win && use_aura) { | |
| 70 # TODO(sky): before we make this real need to remove | |
| 71 # IDR_BITMAP_BRUSH_IMAGE. | |
| 72 deps += [ | |
| 73 "//ui/resources", | |
| 74 "//third_party/angle:libEGL", | |
| 75 "//third_party/angle:libGLESv2", | |
| 76 ] | |
| 77 } | |
| 78 } | |
| 79 | |
| 80 if (false) { | |
| 81 source_set("test_support") { | |
| 82 testonly = true | |
| 83 sources = [ | |
| 84 "test/context_factories_for_test.cc", | |
| 85 "test/context_factories_for_test.h", | |
| 86 "test/draw_waiter_for_test.cc", | |
| 87 "test/draw_waiter_for_test.h", | |
| 88 "test/in_process_context_factory.cc", | |
| 89 "test/in_process_context_factory.h", | |
| 90 "test/layer_animator_test_controller.cc", | |
| 91 "test/layer_animator_test_controller.h", | |
| 92 "test/test_compositor_host.h", | |
| 93 "test/test_compositor_host_mac.mm", | |
| 94 "test/test_compositor_host_win.cc", | |
| 95 "test/test_layer_animation_delegate.cc", | |
| 96 "test/test_layer_animation_delegate.h", | |
| 97 "test/test_layer_animation_observer.cc", | |
| 98 "test/test_layer_animation_observer.h", | |
| 99 "test/test_layers.cc", | |
| 100 "test/test_layers.h", | |
| 101 "test/test_suite.cc", | |
| 102 "test/test_suite.h", | |
| 103 "test/test_utils.cc", | |
| 104 "test/test_utils.h", | |
| 105 ] | |
| 106 | |
| 107 public_deps = [ | |
| 108 ":compositor", | |
| 109 ] | |
| 110 deps = [ | |
| 111 "//base/test:test_support", | |
| 112 "//cc", | |
| 113 "//cc/surfaces", | |
| 114 "//cc:test_support", | |
| 115 "//skia", | |
| 116 "//testing/gtest", | |
| 117 "//third_party/WebKit/public:blink_minimal", | |
| 118 "//ui/base", | |
| 119 "//ui/gfx", | |
| 120 "//ui/gfx/geometry", | |
| 121 "//ui/gl", | |
| 122 "//webkit/common/gpu", | |
| 123 ] | |
| 124 | |
| 125 if (use_x11) { | |
| 126 configs += [ "//build/config/linux:x11" ] | |
| 127 deps += [ "//ui/gfx/x" ] | |
| 128 } | |
| 129 | |
| 130 if (use_ozone) { | |
| 131 sources += [ "test/test_compositor_host_ozone.cc" ] | |
| 132 } else if (use_x11) { | |
| 133 sources += [ "test/test_compositor_host_x11.cc" ] | |
| 134 } | |
| 135 } | |
| 136 } # if (false) | |
| 137 # TODO(GYP) enable this when all dependencies are complete and it links. | |
| 138 #test("compositor_unittests") { | |
| 139 # sources = [ | |
| 140 # "layer_animation_element_unittest.cc", | |
| 141 # "layer_animation_sequence_unittest.cc", | |
| 142 # "layer_animator_unittest.cc", | |
| 143 # "layer_owner_unittest.cc", | |
| 144 # "layer_unittest.cc", | |
| 145 # "run_all_unittests.cc", | |
| 146 # "transform_animation_curve_adapter_unittest.cc", | |
| 147 # ] | |
| 148 # | |
| 149 # deps = [ | |
| 150 # ":compositor", | |
| 151 # ":test_support", | |
| 152 # "//base", | |
| 153 # "//base/allocator", | |
| 154 # "//base/test:test_support", | |
| 155 # "//cc", | |
| 156 # "//cc:test_support", | |
| 157 # "//skia", | |
| 158 # "//testing/gtest", | |
| 159 # "//ui/base", | |
| 160 # "//ui/gfx", | |
| 161 # "//ui/gfx/geometry", | |
| 162 # "//ui/gl", | |
| 163 # "//ui/resources", | |
| 164 # ] | |
| 165 # | |
| 166 # if (is_linux) { | |
| 167 # deps += [ "//third_party/mesa:osmesa" ] | |
| 168 # } | |
| 169 #} | |
| OLD | NEW |