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

Side by Side Diff: remoting/host/video_frame_capturer.h

Issue 10799013: Removing unused and private methods remoting::Capturer interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/screen_recorder_unittest.cc ('k') | remoting/host/video_frame_capturer_fake.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_VIDEO_FRAME_CAPTURER_H_ 5 #ifndef REMOTING_HOST_VIDEO_FRAME_CAPTURER_H_
6 #define REMOTING_HOST_VIDEO_FRAME_CAPTURER_H_ 6 #define REMOTING_HOST_VIDEO_FRAME_CAPTURER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "media/base/video_frame.h" 10 #include "media/base/video_frame.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 static void EnableXDamage(bool enable); 79 static void EnableXDamage(bool enable);
80 #endif // defined(OS_LINUX) 80 #endif // defined(OS_LINUX)
81 81
82 // Called at the beginning of a capturing session. 82 // Called at the beginning of a capturing session.
83 virtual void Start( 83 virtual void Start(
84 const CursorShapeChangedCallback& callback) = 0; 84 const CursorShapeChangedCallback& callback) = 0;
85 85
86 // Called at the end of a capturing session. 86 // Called at the end of a capturing session.
87 virtual void Stop() = 0; 87 virtual void Stop() = 0;
88 88
89 // Called when the screen configuration is changed.
90 virtual void ScreenConfigurationChanged() = 0;
91
92 // Return the pixel format of the screen. 89 // Return the pixel format of the screen.
93 virtual media::VideoFrame::Format pixel_format() const = 0; 90 virtual media::VideoFrame::Format pixel_format() const = 0;
94 91
95 // Clear out the invalid region.
96 virtual void ClearInvalidRegion() = 0;
97
98 // Invalidate the specified region. 92 // Invalidate the specified region.
99 virtual void InvalidateRegion(const SkRegion& invalid_region) = 0; 93 virtual void InvalidateRegion(const SkRegion& invalid_region) = 0;
100 94
101 // Invalidate the entire screen, of a given size.
102 virtual void InvalidateScreen(const SkISize& size) = 0;
103
104 // Invalidate the entire screen, using the size of the most recently
105 // captured screen.
106 virtual void InvalidateFullScreen() = 0;
107
108 // Capture the screen data associated with each of the accumulated 95 // Capture the screen data associated with each of the accumulated
109 // dirty region. 96 // dirty region.
110 // When the capture is complete, |callback| is called even if the dirty region 97 // When the capture is complete, |callback| is called even if the dirty region
111 // is empty. 98 // is empty.
112 // 99 //
113 // It is OK to call this method while another thread is reading 100 // It is OK to call this method while another thread is reading
114 // data of the previous capture. 101 // data of the previous capture.
115 // There can be at most one concurrent read going on when this 102 // There can be at most one concurrent read going on when this
116 // method is called. 103 // method is called.
117 virtual void CaptureInvalidRegion( 104 virtual void CaptureInvalidRegion(
118 const CaptureCompletedCallback& callback) = 0; 105 const CaptureCompletedCallback& callback) = 0;
119 106
120 // Get the size of the most recently captured screen. 107 // Get the size of the most recently captured screen.
121 virtual const SkISize& size_most_recent() const = 0; 108 virtual const SkISize& size_most_recent() const = 0;
122 }; 109 };
123 110
124 } // namespace remoting 111 } // namespace remoting
125 112
126 #endif // REMOTING_HOST_VIDEO_FRAME_CAPTURER_H_ 113 #endif // REMOTING_HOST_VIDEO_FRAME_CAPTURER_H_
OLDNEW
« no previous file with comments | « remoting/host/screen_recorder_unittest.cc ('k') | remoting/host/video_frame_capturer_fake.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698