blob: f5c89ee05a2523a045188ab4e78b7bcf94f2ce4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/capturer_linux.h"
namespace remoting {
// TODO(dmaclach): Implement this class.
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::CaptureImage() {
}
} // namespace remoting
|