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

Unified Diff: content/renderer/media/html_video_element_capturer_source.h

Issue 2018183002: HTMLVideoElementCapturer: use SkSurface::MakeRaster ISO skia::CreatePlatformCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/html_video_element_capturer_source.h
diff --git a/content/renderer/media/html_video_element_capturer_source.h b/content/renderer/media/html_video_element_capturer_source.h
index bcee4c4c157225b16f980a80f43d4d376a082ba3..2d7598b5ece551a13b5486f3e0b9c80c0414e553 100644
--- a/content/renderer/media/html_video_element_capturer_source.h
+++ b/content/renderer/media/html_video_element_capturer_source.h
@@ -14,13 +14,14 @@
#include "media/base/video_frame_pool.h"
#include "media/base/video_types.h"
#include "third_party/WebKit/public/platform/WebSize.h"
-#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkRefCnt.h"
namespace blink {
class WebMediaPlayer;
} // namespace blink
+class SkSurface;
+
namespace content {
// This class is a VideoCapturerSource taking video snapshots of the ctor-passed
@@ -56,7 +57,7 @@ class CONTENT_EXPORT HtmlVideoElementCapturerSource final
void sendNewFrame();
media::VideoFramePool frame_pool_;
- sk_sp<SkCanvas> canvas_;
+ sk_sp<SkSurface> surface_;
const base::WeakPtr<blink::WebMediaPlayer> web_media_player_;
const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698