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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device.cc

Issue 962503005: Clean-up: Remove accelerated subscriber switch for tab/desktop capture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « content/browser/media/capture/video_capture_oracle_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/capture/web_contents_video_capture_device.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device.cc b/content/browser/media/capture/web_contents_video_capture_device.cc
index 6dc8ac04419c7991d5964920a1dffbea5906df4b..655c63c601919df2136ae636ec673fd9ffe62bca 100644
--- a/content/browser/media/capture/web_contents_video_capture_device.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device.cc
@@ -340,7 +340,7 @@ ContentCaptureSubscription::ContentCaptureSubscription(
// Subscribe to accelerated presents. These will be serviced directly by the
// oracle.
- if (view && kAcceleratedSubscriberIsSupported) {
+ if (view) {
scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber(
new FrameSubscriber(VideoCaptureOracle::kCompositorUpdate,
oracle_proxy, &delivery_log_));
@@ -368,13 +368,11 @@ ContentCaptureSubscription::~ContentCaptureSubscription() {
return;
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- if (kAcceleratedSubscriberIsSupported) {
- RenderWidgetHost* const source =
- RenderWidgetHost::FromID(render_process_id_, render_widget_id_);
- RenderWidgetHostView* const view = source ? source->GetView() : NULL;
- if (view)
- view->EndFrameSubscription();
- }
+ RenderWidgetHost* const source =
+ RenderWidgetHost::FromID(render_process_id_, render_widget_id_);
+ RenderWidgetHostView* const view = source ? source->GetView() : NULL;
+ if (view)
+ view->EndFrameSubscription();
}
void ContentCaptureSubscription::Observe(
« no previous file with comments | « content/browser/media/capture/video_capture_oracle_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698