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

Side by Side Diff: third_party/WebKit/public/platform/WebImageCaptureFrameGrabber.h

Issue 1899403002: MediaStream Image Capture (2): Platform::ImageCaptureFrameGrabber and grabFrame() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. LayoutTests: Replace assert_array_equals with an for-each: assert_aprox_equals 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
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 WebImageCaptureFrameGrabber_h
6 #define WebImageCaptureFrameGrabber_h
7
8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/WebCommon.h"
10 #include "third_party/skia/include/core/SkRefCnt.h"
11
12 class SkImage;
13
14 namespace blink {
15
16 class WebMediaStreamTrack;
17
18 using WebImageCaptureGrabFrameCallbacks = WebCallbacks<sk_sp<SkImage>, void>;
19
20 // Platform interface of an ImageCapture class for grabFrame() calls.
21 class WebImageCaptureFrameGrabber {
22 public:
23 virtual ~WebImageCaptureFrameGrabber() { }
24
25 virtual void grabFrame(WebMediaStreamTrack*, WebImageCaptureGrabFrameCallbac ks*) = 0;
26 };
27
28 } // namespace blink
29
30 #endif // WebImageCaptureFrameGrabber_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698