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

Unified Diff: gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 1790753002: Expose GLES2Interface to blink, and delete isContextLost() from WGC3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wgc3d: deps-for-tests Created 4 years, 9 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 | « gpu/blink/webgraphicscontext3d_impl.cc ('k') | third_party/WebKit/Source/modules/webgl/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc
diff --git a/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc b/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc
index cc18157c5251202277574e863167f5cfd2269e8f..5daf17838020e817184ead2faf07c087bf24c38f 100644
--- a/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -136,7 +136,7 @@ bool WebGraphicsContext3DInProcessCommandBufferImpl::MaybeInitializeGL() {
}
real_gl_ = context_->GetImplementation();
- setGLInterface(real_gl_);
+ SetGLInterface(real_gl_);
real_gl_->TraceBeginCHROMIUM("WebGraphicsContext3D",
"InProcessContext");
@@ -149,7 +149,9 @@ bool
WebGraphicsContext3DInProcessCommandBufferImpl::InitializeOnCurrentThread() {
if (!MaybeInitializeGL())
return false;
- return context_ && !isContextLost();
+ return context_ &&
+ context_->GetImplementation()->GetGraphicsResetStatusKHR() ==
+ GL_NO_ERROR;
}
void WebGraphicsContext3DInProcessCommandBufferImpl::SetLock(base::Lock* lock) {
« no previous file with comments | « gpu/blink/webgraphicscontext3d_impl.cc ('k') | third_party/WebKit/Source/modules/webgl/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698