| OLD | NEW | 
|   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  Loading... | 
|  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() = 0; | 
|  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_ | 
| OLD | NEW |