summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-16 16:35:44 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-16 16:35:44 +0000
commit0e9346b352126087fb7bfb7d5fc96bdec7ddaaaf (patch)
tree2aaac51b384b37eb0e502afbe0c66dc4254d76c2 /gpu
parent9f279b27c8bc98c2ca31b4c5f42c7ab9deeff7ce (diff)
downloadchromium_src-0e9346b352126087fb7bfb7d5fc96bdec7ddaaaf.zip
chromium_src-0e9346b352126087fb7bfb7d5fc96bdec7ddaaaf.tar.gz
chromium_src-0e9346b352126087fb7bfb7d5fc96bdec7ddaaaf.tar.bz2
Change CHECK that context is current to DCHECK.
The context can become not current after a resize callback due to a lost device. The code after the CHECK handles this fine, so convert this to a DCHECK instead. BUG=189889 Review URL: https://chromiumcodereview.appspot.com/12880002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index ab9ba1a..a90c59b 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -3521,7 +3521,7 @@ error::Error GLES2DecoderImpl::HandleResizeCHROMIUM(
if (!resize_callback_.is_null()) {
resize_callback_.Run(gfx::Size(width, height));
- CHECK(context_->IsCurrent(surface_.get()));
+ DCHECK(context_->IsCurrent(surface_.get()));
if (!context_->IsCurrent(surface_.get())) {
LOG(ERROR) << "GLES2DecoderImpl: Context lost because context no longer "
<< "current after resize callback.";