OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "remoting/host/capturer_mac.h" |
| 6 |
| 7 namespace remoting { |
| 8 |
| 9 // TODO(dmaclach): Implement this class. |
| 10 CapturerMac::CapturerMac() { |
| 11 } |
| 12 |
| 13 CapturerMac::~CapturerMac() { |
| 14 } |
| 15 |
| 16 void CapturerMac::CaptureFullScreen(Task* done_task) { |
| 17 dirty_rects_.clear(); |
| 18 |
| 19 CaptureImage(); |
| 20 dirty_rects_.push_back(gfx::Rect(width_, height_)); |
| 21 |
| 22 FinishCapture(done_task); |
| 23 } |
| 24 |
| 25 void CapturerMac::CaptureDirtyRects(Task* done_task) { |
| 26 dirty_rects_.clear(); |
| 27 |
| 28 CaptureImage(); |
| 29 // TODO(garykac): Diff old/new images and generate |dirty_rects_|. |
| 30 // Currently, this just marks the entire screen as dirty. |
| 31 dirty_rects_.push_back(gfx::Rect(width_, height_)); |
| 32 |
| 33 FinishCapture(done_task); |
| 34 } |
| 35 |
| 36 void CapturerMac::CaptureRect(const gfx::Rect& rect, Task* done_task) { |
| 37 dirty_rects_.clear(); |
| 38 |
| 39 CaptureImage(); |
| 40 dirty_rects_.push_back(rect); |
| 41 |
| 42 FinishCapture(done_task); |
| 43 } |
| 44 |
| 45 void CapturerMac::GetData(const uint8* planes[]) const { |
| 46 } |
| 47 |
| 48 void CapturerMac::GetDataStride(int strides[]) const { |
| 49 } |
| 50 |
| 51 void CapturerMac::CaptureImage() { |
| 52 } |
| 53 |
| 54 } // namespace remoting |
OLD | NEW |