Index: content/browser/compositor/software_output_device_win.cc |
diff --git a/content/browser/compositor/software_output_device_win.cc b/content/browser/compositor/software_output_device_win.cc |
index 1a6b5f64b4085566db94b008d7b35773e160d943..2d6d004e1e41b1fb8890ce79340f4e22450bdf59 100644 |
--- a/content/browser/compositor/software_output_device_win.cc |
+++ b/content/browser/compositor/software_output_device_win.cc |
@@ -19,19 +19,19 @@ SoftwareOutputDeviceWin::SoftwareOutputDeviceWin(ui::Compositor* compositor) |
: hwnd_(compositor->widget()), |
is_hwnd_composited_(false) { |
// TODO(skaslev) Remove this when crbug.com/180702 is fixed. |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
LONG style = GetWindowLong(hwnd_, GWL_EXSTYLE); |
is_hwnd_composited_ = !!(style & WS_EX_COMPOSITED); |
} |
SoftwareOutputDeviceWin::~SoftwareOutputDeviceWin() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
} |
void SoftwareOutputDeviceWin::Resize(const gfx::Size& viewport_pixel_size, |
float scale_factor) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
scale_factor_ = scale_factor; |
@@ -47,7 +47,7 @@ void SoftwareOutputDeviceWin::Resize(const gfx::Size& viewport_pixel_size, |
} |
SkCanvas* SoftwareOutputDeviceWin::BeginPaint(const gfx::Rect& damage_rect) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
DCHECK(contents_); |
damage_rect_ = damage_rect; |
@@ -55,7 +55,7 @@ SkCanvas* SoftwareOutputDeviceWin::BeginPaint(const gfx::Rect& damage_rect) { |
} |
void SoftwareOutputDeviceWin::EndPaint(cc::SoftwareFrameData* frame_data) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
DCHECK(contents_); |
DCHECK(frame_data); |