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

Side by Side Diff: services/video_capture/public/cpp/receiver_media_to_mojo_adapter.h

Issue 2848973002: [Mojo Video Capture] Implement a VideoCaptureProvider using the Mojo service (part 1) (Closed)
Patch Set: Incorporated mcasas@'s suggestions from PatchSet 3 Created 3 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
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 SERVICES_VIDEO_CAPTURE_PUBLIC_CPP_RECEIVER_MEDIA_TO_MOJO_ADAPTER_H_ 5 #ifndef SERVICES_VIDEO_CAPTURE_PUBLIC_CPP_RECEIVER_MEDIA_TO_MOJO_ADAPTER_H_
6 #define SERVICES_VIDEO_CAPTURE_PUBLIC_CPP_RECEIVER_MEDIA_TO_MOJO_ADAPTER_H_ 6 #define SERVICES_VIDEO_CAPTURE_PUBLIC_CPP_RECEIVER_MEDIA_TO_MOJO_ADAPTER_H_
7 7
8 #include "media/capture/video/video_frame_receiver.h" 8 #include "media/capture/video/video_frame_receiver.h"
9 #include "services/video_capture/public/interfaces/receiver.mojom.h" 9 #include "services/video_capture/public/interfaces/receiver.mojom.h"
10 10
(...skipping 11 matching lines...) Expand all
22 void OnNewBufferHandle(int32_t buffer_id, 22 void OnNewBufferHandle(int32_t buffer_id,
23 mojo::ScopedSharedBufferHandle buffer_handle) override; 23 mojo::ScopedSharedBufferHandle buffer_handle) override;
24 void OnFrameReadyInBuffer( 24 void OnFrameReadyInBuffer(
25 int32_t buffer_id, 25 int32_t buffer_id,
26 int32_t frame_feedback_id, 26 int32_t frame_feedback_id,
27 mojom::ScopedAccessPermissionPtr access_permission, 27 mojom::ScopedAccessPermissionPtr access_permission,
28 media::mojom::VideoFrameInfoPtr frame_info) override; 28 media::mojom::VideoFrameInfoPtr frame_info) override;
29 void OnBufferRetired(int32_t buffer_id) override; 29 void OnBufferRetired(int32_t buffer_id) override;
30 void OnError() override; 30 void OnError() override;
31 void OnLog(const std::string& message) override; 31 void OnLog(const std::string& message) override;
32 void OnStarted() override;
33 void OnStartedUsingGpuDecode() override;
32 34
33 private: 35 private:
34 std::unique_ptr<media::VideoFrameReceiver> receiver_; 36 std::unique_ptr<media::VideoFrameReceiver> receiver_;
35 }; 37 };
36 38
37 } // namespace video_capture 39 } // namespace video_capture
38 40
39 #endif // SERVICES_VIDEO_CAPTURE_PUBLIC_CPP_RECEIVER_MEDIA_TO_MOJO_ADAPTER_H_ 41 #endif // SERVICES_VIDEO_CAPTURE_PUBLIC_CPP_RECEIVER_MEDIA_TO_MOJO_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698