OLD | NEW |
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_CAPTURER_VIDEO_FRAME_CAPTURER_FAKE_H_ | 5 #ifndef REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_FAKE_H_ |
6 #define REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_FAKE_H_ | 6 #define REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_FAKE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "remoting/capturer/video_frame_capturer.h" | 9 #include "remoting/capturer/video_frame_capturer.h" |
10 #include "remoting/capturer/video_frame_capturer_helper.h" | 10 #include "remoting/capturer/video_frame_capturer_helper.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 static const int kHeight = 600; | 22 static const int kHeight = 600; |
23 | 23 |
24 VideoFrameCapturerFake(); | 24 VideoFrameCapturerFake(); |
25 virtual ~VideoFrameCapturerFake(); | 25 virtual ~VideoFrameCapturerFake(); |
26 | 26 |
27 // Overridden from VideoFrameCapturer: | 27 // Overridden from VideoFrameCapturer: |
28 virtual void Start(Delegate* delegate) OVERRIDE; | 28 virtual void Start(Delegate* delegate) OVERRIDE; |
29 virtual void Stop() OVERRIDE; | 29 virtual void Stop() OVERRIDE; |
30 virtual void InvalidateRegion(const SkRegion& invalid_region) OVERRIDE; | 30 virtual void InvalidateRegion(const SkRegion& invalid_region) OVERRIDE; |
31 virtual void CaptureFrame() OVERRIDE; | 31 virtual void CaptureFrame() OVERRIDE; |
32 virtual const SkISize& size_most_recent() const OVERRIDE; | |
33 | 32 |
34 private: | 33 private: |
35 // Generates an image in the front buffer. | 34 // Generates an image in the front buffer. |
36 void GenerateImage(); | 35 void GenerateImage(); |
37 | 36 |
38 // Called when the screen configuration is changed. | 37 // Called when the screen configuration is changed. |
39 void ScreenConfigurationChanged(); | 38 void ScreenConfigurationChanged(); |
40 | 39 |
41 Delegate* delegate_; | 40 Delegate* delegate_; |
42 | 41 |
(...skipping 12 matching lines...) Expand all Loading... |
55 | 54 |
56 // The current buffer with valid data for reading. | 55 // The current buffer with valid data for reading. |
57 int current_buffer_; | 56 int current_buffer_; |
58 | 57 |
59 DISALLOW_COPY_AND_ASSIGN(VideoFrameCapturerFake); | 58 DISALLOW_COPY_AND_ASSIGN(VideoFrameCapturerFake); |
60 }; | 59 }; |
61 | 60 |
62 } // namespace remoting | 61 } // namespace remoting |
63 | 62 |
64 #endif // REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_FAKE_H_ | 63 #endif // REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_FAKE_H_ |
OLD | NEW |