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

Unified Diff: media/capture/content/thread_safe_capture_oracle.cc

Issue 2686763002: [Mojo Video Capture] Split OnIncomingCapturedVideoFrame() to OnNewBuffer() and OnFrameReadyInBuffer( (Closed)
Patch Set: rebase Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/capture/BUILD.gn ('k') | media/capture/mojo/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/content/thread_safe_capture_oracle.cc
diff --git a/media/capture/content/thread_safe_capture_oracle.cc b/media/capture/content/thread_safe_capture_oracle.cc
index 7e368f597451e0e190f53ec139a79d4a41ba58f7..610b756bd73d6ee157e3d8676c2b7bbd1cb3e743 100644
--- a/media/capture/content/thread_safe_capture_oracle.cc
+++ b/media/capture/content/thread_safe_capture_oracle.cc
@@ -131,12 +131,12 @@ bool ThreadSafeCaptureOracle::ObserveEventAndDecideCapture(
base::saturated_cast<int>(attenuated_utilization * 100.0 + 0.5));
}
- TRACE_EVENT_ASYNC_BEGIN2("gpu.capture", "Capture", output_buffer.id(),
+ TRACE_EVENT_ASYNC_BEGIN2("gpu.capture", "Capture", output_buffer.id,
"frame_number", frame_number, "trigger",
VideoCaptureOracle::EventAsString(event));
auto output_buffer_access =
- output_buffer.handle_provider()->GetHandleForInProcessAccess();
+ output_buffer.handle_provider->GetHandleForInProcessAccess();
DCHECK_EQ(media::PIXEL_STORAGE_CPU, params_.requested_format.pixel_storage);
*storage = VideoFrame::WrapExternalSharedMemory(
params_.requested_format.pixel_format, coded_size,
@@ -206,7 +206,7 @@ void ThreadSafeCaptureOracle::DidCaptureFrame(
scoped_refptr<VideoFrame> frame,
base::TimeTicks reference_time,
bool success) {
- TRACE_EVENT_ASYNC_END2("gpu.capture", "Capture", buffer.id(), "success",
+ TRACE_EVENT_ASYNC_END2("gpu.capture", "Capture", buffer.id, "success",
success, "timestamp",
reference_time.ToInternalValue());
« no previous file with comments | « media/capture/BUILD.gn ('k') | media/capture/mojo/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698