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

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

Issue 1140113002: Implement screen capture for android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ScreenCaptureMachineAndroid which inherited from content::VideoCaptureMachine Created 5 years, 7 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
Index: content/browser/media/capture/aura_window_capture_machine.h
diff --git a/content/browser/media/capture/aura_window_capture_machine.h b/content/browser/media/capture/aura_window_capture_machine.h
index f41e73ce460af2a7bdcf3bfe6739b037aa01307f..4b3b212b5a5951c2db7795c5b6a205c8b8835d2b 100644
--- a/content/browser/media/capture/aura_window_capture_machine.h
+++ b/content/browser/media/capture/aura_window_capture_machine.h
@@ -35,8 +35,9 @@ class AuraWindowCaptureMachine
~AuraWindowCaptureMachine() override;
// VideoCaptureFrameSource overrides.
- bool Start(const scoped_refptr<ThreadSafeCaptureOracle>& oracle_proxy,
- const media::VideoCaptureParams& params) override;
+ void Start(const scoped_refptr<ThreadSafeCaptureOracle>& oracle_proxy,
+ const media::VideoCaptureParams& params,
+ const base::Callback<void(bool)> callback) override;
void Stop(const base::Closure& callback) override;
// Implements aura::WindowObserver.
@@ -61,6 +62,10 @@ class AuraWindowCaptureMachine
void SetWindow(aura::Window* window);
private:
+ bool InternalStart(const scoped_refptr<ThreadSafeCaptureOracle>& oracle_proxy,
+ const media::VideoCaptureParams& params);
+ void InternalStop(const base::Closure& callback);
+
// Captures a frame.
// |dirty| is false for timer polls and true for compositor updates.
void Capture(bool dirty);

Powered by Google App Engine
This is Rietveld 408576698