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
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 @@
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.";