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

Unified Diff: remoting/host/video_frame_capturer_fake.h

Issue 11363128: Converted VideoFrameCapturer callbacks into a VideoFrameCapturer::Delegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More Mac compilation issues. Created 8 years, 1 month 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 | « remoting/host/video_frame_capturer.h ('k') | remoting/host/video_frame_capturer_fake.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/video_frame_capturer_fake.h
diff --git a/remoting/host/video_frame_capturer_fake.h b/remoting/host/video_frame_capturer_fake.h
index ac4b19a4adc20239fca685f544567bd414f9de80..5cb7d531cffb0c430a39e1cd6eaf20878055798c 100644
--- a/remoting/host/video_frame_capturer_fake.h
+++ b/remoting/host/video_frame_capturer_fake.h
@@ -21,13 +21,11 @@ class VideoFrameCapturerFake : public VideoFrameCapturer {
virtual ~VideoFrameCapturerFake();
// Overridden from VideoFrameCapturer:
- virtual void Start(
- const CursorShapeChangedCallback& callback) OVERRIDE;
+ virtual void Start(Delegate* delegate) OVERRIDE;
virtual void Stop() OVERRIDE;
virtual media::VideoFrame::Format pixel_format() const OVERRIDE;
virtual void InvalidateRegion(const SkRegion& invalid_region) OVERRIDE;
- virtual void CaptureInvalidRegion(
- const CaptureCompletedCallback& callback) OVERRIDE;
+ virtual void CaptureInvalidRegion() OVERRIDE;
virtual const SkISize& size_most_recent() const OVERRIDE;
private:
@@ -37,6 +35,8 @@ class VideoFrameCapturerFake : public VideoFrameCapturer {
// Called when the screen configuration is changed.
void ScreenConfigurationChanged();
+ Delegate* delegate_;
+
SkISize size_;
int bytes_per_row_;
int box_pos_x_;
« no previous file with comments | « remoting/host/video_frame_capturer.h ('k') | remoting/host/video_frame_capturer_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698