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

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

Issue 2735083002: [Mojo Video Capture] Add test coverage for accelerated jpeg decoding (Closed)
Patch Set: Removed OnStoppedUsingGpuDecode() event. Created 3 years, 9 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 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_ 5 #ifndef MEDIA_CAPTURE_VIDEO_VIDEO_FRAME_RECEIVER_H_
6 #define MEDIA_CAPTURE_VIDEO_VIDEO_FRAME_RECEIVER_H_ 6 #define MEDIA_CAPTURE_VIDEO_VIDEO_FRAME_RECEIVER_H_
7 7
8 #include "media/capture/capture_export.h" 8 #include "media/capture/capture_export.h"
9 #include "media/capture/mojo/video_capture_types.mojom.h" 9 #include "media/capture/mojo/video_capture_types.mojom.h"
10 #include "media/capture/video/video_capture_buffer_handle.h" 10 #include "media/capture/video/video_capture_buffer_handle.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // OnFrameReadInBuffer() for the same buffer. In that case, it means that the 46 // OnFrameReadInBuffer() for the same buffer. In that case, it means that the
47 // caller is asking the VideoFrameReceiver to release the read permission and 47 // caller is asking the VideoFrameReceiver to release the read permission and
48 // buffer handle at its earliest convenience. 48 // buffer handle at its earliest convenience.
49 // After this call, a producer may immediately reuse the retired |buffer_id| 49 // After this call, a producer may immediately reuse the retired |buffer_id|
50 // with a new buffer via a call to OnNewBufferHandle(). 50 // with a new buffer via a call to OnNewBufferHandle().
51 virtual void OnBufferRetired(int buffer_id) = 0; 51 virtual void OnBufferRetired(int buffer_id) = 0;
52 52
53 virtual void OnError() = 0; 53 virtual void OnError() = 0;
54 virtual void OnLog(const std::string& message) = 0; 54 virtual void OnLog(const std::string& message) = 0;
55 virtual void OnStarted() = 0; 55 virtual void OnStarted() = 0;
56 virtual void OnStartedUsingGpuDecode(){};
mcasas 2017/03/08 01:33:17 s/(){}/() {}/ however, same comments as above, why
chfremer 2017/03/08 18:58:08 Done.
56 }; 57 };
57 58
58 } // namespace media 59 } // namespace media
59 60
60 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_FRAME_RECEIVER_H_ 61 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_FRAME_RECEIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698