| 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_capturer_source.h" | 13 #include "media/base/video_capturer_source.h" |
| 14 #include "media/base/video_frame_pool.h" | 14 #include "media/base/video_frame_pool.h" |
| 15 #include "media/base/video_types.h" | 15 #include "media/base/video_types.h" |
| 16 #include "skia/ext/platform_canvas.h" | |
| 17 #include "skia/ext/refptr.h" | |
| 18 #include "third_party/WebKit/public/platform/WebSize.h" | 16 #include "third_party/WebKit/public/platform/WebSize.h" |
| 17 #include "third_party/skia/include/core/SkCanvas.h" |
| 18 #include "third_party/skia/include/core/SkRefCnt.h" |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 class WebMediaPlayer; | 21 class WebMediaPlayer; |
| 22 } // namespace blink | 22 } // namespace blink |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 | 25 |
| 26 // This class is a VideoCapturerSource taking video snapshots of the ctor-passed | 26 // This class is a VideoCapturerSource taking video snapshots of the ctor-passed |
| 27 // blink::WebMediaPlayer on Render Main thread. The captured data is converted | 27 // blink::WebMediaPlayer on Render Main thread. The captured data is converted |
| 28 // and sent back to |io_task_runner_| via the registered |new_frame_callback_|. | 28 // and sent back to |io_task_runner_| via the registered |new_frame_callback_|. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 // Used on main render thread to schedule future capture events. | 75 // Used on main render thread to schedule future capture events. |
| 76 base::WeakPtrFactory<HtmlVideoElementCapturerSource> weak_factory_; | 76 base::WeakPtrFactory<HtmlVideoElementCapturerSource> weak_factory_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(HtmlVideoElementCapturerSource); | 78 DISALLOW_COPY_AND_ASSIGN(HtmlVideoElementCapturerSource); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace content | 81 } // namespace content |
| 82 | 82 |
| 83 #endif // CONTENT_RENDERER_MEDIA_HTML_VIDEO_ELEMENT_CAPTURER_SOURCE_H_ | 83 #endif // CONTENT_RENDERER_MEDIA_HTML_VIDEO_ELEMENT_CAPTURER_SOURCE_H_ |
| OLD | NEW |