Index: content/browser/media/capture/web_contents_video_capture_device.cc |
diff --git a/content/browser/media/capture/web_contents_video_capture_device.cc b/content/browser/media/capture/web_contents_video_capture_device.cc |
index 4a931fc54b0c150ed9b4a1f11ed03a4f65862c4d..9b14166dc1d6ae86a3574fa5f400ad749f85740c 100644 |
--- a/content/browser/media/capture/web_contents_video_capture_device.cc |
+++ b/content/browser/media/capture/web_contents_video_capture_device.cc |
@@ -258,8 +258,8 @@ class WebContentsCaptureMachine : public VideoCaptureMachine { |
const scoped_refptr<media::VideoFrame>& target, |
const RenderWidgetHostViewFrameSubscriber::DeliverFrameCallback& |
deliver_frame_cb, |
- bool success, |
- const SkBitmap& bitmap); |
+ const SkBitmap& bitmap, |
+ ReadbackResponse response); |
// Response callback for RWHVP::CopyFromCompositingSurfaceToVideoFrame(). |
void DidCopyFromCompositingSurfaceToVideoFrame( |
@@ -686,13 +686,13 @@ void WebContentsCaptureMachine::DidCopyFromBackingStore( |
const scoped_refptr<media::VideoFrame>& target, |
const RenderWidgetHostViewFrameSubscriber::DeliverFrameCallback& |
deliver_frame_cb, |
- bool success, |
- const SkBitmap& bitmap) { |
+ const SkBitmap& bitmap, |
+ ReadbackResponse response) { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
base::TimeTicks now = base::TimeTicks::Now(); |
DCHECK(render_thread_.get()); |
- if (success) { |
+ if (response == READBACK_SUCCESS) { |
UMA_HISTOGRAM_TIMES("TabCapture.CopyTimeBitmap", now - start_time); |
TRACE_EVENT_ASYNC_STEP_INTO0("mirroring", "Capture", target.get(), |
"Render"); |