| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_RENDERER_MEDIA_HTML_VIDEO_ELEMENT_CAPTURER_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_HTML_VIDEO_ELEMENT_CAPTURER_SOURCE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_HTML_VIDEO_ELEMENT_CAPTURER_SOURCE_H_ | 6 #define CONTENT_RENDERER_MEDIA_HTML_VIDEO_ELEMENT_CAPTURER_SOURCE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "media/base/video_frame_pool.h" | 13 #include "media/base/video_frame_pool.h" |
| 14 #include "media/base/video_types.h" | 14 #include "media/base/video_types.h" |
| 15 #include "media/capture/video_capturer_source.h" | 15 #include "media/capture/video_capturer_source.h" |
| 16 #include "third_party/WebKit/public/platform/WebSize.h" | 16 #include "third_party/WebKit/public/platform/WebSize.h" |
| 17 #include "third_party/skia/include/core/SkRefCnt.h" | 17 #include "third_party/skia/include/core/SkRefCnt.h" |
| 18 | 18 |
| 19 namespace base{ |
| 20 class SingleThreadTaskRunner; |
| 21 } |
| 22 |
| 19 namespace blink { | 23 namespace blink { |
| 20 class WebMediaPlayer; | 24 class WebMediaPlayer; |
| 21 } // namespace blink | 25 } // namespace blink |
| 22 | 26 |
| 23 class SkSurface; | 27 class SkSurface; |
| 24 | 28 |
| 25 namespace content { | 29 namespace content { |
| 26 | 30 |
| 27 // This class is a VideoCapturerSource taking video snapshots of the ctor-passed | 31 // This class is a VideoCapturerSource taking video snapshots of the ctor-passed |
| 28 // blink::WebMediaPlayer on Render Main thread. The captured data is converted | 32 // blink::WebMediaPlayer on Render Main thread. The captured data is converted |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 79 |
| 76 // Used on main render thread to schedule future capture events. | 80 // Used on main render thread to schedule future capture events. |
| 77 base::WeakPtrFactory<HtmlVideoElementCapturerSource> weak_factory_; | 81 base::WeakPtrFactory<HtmlVideoElementCapturerSource> weak_factory_; |
| 78 | 82 |
| 79 DISALLOW_COPY_AND_ASSIGN(HtmlVideoElementCapturerSource); | 83 DISALLOW_COPY_AND_ASSIGN(HtmlVideoElementCapturerSource); |
| 80 }; | 84 }; |
| 81 | 85 |
| 82 } // namespace content | 86 } // namespace content |
| 83 | 87 |
| 84 #endif // CONTENT_RENDERER_MEDIA_HTML_VIDEO_ELEMENT_CAPTURER_SOURCE_H_ | 88 #endif // CONTENT_RENDERER_MEDIA_HTML_VIDEO_ELEMENT_CAPTURER_SOURCE_H_ |
| OLD | NEW |