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

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

Issue 10382184: [Chromoting] Initial plumbing for cursor shape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra LOGs Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_CAPTURER_FAKE_H_ 5 #ifndef REMOTING_HOST_CAPTURER_FAKE_H_
6 #define REMOTING_HOST_CAPTURER_FAKE_H_ 6 #define REMOTING_HOST_CAPTURER_FAKE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "remoting/host/capturer.h" 9 #include "remoting/host/capturer.h"
10 #include "remoting/host/capturer_helper.h" 10 #include "remoting/host/capturer_helper.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 // A CapturerFake generates artificial image for testing purpose. 14 // A CapturerFake generates artificial image for testing purpose.
15 // 15 //
16 // CapturerFake is double-buffered as required by Capturer. See 16 // CapturerFake is double-buffered as required by Capturer. See
17 // remoting/host/capturer.h. 17 // remoting/host/capturer.h.
18 class CapturerFake : public Capturer { 18 class CapturerFake : public Capturer {
19 public: 19 public:
20 CapturerFake(); 20 CapturerFake();
21 virtual ~CapturerFake(); 21 virtual ~CapturerFake();
22 22
23 // Capturer interface. 23 // Capturer interface.
24 virtual void Start() OVERRIDE; 24 virtual void Start() OVERRIDE;
25 virtual void Stop() OVERRIDE; 25 virtual void Stop() OVERRIDE;
26 virtual void SetCursorShapeChangedCallback(
27 const CursorShapeChangedCallback& callback) OVERRIDE;
26 virtual void ScreenConfigurationChanged() OVERRIDE; 28 virtual void ScreenConfigurationChanged() OVERRIDE;
27 virtual media::VideoFrame::Format pixel_format() const OVERRIDE; 29 virtual media::VideoFrame::Format pixel_format() const OVERRIDE;
28 virtual void ClearInvalidRegion() OVERRIDE; 30 virtual void ClearInvalidRegion() OVERRIDE;
29 virtual void InvalidateRegion(const SkRegion& invalid_region) OVERRIDE; 31 virtual void InvalidateRegion(const SkRegion& invalid_region) OVERRIDE;
30 virtual void InvalidateScreen(const SkISize& size) OVERRIDE; 32 virtual void InvalidateScreen(const SkISize& size) OVERRIDE;
31 virtual void InvalidateFullScreen() OVERRIDE; 33 virtual void InvalidateFullScreen() OVERRIDE;
32 virtual void CaptureInvalidRegion( 34 virtual void CaptureInvalidRegion(
33 const CaptureCompletedCallback& callback) OVERRIDE; 35 const CaptureCompletedCallback& callback) OVERRIDE;
34 virtual const SkISize& size_most_recent() const OVERRIDE; 36 virtual const SkISize& size_most_recent() const OVERRIDE;
35 37
(...skipping 19 matching lines...) Expand all
55 57
56 // Format of pixels returned in buffer. 58 // Format of pixels returned in buffer.
57 media::VideoFrame::Format pixel_format_; 59 media::VideoFrame::Format pixel_format_;
58 60
59 DISALLOW_COPY_AND_ASSIGN(CapturerFake); 61 DISALLOW_COPY_AND_ASSIGN(CapturerFake);
60 }; 62 };
61 63
62 } // namespace remoting 64 } // namespace remoting
63 65
64 #endif // REMOTING_HOST_CAPTURER_FAKE_H_ 66 #endif // REMOTING_HOST_CAPTURER_FAKE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698