summaryrefslogtreecommitdiffstats
path: root/remoting/host/capturer_mac.cc
blob: 08f39c7229a518128b37474dbfc9b5156aae5ef7 (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_mac.h"

namespace remoting {

// TODO(dmaclach): Implement this class.
CapturerMac::CapturerMac() {
}

CapturerMac::~CapturerMac() {
}

void CapturerMac::CaptureFullScreen(Task* done_task) {
  dirty_rects_.clear();

  CaptureImage();
  dirty_rects_.push_back(gfx::Rect(width_, height_));

  FinishCapture(done_task);
}

void CapturerMac::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 CapturerMac::CaptureRect(const gfx::Rect& rect, Task* done_task) {
  dirty_rects_.clear();

  CaptureImage();
  dirty_rects_.push_back(rect);

  FinishCapture(done_task);
}

void CapturerMac::GetData(const uint8* planes[]) const {
}

void CapturerMac::GetDataStride(int strides[]) const {
}

void CapturerMac::CaptureImage() {
}

}  // namespace remoting