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

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

Issue 2709523003: BlankDetectorDesktopCapturerWrapper to detect a blank DesktopFrame (Closed)
Patch Set: Remove HISTOGRAM Created 3 years, 9 months 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
« no previous file with comments | « no previous file | webrtc/modules/desktop_capture/blank_detector_desktop_capturer_wrapper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("../../webrtc.gni") 10 import("../../webrtc.gni")
(...skipping 26 matching lines...) Expand all
37 testonly = true 37 testonly = true
38 sources = [] 38 sources = []
39 deps = [] 39 deps = []
40 if (rtc_desktop_capture_supported) { 40 if (rtc_desktop_capture_supported) {
41 deps += [ 41 deps += [
42 ":desktop_capture_mock", 42 ":desktop_capture_mock",
43 ":primitives", 43 ":primitives",
44 ":screen_drawer", 44 ":screen_drawer",
45 "../../base:rtc_base", 45 "../../base:rtc_base",
46 "../../base:rtc_base_approved", 46 "../../base:rtc_base_approved",
47 "../../system_wrappers:system_wrappers", 47 "../../system_wrappers",
48 "../../test:test_support", 48 "../../test:test_support",
49 "../../test:video_test_support", 49 "../../test:video_test_support",
50 ] 50 ]
51 sources += [ 51 sources += [
52 "screen_capturer_integration_test.cc", 52 "screen_capturer_integration_test.cc",
53 "screen_drawer_unittest.cc", 53 "screen_drawer_unittest.cc",
54 ] 54 ]
55 } 55 }
56 } 56 }
57 57
58 rtc_source_set("desktop_capture_unittests") { 58 rtc_source_set("desktop_capture_unittests") {
59 testonly = true 59 testonly = true
60 sources = [ 60 sources = [
61 "blank_detector_desktop_capturer_wrapper_unittest.cc",
61 "desktop_and_cursor_composer_unittest.cc", 62 "desktop_and_cursor_composer_unittest.cc",
62 "desktop_capturer_differ_wrapper_unittest.cc", 63 "desktop_capturer_differ_wrapper_unittest.cc",
63 "desktop_frame_rotation_unittest.cc", 64 "desktop_frame_rotation_unittest.cc",
64 "desktop_region_unittest.cc", 65 "desktop_region_unittest.cc",
65 "differ_block_unittest.cc", 66 "differ_block_unittest.cc",
66 "fallback_desktop_capturer_wrapper_unittest.cc", 67 "fallback_desktop_capturer_wrapper_unittest.cc",
67 "mouse_cursor_monitor_unittest.cc", 68 "mouse_cursor_monitor_unittest.cc",
68 "rgba_color_unittest.cc", 69 "rgba_color_unittest.cc",
69 "test_utils.cc", 70 "test_utils.cc",
70 "test_utils.h", 71 "test_utils.h",
71 "test_utils_unittest.cc", 72 "test_utils_unittest.cc",
72 "win/cursor_unittest.cc", 73 "win/cursor_unittest.cc",
73 "win/cursor_unittest_resources.h", 74 "win/cursor_unittest_resources.h",
74 "win/cursor_unittest_resources.rc", 75 "win/cursor_unittest_resources.rc",
75 ] 76 ]
76 deps = [ 77 deps = [
77 ":desktop_capture", 78 ":desktop_capture",
78 ":desktop_capture_mock", 79 ":desktop_capture_mock",
79 ":primitives", 80 ":primitives",
80 ":rgba_color",
81 "../..:webrtc_common", 81 "../..:webrtc_common",
82 "../../base:rtc_base_approved", 82 "../../base:rtc_base_approved",
83 "../../system_wrappers:system_wrappers", 83 "../../system_wrappers",
84 "../../test:test_support", 84 "../../test:test_support",
85 "//testing/gmock", 85 "//testing/gmock",
86 ] 86 ]
87 if (rtc_desktop_capture_supported) { 87 if (rtc_desktop_capture_supported) {
88 sources += [ 88 sources += [
89 "screen_capturer_helper_unittest.cc", 89 "screen_capturer_helper_unittest.cc",
90 "screen_capturer_mac_unittest.cc", 90 "screen_capturer_mac_unittest.cc",
91 "screen_capturer_unittest.cc", 91 "screen_capturer_unittest.cc",
92 "window_capturer_unittest.cc", 92 "window_capturer_unittest.cc",
93 ] 93 ]
94 deps += [ ":desktop_capture_mock" ] 94 deps += [ ":desktop_capture_mock" ]
95 } 95 }
96 if (!build_with_chromium && is_clang) { 96 if (!build_with_chromium && is_clang) {
97 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 97 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
98 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 98 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
99 } 99 }
100 } 100 }
101 101
102 source_set("rgba_color") { 102 source_set("screen_drawer") {
103 testonly = true 103 testonly = true
104 104
105 public_deps = [ 105 public_deps = [
106 ":desktop_capture", 106 ":desktop_capture",
107 ] 107 ]
108 108
109 sources = [ 109 sources = [
110 "rgba_color.cc",
111 "rgba_color.h",
112 ]
113
114 deps = [
115 ":primitives",
116 "../..:webrtc_common",
117 ]
118 }
119
120 source_set("screen_drawer") {
121 testonly = true
122
123 public_deps = [
124 ":rgba_color",
125 ]
126
127 sources = [
128 "screen_drawer.cc", 110 "screen_drawer.cc",
129 "screen_drawer.h", 111 "screen_drawer.h",
130 "screen_drawer_linux.cc", 112 "screen_drawer_linux.cc",
131 "screen_drawer_mac.cc", 113 "screen_drawer_mac.cc",
132 "screen_drawer_win.cc", 114 "screen_drawer_win.cc",
133 ] 115 ]
134 116
135 deps = [ 117 deps = [
136 ":primitives", 118 ":primitives",
137 "../../base:rtc_base_approved", 119 "../../base:rtc_base_approved",
138 "../../system_wrappers", 120 "../../system_wrappers",
139 ] 121 ]
140 } 122 }
141 123
142 source_set("desktop_capture_mock") { 124 source_set("desktop_capture_mock") {
143 testonly = true 125 testonly = true
144 126
145 public_deps = [ 127 public_deps = [
146 ":desktop_capture", 128 ":desktop_capture",
147 ":rgba_color",
148 "//testing/gmock", 129 "//testing/gmock",
149 ] 130 ]
150 131
151 sources = [ 132 sources = [
152 "desktop_frame_generator.cc", 133 "desktop_frame_generator.cc",
153 "desktop_frame_generator.h", 134 "desktop_frame_generator.h",
154 "fake_desktop_capturer.cc", 135 "fake_desktop_capturer.cc",
155 "fake_desktop_capturer.h", 136 "fake_desktop_capturer.h",
156 "mock_desktop_capturer_callback.cc", 137 "mock_desktop_capturer_callback.cc",
157 "mock_desktop_capturer_callback.h", 138 "mock_desktop_capturer_callback.h",
158 ] 139 ]
159 140
160 deps = [ 141 deps = [
161 ":primitives", 142 ":primitives",
162 "../../base:rtc_base_approved", 143 "../../base:rtc_base_approved",
163 "../../test:test_support", 144 "../../test:test_support",
164 ] 145 ]
165 } 146 }
166 } 147 }
167 148
168 rtc_static_library("desktop_capture") { 149 rtc_static_library("desktop_capture") {
169 sources = [ 150 sources = [
151 "blank_detector_desktop_capturer_wrapper.cc",
152 "blank_detector_desktop_capturer_wrapper.h",
170 "cropped_desktop_frame.cc", 153 "cropped_desktop_frame.cc",
171 "cropped_desktop_frame.h", 154 "cropped_desktop_frame.h",
172 "cropping_window_capturer.cc", 155 "cropping_window_capturer.cc",
173 "cropping_window_capturer.h", 156 "cropping_window_capturer.h",
174 "cropping_window_capturer_win.cc", 157 "cropping_window_capturer_win.cc",
175 "desktop_and_cursor_composer.cc", 158 "desktop_and_cursor_composer.cc",
176 "desktop_and_cursor_composer.h", 159 "desktop_and_cursor_composer.h",
177 "desktop_capture_options.cc", 160 "desktop_capture_options.cc",
178 "desktop_capture_options.h", 161 "desktop_capture_options.h",
179 "desktop_capturer.cc", 162 "desktop_capturer.cc",
(...skipping 18 matching lines...) Expand all
198 "mac/scoped_pixel_buffer_object.h", 181 "mac/scoped_pixel_buffer_object.h",
199 "mac/window_list_utils.cc", 182 "mac/window_list_utils.cc",
200 "mac/window_list_utils.h", 183 "mac/window_list_utils.h",
201 "mouse_cursor.cc", 184 "mouse_cursor.cc",
202 "mouse_cursor.h", 185 "mouse_cursor.h",
203 "mouse_cursor_monitor.h", 186 "mouse_cursor_monitor.h",
204 "mouse_cursor_monitor_mac.mm", 187 "mouse_cursor_monitor_mac.mm",
205 "mouse_cursor_monitor_win.cc", 188 "mouse_cursor_monitor_win.cc",
206 "resolution_change_detector.cc", 189 "resolution_change_detector.cc",
207 "resolution_change_detector.h", 190 "resolution_change_detector.h",
191 "rgba_color.cc",
192 "rgba_color.h",
208 "screen_capture_frame_queue.h", 193 "screen_capture_frame_queue.h",
209 "screen_capturer_helper.cc", 194 "screen_capturer_helper.cc",
210 "screen_capturer_helper.h", 195 "screen_capturer_helper.h",
211 "screen_capturer_mac.mm", 196 "screen_capturer_mac.mm",
212 "screen_capturer_win.cc", 197 "screen_capturer_win.cc",
213 "win/cursor.cc", 198 "win/cursor.cc",
214 "win/cursor.h", 199 "win/cursor.h",
215 "win/d3d_device.cc", 200 "win/d3d_device.cc",
216 "win/d3d_device.h", 201 "win/d3d_device.h",
217 "win/desktop.cc", 202 "win/desktop.cc",
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 sources = [ 289 sources = [
305 "differ_vector_sse2.cc", 290 "differ_vector_sse2.cc",
306 "differ_vector_sse2.h", 291 "differ_vector_sse2.h",
307 ] 292 ]
308 293
309 if (is_posix) { 294 if (is_posix) {
310 cflags = [ "-msse2" ] 295 cflags = [ "-msse2" ]
311 } 296 }
312 } 297 }
313 } 298 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/desktop_capture/blank_detector_desktop_capturer_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698