diff options
Diffstat (limited to 'gpu/command_buffer/service/gles2_cmd_decoder.cc')
-rw-r--r-- | gpu/command_buffer/service/gles2_cmd_decoder.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc index 29b92c3..406f728 100644 --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc @@ -1365,7 +1365,7 @@ class GLES2DecoderImpl : public base::SupportsWeakPtr<GLES2DecoderImpl>, size_t GetBackbufferMemoryTotal(); // Returns true if the context was just lost due to e.g. GL_ARB_robustness. - bool WasContextLost(); + virtual bool WasContextLost() OVERRIDE; #if defined(OS_MACOSX) void ReleaseIOSurfaceForTexture(GLuint texture_id); @@ -5542,10 +5542,6 @@ error::Error GLES2DecoderImpl::DoDrawArrays( if (simulated_attrib_0) { RestoreStateForAttrib(0); } - if (WasContextLost()) { - LOG(ERROR) << " GLES2DecoderImpl: Context lost during DrawArrays."; - return error::kLostContext; - } } return error::kNoError; } @@ -5661,10 +5657,6 @@ error::Error GLES2DecoderImpl::DoDrawElements( if (simulated_attrib_0) { RestoreStateForAttrib(0); } - if (WasContextLost()) { - LOG(ERROR) << " GLES2DecoderImpl: Context lost during DrawElements."; - return error::kLostContext; - } } return error::kNoError; } |