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

Side by Side Diff: content/renderer/media/html_video_element_capturer_source.h

Issue 1951013003: Remove all uses of skia::RefPtr and stale includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Florin's smart pointer fix Created 4 years, 6 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698