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

Unified Diff: media/media.gyp

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/video/capture/screen/OWNERS » ('j') | media/video/capture/screen/differ_block.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/media.gyp
diff --git a/media/media.gyp b/media/media.gyp
index f0c03e264783eedf13f90839b841e8dc9e29d117..b3a78d120696834153b8204e608eedb435e67946 100644
--- a/media/media.gyp
+++ b/media/media.gyp
@@ -16,6 +16,12 @@
}, { # 'OS != "android" and OS != "ios"'
'use_ffmpeg%': 1,
}],
+ # Screen capturer works only on Windows, OSX and Linux.
+ ['OS=="win" or OS=="mac" or OS=="linux"', {
+ 'screen_capture_supported%': 1,
+ }, {
+ 'screen_capture_supported%': 0,
+ }],
],
},
'targets': [
@@ -321,6 +327,37 @@
'video/capture/mac/video_capture_device_mac.mm',
'video/capture/mac/video_capture_device_qtkit_mac.h',
'video/capture/mac/video_capture_device_qtkit_mac.mm',
+ 'video/capture/screen/differ.cc',
+ 'video/capture/screen/differ.h',
+ 'video/capture/screen/differ_block.cc',
+ 'video/capture/screen/differ_block.h',
+ 'video/capture/screen/linux/x_server_pixel_buffer.cc',
+ 'video/capture/screen/linux/x_server_pixel_buffer.h',
+ 'video/capture/screen/mac/scoped_pixel_buffer_object.cc',
+ 'video/capture/screen/mac/scoped_pixel_buffer_object.h',
+ 'video/capture/screen/mouse_cursor_shape.cc',
+ 'video/capture/screen/mouse_cursor_shape.h',
+ 'video/capture/screen/screen_capture_data.cc',
+ 'video/capture/screen/screen_capture_data.h',
+ 'video/capture/screen/screen_capture_frame.cc',
+ 'video/capture/screen/screen_capture_frame.h',
+ 'video/capture/screen/screen_capture_frame_queue.cc',
+ 'video/capture/screen/screen_capture_frame_queue.h',
+ 'video/capture/screen/screen_capturer.h',
+ 'video/capture/screen/screen_capturer_fake.cc',
+ 'video/capture/screen/screen_capturer_fake.h',
+ 'video/capture/screen/screen_capturer_helper.cc',
+ 'video/capture/screen/screen_capturer_helper.h',
+ 'video/capture/screen/screen_capturer_linux.cc',
+ 'video/capture/screen/screen_capturer_mac.mm',
+ 'video/capture/screen/screen_capturer_win.cc',
+ 'video/capture/screen/shared_buffer.cc',
+ 'video/capture/screen/shared_buffer.h',
+ 'video/capture/screen/shared_buffer_factory.h',
+ 'video/capture/screen/win/desktop.cc',
+ 'video/capture/screen/win/desktop.h',
+ 'video/capture/screen/win/scoped_thread_desktop.cc',
+ 'video/capture/screen/win/scoped_thread_desktop.h',
'video/capture/video_capture.h',
'video/capture/video_capture_device.h',
'video/capture/video_capture_device_dummy.cc',
@@ -505,6 +542,14 @@
}],
],
},
+ 'link_settings': {
+ 'libraries': [
+ '-lX11',
+ '-lXdamage',
+ '-lXext',
+ '-lXfixes',
+ ],
+ },
'conditions': [
['use_cras == 1', {
'cflags': [
@@ -628,6 +673,21 @@
'mp4/track_run_iterator.h',
],
}],
+ [ 'screen_capture_supported == 0', {
+ 'sources/': [
+ ['exclude', '^video/capture/screen/'],
+ ],
+ }],
+ [ 'target_arch == "ia32" or target_arch == "x64"', {
+ 'dependencies': [
+ 'differ_block_sse2',
+ ],
+ }],
+ ['toolkit_uses_gtk==1', {
+ 'dependencies': [
+ '../build/linux/system.gyp:gtk',
+ ],
+ }],
],
'target_conditions': [
['OS == "ios"', {
@@ -689,13 +749,13 @@
'base/audio_renderer_mixer_unittest.cc',
'base/audio_splicer_unittest.cc',
'base/audio_timestamp_helper_unittest.cc',
- 'base/bit_reader_unittest.cc',
'base/bind_to_loop_unittest.cc',
+ 'base/bit_reader_unittest.cc',
'base/channel_mixer_unittest.cc',
'base/clock_unittest.cc',
'base/data_buffer_unittest.cc',
- 'base/decoder_buffer_unittest.cc',
'base/decoder_buffer_queue_unittest.cc',
+ 'base/decoder_buffer_unittest.cc',
'base/djb2_unittest.cc',
'base/filter_collection_unittest.cc',
'base/gmock_callback_support_unittest.cc',
@@ -736,6 +796,12 @@
'filters/source_buffer_stream_unittest.cc',
'filters/video_decoder_selector_unittest.cc',
'filters/video_renderer_base_unittest.cc',
+ 'video/capture/screen/differ_block_unittest.cc',
+ 'video/capture/screen/differ_unittest.cc',
+ 'video/capture/screen/shared_buffer_unittest.cc',
+ 'video/capture/screen/screen_capturer_helper_unittest.cc',
+ 'video/capture/screen/screen_capturer_mac_unittest.cc',
+ 'video/capture/screen/screen_capturer_unittest.cc',
'video/capture/video_capture_device_unittest.cc',
'webm/cluster_builder.cc',
'webm/cluster_builder.h',
@@ -825,6 +891,11 @@
'base/simd/convert_rgb_to_yuv_unittest.cc',
],
}],
+ [ 'screen_capture_supported == 0', {
+ 'sources/': [
+ ['exclude', '^video/capture/screen/'],
+ ],
+ }],
['proprietary_codecs==1 or branding=="Chrome"', {
'sources': [
'mp4/aac_unittest.cc',
@@ -844,6 +915,7 @@
'dependencies': [
'media',
'../base/base.gyp:base',
+ '../skia/skia.gyp:skia',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
],
@@ -865,8 +937,35 @@
'base/mock_filters.h',
'base/test_helpers.cc',
'base/test_helpers.h',
+ 'video/capture/screen/screen_capturer_mock_objects.cc',
+ 'video/capture/screen/screen_capturer_mock_objects.h',
+ ],
+ 'conditions': [
+ [ 'screen_capture_supported == 0', {
+ 'sources/': [
+ ['exclude', '^video/capture/screen/'],
+ ],
+ }],
],
},
+ {
+ 'target_name': 'differ_block_sse2',
+ 'type': 'static_library',
+ 'conditions': [
+ [ 'os_posix == 1 and OS != "mac"', {
+ 'cflags': [
+ '-msse2',
+ ],
+ }],
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ 'sources': [
+ 'video/capture/screen/differ_block_sse2.cc',
+ 'video/capture/screen/differ_block_sse2.h',
+ ],
+ }, # end of target differ_block_sse2
],
'conditions': [
['OS != "ios"', {
« no previous file with comments | « no previous file | media/video/capture/screen/OWNERS » ('j') | media/video/capture/screen/differ_block.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698