Index: content/browser/renderer_host/media/video_capture_host.cc |
diff --git a/content/browser/renderer_host/media/video_capture_host.cc b/content/browser/renderer_host/media/video_capture_host.cc |
index 3d3417e63f981a6d46d8c37e17611cd405731b4f..f261995f341df5d0ddfc121468c65449006cd1d9 100644 |
--- a/content/browser/renderer_host/media/video_capture_host.cc |
+++ b/content/browser/renderer_host/media/video_capture_host.cc |
@@ -119,7 +119,7 @@ void VideoCaptureHost::DoSendNewBufferOnIOThread( |
base::SharedMemoryHandle handle, |
int length, |
int buffer_id) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (entries_.find(controller_id) == entries_.end()) |
return; |
@@ -131,7 +131,7 @@ void VideoCaptureHost::DoSendNewBufferOnIOThread( |
void VideoCaptureHost::DoSendFreeBufferOnIOThread( |
const VideoCaptureControllerID& controller_id, |
int buffer_id) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (entries_.find(controller_id) == entries_.end()) |
return; |
@@ -144,7 +144,7 @@ void VideoCaptureHost::DoSendFilledBufferOnIOThread( |
int buffer_id, |
const media::VideoCaptureFormat& format, |
base::TimeTicks timestamp) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (entries_.find(controller_id) == entries_.end()) |
return; |
@@ -159,7 +159,7 @@ void VideoCaptureHost::DoSendFilledMailboxBufferOnIOThread( |
const gpu::MailboxHolder& mailbox_holder, |
const media::VideoCaptureFormat& format, |
base::TimeTicks timestamp) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (entries_.find(controller_id) == entries_.end()) |
return; |
@@ -170,7 +170,7 @@ void VideoCaptureHost::DoSendFilledMailboxBufferOnIOThread( |
void VideoCaptureHost::DoHandleErrorOnIOThread( |
const VideoCaptureControllerID& controller_id) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (entries_.find(controller_id) == entries_.end()) |
return; |
@@ -182,7 +182,7 @@ void VideoCaptureHost::DoHandleErrorOnIOThread( |
void VideoCaptureHost::DoEndedOnIOThread( |
const VideoCaptureControllerID& controller_id) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
DVLOG(1) << "VideoCaptureHost::DoEndedOnIOThread"; |
if (entries_.find(controller_id) == entries_.end()) |
return; |
@@ -215,7 +215,7 @@ bool VideoCaptureHost::OnMessageReceived(const IPC::Message& message, |
void VideoCaptureHost::OnStartCapture(int device_id, |
media::VideoCaptureSessionId session_id, |
const media::VideoCaptureParams& params) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
DVLOG(1) << "VideoCaptureHost::OnStartCapture:" |
<< " session_id=" << session_id |
<< ", device_id=" << device_id |
@@ -255,7 +255,7 @@ void VideoCaptureHost::OnControllerAdded( |
void VideoCaptureHost::DoControllerAddedOnIOThread( |
int device_id, |
const base::WeakPtr<VideoCaptureController>& controller) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
VideoCaptureControllerID controller_id(device_id); |
EntryMap::iterator it = entries_.find(controller_id); |
if (it == entries_.end()) { |
@@ -278,7 +278,7 @@ void VideoCaptureHost::DoControllerAddedOnIOThread( |
} |
void VideoCaptureHost::OnStopCapture(int device_id) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
DVLOG(1) << "VideoCaptureHost::OnStopCapture, device_id " << device_id; |
VideoCaptureControllerID controller_id(device_id); |
@@ -289,7 +289,7 @@ void VideoCaptureHost::OnStopCapture(int device_id) { |
} |
void VideoCaptureHost::OnPauseCapture(int device_id) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
DVLOG(1) << "VideoCaptureHost::OnPauseCapture, device_id " << device_id; |
// Not used. |
Send(new VideoCaptureMsg_StateChanged(device_id, VIDEO_CAPTURE_STATE_ERROR)); |
@@ -298,7 +298,7 @@ void VideoCaptureHost::OnPauseCapture(int device_id) { |
void VideoCaptureHost::OnReceiveEmptyBuffer(int device_id, |
int buffer_id, |
uint32 sync_point) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
VideoCaptureControllerID controller_id(device_id); |
EntryMap::iterator it = entries_.find(controller_id); |
@@ -312,7 +312,7 @@ void VideoCaptureHost::OnReceiveEmptyBuffer(int device_id, |
void VideoCaptureHost::OnGetDeviceSupportedFormats( |
int device_id, |
media::VideoCaptureSessionId capture_session_id) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
DVLOG(1) << "VideoCaptureHost::OnGetDeviceFormats, capture_session_id " |
<< capture_session_id; |
media::VideoCaptureFormats device_supported_formats; |
@@ -330,7 +330,7 @@ void VideoCaptureHost::OnGetDeviceSupportedFormats( |
void VideoCaptureHost::OnGetDeviceFormatsInUse( |
int device_id, |
media::VideoCaptureSessionId capture_session_id) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
DVLOG(1) << "VideoCaptureHost::OnGetDeviceFormatsInUse, capture_session_id " |
<< capture_session_id; |
media::VideoCaptureFormats formats_in_use; |
@@ -345,7 +345,7 @@ void VideoCaptureHost::OnGetDeviceFormatsInUse( |
void VideoCaptureHost::DeleteVideoCaptureControllerOnIOThread( |
const VideoCaptureControllerID& controller_id) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
EntryMap::iterator it = entries_.find(controller_id); |
if (it == entries_.end()) |