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

Side by Side Diff: content/common/video_capture.mojom

Issue 2583883003: Rebase of Removing gpu::SyncToken usage from video capture pipeline (Closed)
Patch Set: Rebase. Created 3 years, 11 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 module content.mojom; 5 module content.mojom;
6 6
7 import "gpu/ipc/common/sync_token.mojom";
8 import "media/mojo/interfaces/media_types.mojom"; 7 import "media/mojo/interfaces/media_types.mojom";
9 import "media/capture/mojo/video_capture_types.mojom"; 8 import "media/capture/mojo/video_capture_types.mojom";
10 import "ui/gfx/geometry/mojo/geometry.mojom"; 9 import "ui/gfx/geometry/mojo/geometry.mojom";
11 10
12 // This file decribes the communication between a given Renderer Host interface 11 // This file decribes the communication between a given Renderer Host interface
13 // implementation (VideoCaptureHost) and a remote VideoCaptureObserver. 12 // implementation (VideoCaptureHost) and a remote VideoCaptureObserver.
14 // VideoCaptureHost offers a stateless part (GetDeviceSupportedFormats() and 13 // VideoCaptureHost offers a stateless part (GetDeviceSupportedFormats() and
15 // GetDeviceFormatsInUse()) that can be invoked at any time, and a stateful part 14 // GetDeviceFormatsInUse()) that can be invoked at any time, and a stateful part
16 // sandwiched between Start() and Stop(). A Client's OnStateChanged() can be 15 // sandwiched between Start() and Stop(). A Client's OnStateChanged() can be
17 // notified any time during the stateful part. The stateful part is composed of 16 // notified any time during the stateful part. The stateful part is composed of
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 90
92 // Resume |device_id| video capture, in |session_id| and with |params|. 91 // Resume |device_id| video capture, in |session_id| and with |params|.
93 Resume(int32 device_id, int32 session_id, media.mojom.VideoCaptureParams param s); 92 Resume(int32 device_id, int32 session_id, media.mojom.VideoCaptureParams param s);
94 93
95 // Requests that the video capturer send a frame "soon" (e.g., to resolve 94 // Requests that the video capturer send a frame "soon" (e.g., to resolve
96 // picture loss or quality issues). 95 // picture loss or quality issues).
97 RequestRefreshFrame(int32 device_id); 96 RequestRefreshFrame(int32 device_id);
98 97
99 // Indicates that a renderer has finished using a previously shared buffer. 98 // Indicates that a renderer has finished using a previously shared buffer.
100 ReleaseBuffer(int32 device_id, int32 buffer_id, 99 ReleaseBuffer(int32 device_id, int32 buffer_id,
101 gpu.mojom.SyncToken sync_token,
102 double consumer_resource_utilization); 100 double consumer_resource_utilization);
103 101
104 // Get the formats supported by a device referenced by |session_id|. 102 // Get the formats supported by a device referenced by |session_id|.
105 GetDeviceSupportedFormats(int32 device_id, int32 session_id) 103 GetDeviceSupportedFormats(int32 device_id, int32 session_id)
106 => (array<media.mojom.VideoCaptureFormat> formats_supported); 104 => (array<media.mojom.VideoCaptureFormat> formats_supported);
107 105
108 // Get the format(s) in use by a device referenced by |session_id|. 106 // Get the format(s) in use by a device referenced by |session_id|.
109 GetDeviceFormatsInUse(int32 device_id, int32 session_id) 107 GetDeviceFormatsInUse(int32 device_id, int32 session_id)
110 => (array<media.mojom.VideoCaptureFormat> formats_in_use); 108 => (array<media.mojom.VideoCaptureFormat> formats_in_use);
111 }; 109 };
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_host.cc ('k') | content/renderer/media/video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698