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

Unified Diff: content/browser/media/capture/content_video_capture_device_core.h

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 | « no previous file | content/browser/media/capture/content_video_capture_device_core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/capture/content_video_capture_device_core.h
diff --git a/content/browser/media/capture/content_video_capture_device_core.h b/content/browser/media/capture/content_video_capture_device_core.h
index c86bb6c883aaea3a1e7eb7a9943366b2fb89a056..f56c10950f5890145ca37ee66923c33a39988fa0 100644
--- a/content/browser/media/capture/content_video_capture_device_core.h
+++ b/content/browser/media/capture/content_video_capture_device_core.h
@@ -32,14 +32,6 @@ IntType MakeEven(IntType x) {
return x & static_cast<IntType>(-2);
}
-// TODO(nick): Remove this once frame subscription is supported on Aura and
-// Linux.
-#if (defined(OS_WIN) || defined(OS_MACOSX)) || defined(USE_AURA)
-const bool kAcceleratedSubscriberIsSupported = true;
-#else
-const bool kAcceleratedSubscriberIsSupported = false;
-#endif
-
class VideoCaptureMachine;
// Thread-safe, refcounted proxy to the VideoCaptureOracle. This proxy wraps
@@ -50,7 +42,6 @@ class ThreadSafeCaptureOracle
: public base::RefCountedThreadSafe<ThreadSafeCaptureOracle> {
public:
ThreadSafeCaptureOracle(scoped_ptr<media::VideoCaptureDevice::Client> client,
- scoped_ptr<VideoCaptureOracle> oracle,
const media::VideoCaptureParams& params);
// Called when a captured frame is available or an error has occurred.
@@ -68,7 +59,7 @@ class ThreadSafeCaptureOracle
CaptureFrameCallback* callback);
base::TimeDelta min_capture_period() const {
- return oracle_->min_capture_period();
+ return oracle_.min_capture_period();
}
// Returns the current capture resolution.
@@ -103,7 +94,7 @@ class ThreadSafeCaptureOracle
scoped_ptr<media::VideoCaptureDevice::Client> client_;
// Makes the decision to capture a frame.
- const scoped_ptr<VideoCaptureOracle> oracle_;
+ VideoCaptureOracle oracle_;
// The video capture parameters used to construct the oracle proxy.
media::VideoCaptureParams params_;
« no previous file with comments | « no previous file | content/browser/media/capture/content_video_capture_device_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698