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_HOST_VIDEO_FRAME_CAPTURER_FAKE_H_ | 5 #ifndef REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_FAKE_H_ |
6 #define REMOTING_HOST_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/host/video_frame_capturer.h" | 9 #include "remoting/capturer/video_frame_capturer.h" |
10 #include "remoting/host/video_frame_capturer_helper.h" | 10 #include "remoting/capturer/video_frame_capturer_helper.h" |
11 | 11 |
12 namespace remoting { | 12 namespace remoting { |
13 | 13 |
14 // A VideoFrameCapturerFake generates artificial image for testing purpose. | 14 // A VideoFrameCapturerFake generates artificial image for testing purpose. |
15 // | 15 // |
16 // VideoFrameCapturerFake is double-buffered as required by VideoFrameCapturer. | 16 // VideoFrameCapturerFake is double-buffered as required by VideoFrameCapturer. |
17 // See remoting/host/video_frame_capturer.h. | 17 // See remoting/host/video_frame_capturer.h. |
18 class VideoFrameCapturerFake : public VideoFrameCapturer { | 18 class VideoFrameCapturerFake : public VideoFrameCapturer { |
19 public: | 19 public: |
20 VideoFrameCapturerFake(); | 20 VideoFrameCapturerFake(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 int current_buffer_; | 54 int current_buffer_; |
55 | 55 |
56 // Format of pixels returned in buffer. | 56 // Format of pixels returned in buffer. |
57 media::VideoFrame::Format pixel_format_; | 57 media::VideoFrame::Format pixel_format_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(VideoFrameCapturerFake); | 59 DISALLOW_COPY_AND_ASSIGN(VideoFrameCapturerFake); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace remoting | 62 } // namespace remoting |
63 | 63 |
64 #endif // REMOTING_HOST_VIDEO_FRAME_CAPTURER_FAKE_H_ | 64 #endif // REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_FAKE_H_ |
OLD | NEW |