Skip to content

Commit

Permalink
Remove screen capturers from media/video/capture/screen.
Browse files Browse the repository at this point in the history
Screen capturers have been moved to webrtc. This change 
switches chromoting and getUserMedia() to the new copy of the 
capturers in webrtc and removes old copy from media.

TBR=jschuh@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15692018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204966 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
sergeyu@chromium.org committed Jun 7, 2013
1 parent 67c3f94 commit 3aef722
Show file tree
Hide file tree
Showing 74 changed files with 190 additions and 5,413 deletions.
3 changes: 3 additions & 0 deletions content/content_browser.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,9 @@
],
}],
['enable_webrtc==1', {
'dependencies': [
'../third_party/webrtc/modules/modules.gyp:desktop_capture',
],
'sources': [
'browser/renderer_host/media/peer_connection_tracker_host.cc',
'browser/renderer_host/media/peer_connection_tracker_host.h',
Expand Down
58 changes: 5 additions & 53 deletions media/media.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
'media_use_libvpx%': 1,
}],
# Screen capturer works only on Windows, OSX and Linux (with X11).
# TODO(sergeyu): Remove this variable once screen_capture_device.cc is
# moved to content.
['OS=="win" or OS=="mac" or (OS=="linux" and use_x11==1)', {
'screen_capture_supported%': 1,
}, {
Expand Down Expand Up @@ -383,36 +385,11 @@
'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/mac/desktop_configuration.h',
'video/capture/screen/mac/desktop_configuration.mm',
'video/capture/screen/mac/scoped_pixel_buffer_object.cc',
'video/capture/screen/mac/scoped_pixel_buffer_object.h',
'video/capture/screen/mouse_cursor_shape.h',

# TODO(sergeyu): Move screen_capture_device.cc to content and remove it
# from here.
'video/capture/screen/screen_capture_device.cc',
'video/capture/screen/screen_capture_device.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_mac.mm',
'video/capture/screen/screen_capturer_null.cc',
'video/capture/screen/screen_capturer_win.cc',
'video/capture/screen/screen_capturer_x11.cc',
'video/capture/screen/shared_desktop_frame.cc',
'video/capture/screen/shared_desktop_frame.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/screen/x11/x_server_pixel_buffer.cc',
'video/capture/screen/x11/x_server_pixel_buffer.h',
'video/capture/video_capture.h',
'video/capture/video_capture_device.h',
'video/capture/video_capture_device_dummy.cc',
Expand Down Expand Up @@ -475,11 +452,6 @@
'USE_NEON'
],
}],
['OS!="linux" or use_x11==1', {
'sources!': [
'video/capture/screen/screen_capturer_null.cc',
]
}],
['OS!="ios"', {
'dependencies': [
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
Expand Down Expand Up @@ -999,12 +971,7 @@
'filters/video_decoder_selector_unittest.cc',
'filters/video_frame_stream_unittest.cc',
'filters/video_renderer_base_unittest.cc',
'video/capture/screen/differ_block_unittest.cc',
'video/capture/screen/differ_unittest.cc',
'video/capture/screen/screen_capture_device_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',
Expand Down Expand Up @@ -1160,19 +1127,6 @@
'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==1', {
'dependencies': [
'../third_party/webrtc/modules/modules.gyp:desktop_capture',
],
}, {
'sources/': [
['exclude', '^video/capture/screen/'],
],
}],
],
},
],
Expand Down Expand Up @@ -1317,8 +1271,6 @@
'base/simd/convert_rgb_to_yuv_sse2.cc',
'base/simd/convert_rgb_to_yuv_ssse3.cc',
'base/simd/filter_yuv_sse2.cc',
'video/capture/screen/differ_block_sse2.cc',
'video/capture/screen/differ_block_sse2.h',
],
},
{
Expand Down
201 changes: 0 additions & 201 deletions media/video/capture/screen/differ.cc

This file was deleted.

Loading

0 comments on commit 3aef722

Please sign in to comment.