OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
Wez
2013/01/31 00:15:29
Drop (c), and year is 2013.
Welcome to the future
Sergey Ulanov
2013/01/31 02:05:43
Why?
Wez
2013/02/01 00:44:34
From the chromium-dev@ thread:
"In related news,
Sergey Ulanov
2013/02/01 02:02:26
Ah, I haven't seen this e-mail. It says that (c) i
| |
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 CONTENT_BROWSER_RENDERER_HOST_MEDIA_SCREEN_CAPTURER_H_ | |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_SCREEN_CAPTURER_H_ | |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "media/base/media_export.h" | |
11 #include "media/video/capture/screen/screen_capturer.h" | |
12 #include "media/video/capture/video_capture_device.h" | |
13 #include "third_party/skia/include/core/SkBitmap.h" | |
14 | |
15 namespace base { | |
16 class SequencedTaskRunner; | |
17 } // namespace base | |
18 | |
19 namespace media { | |
20 | |
21 // ScreenCaptureDevice implements VideoCaptureDevice for screen. It's | |
Wez
2013/01/31 00:15:29
nit: screen -> the screen
Sergey Ulanov
2013/01/31 02:05:43
Done.
| |
22 // essentially an adapter between ScreenCapturer and VideoCaptureDevice. | |
23 class MEDIA_EXPORT ScreenCaptureDevice : public VideoCaptureDevice { | |
24 public: | |
25 ScreenCaptureDevice(scoped_refptr<base::SequencedTaskRunner> task_runner); | |
Wez
2013/01/31 00:15:29
explicit
Sergey Ulanov
2013/01/31 02:05:43
Done.
| |
26 virtual ~ScreenCaptureDevice(); | |
27 | |
28 // Helper used in tests to supply a fake capturer. | |
29 void set_test_screen_capturer( | |
Wez
2013/01/31 00:15:29
nit: SetScreenCapturerForTest() would read more na
Sergey Ulanov
2013/01/31 02:05:43
Done.
| |
30 scoped_ptr<media::ScreenCapturer> capturer); | |
31 | |
32 // VideoCaptureDevice interface. | |
33 virtual void Allocate(int width, int height, | |
34 int frame_rate, | |
35 EventHandler* event_handler) OVERRIDE; | |
36 virtual void Start() OVERRIDE; | |
37 virtual void Stop() OVERRIDE; | |
38 virtual void DeAllocate() OVERRIDE; | |
39 virtual const Name& device_name() OVERRIDE; | |
40 | |
41 private: | |
42 class Core; | |
43 scoped_refptr<Core> core_; | |
44 Name name_; | |
45 | |
46 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDevice); | |
47 }; | |
48 | |
49 } // namespace media | |
50 | |
51 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_SCREEN_CAPTURER_H_ | |
OLD | NEW |