| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("display_compositor") { | 8 component("display_compositor") { |
| 9 sources = [ | 9 sources = [ |
| 10 "buffer_queue.cc", | 10 "buffer_queue.cc", |
| 11 "buffer_queue.h", | 11 "buffer_queue.h", |
| 12 "compositor_overlay_candidate_validator.h", | 12 "compositor_overlay_candidate_validator.h", |
| 13 "display_compositor.cc", |
| 14 "display_compositor.h", |
| 13 "display_compositor_export.h", | 15 "display_compositor_export.h", |
| 14 "gl_helper.cc", | 16 "gl_helper.cc", |
| 15 "gl_helper.h", | 17 "gl_helper.h", |
| 16 "gl_helper_readback_support.cc", | 18 "gl_helper_readback_support.cc", |
| 17 "gl_helper_readback_support.h", | 19 "gl_helper_readback_support.h", |
| 18 "gl_helper_scaling.cc", | 20 "gl_helper_scaling.cc", |
| 19 "gl_helper_scaling.h", | 21 "gl_helper_scaling.h", |
| 20 "gpu_compositor_frame_sink.cc", | 22 "gpu_compositor_frame_sink.cc", |
| 21 "gpu_compositor_frame_sink.h", | 23 "gpu_compositor_frame_sink.h", |
| 22 "gpu_compositor_frame_sink_delegate.h", | 24 "gpu_compositor_frame_sink_delegate.h", |
| 23 "gpu_display_compositor_frame_sink.cc", | 25 "gpu_display_compositor_frame_sink.cc", |
| 24 "gpu_display_compositor_frame_sink.h", | 26 "gpu_display_compositor_frame_sink.h", |
| 25 "gpu_offscreen_compositor_frame_sink.cc", | 27 "gpu_offscreen_compositor_frame_sink.cc", |
| 26 "gpu_offscreen_compositor_frame_sink.h", | 28 "gpu_offscreen_compositor_frame_sink.h", |
| 27 ] | 29 ] |
| 28 | 30 |
| 29 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 31 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 30 | 32 |
| 31 defines = [ "DISPLAY_COMPOSITOR_IMPLEMENTATION" ] | 33 defines = [ "DISPLAY_COMPOSITOR_IMPLEMENTATION" ] |
| 32 | 34 |
| 33 deps = [ | 35 public_deps = [ |
| 34 "//base", | 36 "//base", |
| 35 "//cc", | 37 "//cc", |
| 36 "//cc/ipc:interfaces", | 38 "//cc/ipc:interfaces", |
| 37 "//cc/surfaces", | 39 "//cc/surfaces", |
| 38 "//gpu/command_buffer/client", | 40 "//gpu/command_buffer/client", |
| 39 "//gpu/command_buffer/client:gles2_interface", | 41 "//gpu/command_buffer/client:gles2_interface", |
| 40 "//gpu/command_buffer/common", | 42 "//gpu/command_buffer/common", |
| 41 "//gpu/ipc/common:surface_handle_type", | 43 "//gpu/ipc/common:surface_handle_type", |
| 42 "//skia", | 44 "//skia", |
| 43 "//ui/display/types", | 45 "//ui/display/types", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 57 "compositor_overlay_candidate_validator_android.h", | 59 "compositor_overlay_candidate_validator_android.h", |
| 58 ] | 60 ] |
| 59 } | 61 } |
| 60 | 62 |
| 61 if (use_ozone) { | 63 if (use_ozone) { |
| 62 sources += [ | 64 sources += [ |
| 63 "compositor_overlay_candidate_validator_ozone.cc", | 65 "compositor_overlay_candidate_validator_ozone.cc", |
| 64 "compositor_overlay_candidate_validator_ozone.h", | 66 "compositor_overlay_candidate_validator_ozone.h", |
| 65 ] | 67 ] |
| 66 | 68 |
| 67 deps += [ "//ui/ozone" ] | 69 public_deps += [ "//ui/ozone" ] |
| 68 } | 70 } |
| 69 | 71 |
| 70 if (is_win) { | 72 if (is_win) { |
| 71 sources += [ | 73 sources += [ |
| 72 "compositor_overlay_candidate_validator_win.cc", | 74 "compositor_overlay_candidate_validator_win.cc", |
| 73 "compositor_overlay_candidate_validator_win.h", | 75 "compositor_overlay_candidate_validator_win.h", |
| 74 ] | 76 ] |
| 75 } | 77 } |
| 76 } | 78 } |
| 77 | 79 |
| 78 # These are part of the components_unittests build target. | 80 # These are part of the components_unittests build target. |
| 79 source_set("unit_tests") { | 81 source_set("unit_tests") { |
| 80 testonly = true | 82 testonly = true |
| 81 sources = [ | 83 sources = [ |
| 82 "buffer_queue_unittest.cc", | 84 "buffer_queue_unittest.cc", |
| 83 ] | 85 ] |
| 84 | 86 |
| 85 if (!use_aura && !is_mac) { | 87 if (!use_aura && !is_mac) { |
| 86 sources -= [ "buffer_queue_unittest.cc" ] | 88 sources -= [ "buffer_queue_unittest.cc" ] |
| 87 } | 89 } |
| 88 | 90 |
| 89 configs += [ | 91 configs += [ |
| 90 "//build/config/compiler:no_size_t_to_int_warning", | 92 "//build/config/compiler:no_size_t_to_int_warning", |
| 91 "//third_party/khronos:khronos_headers", | 93 "//third_party/khronos:khronos_headers", |
| 92 ] | 94 ] |
| 93 | 95 |
| 94 deps = [ | 96 public_deps = [ |
| 95 ":display_compositor", | 97 ":display_compositor", |
| 96 "//base", | 98 "//base", |
| 97 "//base/test:test_support", | 99 "//base/test:test_support", |
| 98 "//cc:test_support", | 100 "//cc:test_support", |
| 99 "//gpu/command_buffer/client", | 101 "//gpu/command_buffer/client", |
| 100 "//gpu/command_buffer/client:gles2_implementation", | 102 "//gpu/command_buffer/client:gles2_implementation", |
| 101 "//gpu/ipc:gl_in_process_context", | 103 "//gpu/ipc:gl_in_process_context", |
| 102 "//media", | 104 "//media", |
| 103 "//skia", | 105 "//skia", |
| 104 "//testing/gmock", | 106 "//testing/gmock", |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 "//skia", | 173 "//skia", |
| 172 "//testing/gmock", | 174 "//testing/gmock", |
| 173 "//testing/gtest", | 175 "//testing/gtest", |
| 174 "//ui/gl:test_support", | 176 "//ui/gl:test_support", |
| 175 ] | 177 ] |
| 176 | 178 |
| 177 data_deps = [ | 179 data_deps = [ |
| 178 "//third_party/mesa:osmesa", | 180 "//third_party/mesa:osmesa", |
| 179 ] | 181 ] |
| 180 } | 182 } |
| OLD | NEW |