Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: webrtc/modules/desktop_capture/BUILD.gn

Issue 2500883004: Add DesktopFrame rotation functions (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("../../build/webrtc.gni") 10 import("../../build/webrtc.gni")
11 11
12 use_desktop_capture_differ_sse2 = 12 use_desktop_capture_differ_sse2 =
13 !is_ios && (current_cpu == "x86" || current_cpu == "x64") 13 !is_ios && (current_cpu == "x86" || current_cpu == "x64")
14 14
15 rtc_static_library("primitives") { 15 rtc_static_library("primitives") {
16 sources = [ 16 sources = [
17 "desktop_capture_types.h", 17 "desktop_capture_types.h",
18 "desktop_frame.cc", 18 "desktop_frame.cc",
19 "desktop_frame.h", 19 "desktop_frame.h",
20 "desktop_geometry.cc", 20 "desktop_geometry.cc",
21 "desktop_geometry.h", 21 "desktop_geometry.h",
22 "desktop_region.cc", 22 "desktop_region.cc",
23 "desktop_region.h", 23 "desktop_region.h",
24 "rgba_color.cc",
25 "rgba_color.h",
24 "shared_desktop_frame.cc", 26 "shared_desktop_frame.cc",
25 "shared_desktop_frame.h", 27 "shared_desktop_frame.h",
26 ] 28 ]
27 29
28 deps = [ 30 deps = [
29 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. 31 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806.
30 ] 32 ]
31 } 33 }
32 34
33 if (rtc_include_tests) { 35 if (rtc_include_tests) {
34 source_set("rgba_color") {
35 testonly = true
36
37 public_deps = [
38 ":desktop_capture",
39 ]
40
41 sources = [
42 "rgba_color.cc",
43 "rgba_color.h",
44 ]
45 }
46
47 source_set("screen_drawer") { 36 source_set("screen_drawer") {
48 testonly = true 37 testonly = true
49 38
50 public_deps = [ 39 public_deps = [
51 ":rgba_color", 40 ":primitives",
52 ] 41 ]
53 42
54 sources = [ 43 sources = [
55 "screen_drawer.cc", 44 "screen_drawer.cc",
56 "screen_drawer.h", 45 "screen_drawer.h",
57 "screen_drawer_linux.cc", 46 "screen_drawer_linux.cc",
58 "screen_drawer_mac.cc", 47 "screen_drawer_mac.cc",
59 "screen_drawer_win.cc", 48 "screen_drawer_win.cc",
60 ] 49 ]
61 } 50 }
62 51
63 source_set("desktop_capture_mock") { 52 source_set("desktop_capture_mock") {
64 testonly = true 53 testonly = true
65 54
66 public_deps = [ 55 public_deps = [
67 ":desktop_capture", 56 ":desktop_capture",
68 ":rgba_color", 57 ":primitives",
69 "//testing/gmock", 58 "//testing/gmock",
70 ] 59 ]
71 60
72 sources = [ 61 sources = [
73 "desktop_frame_generator.cc", 62 "desktop_frame_generator.cc",
74 "desktop_frame_generator.h", 63 "desktop_frame_generator.h",
75 "fake_desktop_capturer.cc", 64 "fake_desktop_capturer.cc",
76 "fake_desktop_capturer.h", 65 "fake_desktop_capturer.h",
77 "mock_desktop_capturer_callback.cc", 66 "mock_desktop_capturer_callback.cc",
78 "mock_desktop_capturer_callback.h", 67 "mock_desktop_capturer_callback.h",
79 "screen_capturer_mock_objects.h", 68 "screen_capturer_mock_objects.h",
80 ] 69 ]
81 } 70 }
82 } 71 }
83 72
84 rtc_static_library("desktop_capture") { 73 rtc_static_library("desktop_capture") {
85 sources = [ 74 sources = [
86 "cropped_desktop_frame.cc", 75 "cropped_desktop_frame.cc",
87 "cropped_desktop_frame.h", 76 "cropped_desktop_frame.h",
88 "cropping_window_capturer.cc", 77 "cropping_window_capturer.cc",
89 "cropping_window_capturer.h", 78 "cropping_window_capturer.h",
90 "cropping_window_capturer_win.cc", 79 "cropping_window_capturer_win.cc",
91 "desktop_and_cursor_composer.cc", 80 "desktop_and_cursor_composer.cc",
92 "desktop_and_cursor_composer.h", 81 "desktop_and_cursor_composer.h",
93 "desktop_capture_options.cc", 82 "desktop_capture_options.cc",
94 "desktop_capture_options.h", 83 "desktop_capture_options.h",
95 "desktop_capturer.cc", 84 "desktop_capturer.cc",
96 "desktop_capturer.h", 85 "desktop_capturer.h",
86 "desktop_frame_rotator.cc",
87 "desktop_frame_rotator.h",
97 "desktop_frame_win.cc", 88 "desktop_frame_win.cc",
98 "desktop_frame_win.h", 89 "desktop_frame_win.h",
99 "mac/desktop_configuration.h", 90 "mac/desktop_configuration.h",
100 "mac/desktop_configuration.mm", 91 "mac/desktop_configuration.mm",
101 "mac/desktop_configuration_monitor.cc", 92 "mac/desktop_configuration_monitor.cc",
102 "mac/desktop_configuration_monitor.h", 93 "mac/desktop_configuration_monitor.h",
103 "mac/full_screen_chrome_window_detector.cc", 94 "mac/full_screen_chrome_window_detector.cc",
104 "mac/full_screen_chrome_window_detector.h", 95 "mac/full_screen_chrome_window_detector.h",
105 "mac/scoped_pixel_buffer_object.cc", 96 "mac/scoped_pixel_buffer_object.cc",
106 "mac/scoped_pixel_buffer_object.h", 97 "mac/scoped_pixel_buffer_object.h",
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 sources = [ 210 sources = [
220 "differ_vector_sse2.cc", 211 "differ_vector_sse2.cc",
221 "differ_vector_sse2.h", 212 "differ_vector_sse2.h",
222 ] 213 ]
223 214
224 if (is_posix) { 215 if (is_posix) {
225 cflags = [ "-msse2" ] 216 cflags = [ "-msse2" ]
226 } 217 }
227 } 218 }
228 } 219 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698