diff options
author | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-23 23:42:45 +0000 |
---|---|---|
committer | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-23 23:42:45 +0000 |
commit | 3457979a4fff8b70c7fc23776edd229debae919b (patch) | |
tree | 5f791ddbd832a21006858da5510a1b31f3abb6bb /remoting | |
parent | 4060442a0cd7c8521f8d034c9f9e855cb61627e6 (diff) | |
download | chromium_src-3457979a4fff8b70c7fc23776edd229debae919b.zip chromium_src-3457979a4fff8b70c7fc23776edd229debae919b.tar.gz chromium_src-3457979a4fff8b70c7fc23776edd229debae919b.tar.bz2 |
[Chromoting] Change ScreenRefresh to use 'if' instead of 'DCHECK'.
BUG=154716
Review URL: https://chromiumcodereview.appspot.com/11235072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163727 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/host/video_frame_capturer_mac.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/remoting/host/video_frame_capturer_mac.mm b/remoting/host/video_frame_capturer_mac.mm index edf1a87..ca85c0d 100644 --- a/remoting/host/video_frame_capturer_mac.mm +++ b/remoting/host/video_frame_capturer_mac.mm @@ -747,7 +747,9 @@ void VideoFrameCapturerMac::ScreenConfigurationChanged() { 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]); |