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

Side by Side Diff: media/capture/video/video_frame_receiver.h

Issue 2518143004: [Mojo Video Capture] Replace RESOURCE_UTILIZATION with interface ReceiverLoadObserver (Closed)
Patch Set: Fix for android-only code Created 4 years 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
« no previous file with comments | « media/capture/video/video_capture_device_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 MEDIA_CAPTURE_VIDEO_VIDEO_FRAME_RECEIVER_H_
6 #define MEDIA_CAPTURE_VIDEO_VIDEO_FRAME_RECEIVER_H_
7
5 #include "media/capture/capture_export.h" 8 #include "media/capture/capture_export.h"
6 #include "media/capture/video/video_capture_device.h" 9 #include "media/capture/video/video_capture_device.h"
7 10
8 namespace media { 11 namespace media {
9 12
10 // Callback interface for VideoCaptureDeviceClient to communicate with its 13 // Callback interface for VideoCaptureDeviceClient to communicate with its
11 // clients. 14 // clients.
12 class CAPTURE_EXPORT VideoFrameReceiver { 15 class CAPTURE_EXPORT VideoFrameReceiver {
13 public: 16 public:
14 virtual ~VideoFrameReceiver(){}; 17 virtual ~VideoFrameReceiver(){};
15 18
16 virtual void OnIncomingCapturedVideoFrame( 19 virtual void OnIncomingCapturedVideoFrame(
17 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer, 20 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer,
18 scoped_refptr<media::VideoFrame> frame) = 0; 21 scoped_refptr<media::VideoFrame> frame) = 0;
19 virtual void OnError() = 0; 22 virtual void OnError() = 0;
20 virtual void OnLog(const std::string& message) = 0; 23 virtual void OnLog(const std::string& message) = 0;
21 virtual void OnBufferDestroyed(int buffer_id_to_drop) = 0; 24 virtual void OnBufferDestroyed(int buffer_id_to_drop) = 0;
22 }; 25 };
23 26
24 } // namespace media 27 } // namespace media
28
29 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_FRAME_RECEIVER_H_
OLDNEW
« no previous file with comments | « media/capture/video/video_capture_device_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698