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

Unified Diff: remoting/host/video_frame_capturer_mac.mm

Issue 11235072: [Chromoting] Change ScreenRefresh to use 'if' instead of 'DCHECK'. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/video_frame_capturer_mac.mm
===================================================================
--- remoting/host/video_frame_capturer_mac.mm (revision 163603)
+++ remoting/host/video_frame_capturer_mac.mm (working copy)
@@ -747,7 +747,9 @@
void VideoFrameCapturerMac::ScreenRefresh(CGRectCount count,
const CGRect* rect_array) {
- DCHECK(!desktop_bounds_.isEmpty());
+ if (desktop_bounds_.isEmpty()) {
+ return;
+ }
SkIRect skirect_array[count];
for (CGRectCount i = 0; i < count; ++i) {
skirect_array[i] = CGRectToSkIRect(rect_array[i]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698