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

Unified Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 10407055: Fix for GLInProcessContext (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
index d08280be069c7b61e093a0dd08fb719e545a16ee..5c36c3620a62fa8fd46ba62ec4996a11d3280977 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -313,6 +313,9 @@ GLInProcessContext::Error GLInProcessContext::GetError() {
}
bool GLInProcessContext::IsCommandBufferContextLost() {
+ if (!command_buffer_.get()) {
+ return true;
+ }
CommandBuffer::State state = command_buffer_->GetState();
return state.error == ::gpu::error::kLostContext;
}
@@ -510,7 +513,7 @@ void GLInProcessContext::Destroy() {
command_buffer_.reset();
if (decoder_.get()) {
- decoder_->Destroy(context_lost);
+ decoder_->Destroy(!context_lost);
}
}
« 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