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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc

Issue 1885463003: Remove WebGraphicsContext3DCommandBufferImpl::IsCommandBufferContextLost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sharelost: moreerror Created 4 years, 8 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
Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index 4496805025fd580c6cf227b38687af57cca8c07f..38cfc1ce2e3267a81de5306192402323ae69546d 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -317,15 +317,6 @@ WebGraphicsContext3DCommandBufferImpl::GetContextSupport() {
return real_gl_.get();
}
-bool WebGraphicsContext3DCommandBufferImpl::IsCommandBufferContextLost() {
- // If the channel shut down unexpectedly, let that supersede the
- // command buffer's state.
- if (host_.get() && host_->IsLost())
- return true;
- gpu::CommandBuffer::State state = command_buffer_->GetLastState();
- return gpu::error::IsError(state.error);
-}
-
// static
WebGraphicsContext3DCommandBufferImpl*
WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext(
@@ -337,12 +328,7 @@ WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext(
const GURL& active_url,
const SharedMemoryLimits& limits,
WebGraphicsContext3DCommandBufferImpl* share_context) {
- if (!host)
- return NULL;
-
- if (share_context && share_context->IsCommandBufferContextLost())
- return NULL;
-
+ DCHECK(host);
return new WebGraphicsContext3DCommandBufferImpl(
gpu::kNullSurfaceHandle, active_url, host, attributes, gpu_preference,
share_resources, automatic_flushes, limits, share_context);
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698