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

Side by Side Diff: remoting/capturer/video_frame_capturer_fake.h

Issue 11817048: Revert 175648 because it causes http://crbug.com/169126. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « no previous file | remoting/capturer/video_frame_capturer_fake.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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"
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 generates a picture of size kWidth x kHeight.
21 static const int kWidth = 800;
22 static const int kHeight = 600;
23
24 VideoFrameCapturerFake(); 20 VideoFrameCapturerFake();
25 virtual ~VideoFrameCapturerFake(); 21 virtual ~VideoFrameCapturerFake();
26 22
27 // Overridden from VideoFrameCapturer: 23 // Overridden from VideoFrameCapturer:
28 virtual void Start(Delegate* delegate) OVERRIDE; 24 virtual void Start(Delegate* delegate) OVERRIDE;
29 virtual void Stop() OVERRIDE; 25 virtual void Stop() OVERRIDE;
30 virtual void InvalidateRegion(const SkRegion& invalid_region) OVERRIDE; 26 virtual void InvalidateRegion(const SkRegion& invalid_region) OVERRIDE;
31 virtual void CaptureFrame() OVERRIDE; 27 virtual void CaptureFrame() OVERRIDE;
32 28
33 private: 29 private:
(...skipping 20 matching lines...) Expand all
54 50
55 // The current buffer with valid data for reading. 51 // The current buffer with valid data for reading.
56 int current_buffer_; 52 int current_buffer_;
57 53
58 DISALLOW_COPY_AND_ASSIGN(VideoFrameCapturerFake); 54 DISALLOW_COPY_AND_ASSIGN(VideoFrameCapturerFake);
59 }; 55 };
60 56
61 } // namespace remoting 57 } // namespace remoting
62 58
63 #endif // REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_FAKE_H_ 59 #endif // REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_FAKE_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/capturer/video_frame_capturer_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698