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

Side by Side Diff: remoting/host/capturer_mac.cc

Issue 2690003: Copy the (early prototype of) remoting in Chrome into the public tree.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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/capturer_mac.h ('k') | remoting/host/capturer_mac_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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
OLDNEW
« no previous file with comments | « remoting/host/capturer_mac.h ('k') | remoting/host/capturer_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698