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

Side by Side Diff: remoting/host/capturer_fake_ascii.h

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_fake.cc ('k') | remoting/host/capturer_fake_ascii.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 #ifndef REMOTING_HOST_CAPTURER_FAKE_ASCII_H_
6 #define REMOTING_HOST_CAPTURER_FAKE_ASCII_H_
7
8 #include "base/scoped_ptr.h"
9 #include "remoting/host/capturer.h"
10
11 namespace remoting {
12
13 // A CapturerFakeAscii always outputs an image of 64x48 ASCII characters.
14 // This image is artificially generated for testing purpose.
15 //
16 // CapturerFakeAscii is doubled buffered as required by Capturer. See
17 // remoting/host/capturer.h.
18 class CapturerFakeAscii : public Capturer {
19 public:
20 CapturerFakeAscii();
21 virtual ~CapturerFakeAscii();
22
23 virtual void CaptureFullScreen(Task* done_task);
24 virtual void CaptureDirtyRects(Task* done_task);
25 virtual void CaptureRect(const gfx::Rect& rect, Task* done_task);
26 virtual void GetData(const uint8* planes[]) const;
27 virtual void GetDataStride(int strides[]) const;
28
29 private:
30 // Generates an image in the front buffer.
31 void GenerateImage();
32
33 // We have two buffers for the screen images as required by Capturer.
34 scoped_array<uint8> buffers_[kNumBuffers];
35
36 DISALLOW_COPY_AND_ASSIGN(CapturerFakeAscii);
37 };
38
39 } // namespace remoting
40
41 #endif // REMOTING_HOST_CAPTURER_FAKE_ASCII_H_
OLDNEW
« no previous file with comments | « remoting/host/capturer_fake.cc ('k') | remoting/host/capturer_fake_ascii.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698