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

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: reillyg@ comments and made SkBitmap immutable 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
11 // Can't use SkImage because that has shared ownership semantics whereas
12 // WebCallbacks like moveable-non-copyable types.
13 class SkBitmap;
14
15 namespace blink {
16
17 class WebMediaStreamTrack;
18
19 using WebImageCaptureGrabFrameCallbacks = WebCallbacks<std::unique_ptr<SkBitmap> , void>;
20
21 // Platform interface of an ImageCapture class for grabFrame() calls.
22 class WebImageCaptureFrameGrabber {
23 public:
24 virtual ~WebImageCaptureFrameGrabber() { }
25
26 virtual void grabFrame(WebMediaStreamTrack*, WebImageCaptureGrabFrameCallbac ks*) = 0;
27 };
28
29 } // namespace blink
30
31 #endif // WebImageCaptureFrameGrabber_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698