summaryrefslogtreecommitdiffstats
path: root/remoting/host/capturer_linux.cc
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 15:02:53 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 15:02:53 +0000
commit804c99625cc375da683a6c1a681178b0014e02fe (patch)
tree444c6deffd05f7744f0d2b50077aeabde0cc7170 /remoting/host/capturer_linux.cc
parent9da1cedf45ee5bb54cc5558ca044dc24b999b8d9 (diff)
downloadchromium_src-804c99625cc375da683a6c1a681178b0014e02fe.zip
chromium_src-804c99625cc375da683a6c1a681178b0014e02fe.tar.gz
chromium_src-804c99625cc375da683a6c1a681178b0014e02fe.tar.bz2
Revamp capturer to clean up the interface, and to keep data as atomic as possible when making calls across threads.
TEST=build remoting BUG=none Review URL: http://codereview.chromium.org/2805025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/capturer_linux.cc')
-rw-r--r--remoting/host/capturer_linux.cc37
1 files changed, 3 insertions, 34 deletions
diff --git a/remoting/host/capturer_linux.cc b/remoting/host/capturer_linux.cc
index f5c89ee..e61d530 100644
--- a/remoting/host/capturer_linux.cc
+++ b/remoting/host/capturer_linux.cc
@@ -13,42 +13,11 @@ CapturerLinux::CapturerLinux() {
CapturerLinux::~CapturerLinux() {
}
-void CapturerLinux::CaptureFullScreen(Task* done_task) {
- dirty_rects_.clear();
-
- CaptureImage();
- dirty_rects_.push_back(gfx::Rect(width_, height_));
-
- FinishCapture(done_task);
-}
-
-void CapturerLinux::CaptureDirtyRects(Task* done_task) {
- dirty_rects_.clear();
-
- CaptureImage();
- // TODO(garykac): Diff old/new images and generate |dirty_rects_|.
- // Currently, this just marks the entire screen as dirty.
- dirty_rects_.push_back(gfx::Rect(width_, height_));
-
- FinishCapture(done_task);
-}
-
-void CapturerLinux::CaptureRect(const gfx::Rect& rect, Task* done_task) {
- dirty_rects_.clear();
-
- CaptureImage();
- dirty_rects_.push_back(rect);
-
- FinishCapture(done_task);
-}
-
-void CapturerLinux::GetData(const uint8* planes[]) const {
-}
-
-void CapturerLinux::GetDataStride(int strides[]) const {
+void CapturerLinux::ScreenConfigurationChanged() {
}
-void CapturerLinux::CaptureImage() {
+void CapturerLinux::CaptureRects(const RectVector& rects,
+ CaptureCompletedCallback* callback) {
}
} // namespace remoting