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

Unified Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 11606012: cc: Unify context losing machinery (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
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 d7ae282dc66a01a7dbbc9120c943596c3c627af3..93cca433d3460e033b297744b9aabe2302e19692 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -1657,6 +1657,15 @@ WGC3Dboolean WebGraphicsContext3DInProcessCommandBufferImpl::
return gl_->UnmapBufferCHROMIUM(target);
}
+void WebGraphicsContext3DInProcessCommandBufferImpl::loseContextCHROMIUM(
+ WGC3Denum current, WGC3Denum other) {
+ ClearContext();
+ // TODO(danakj): Calling LoseContextCHROMIUM() on the command buffer also
+ // prevents recreating a valid context. So we only simulate the loss for now.
+ // http://crbug.com/166671
+ context_lost_reason_ = current;
+}
+
GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl::
onCreateGrGLInterface() {
return CreateCommandBufferSkiaGLBinding();
« cc/thread_proxy.cc ('K') | « webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698