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

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

Issue 1907783002: Delete //gpu/blink/ and WebGraphicsContext3DImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm-webgraphicscontext3dimpl: noflush 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
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fa3a16f1fc034c53ca764110ee090b5e87210efb..01357764c75977c07d89afd429d849f3b75e0599 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -27,7 +27,6 @@
#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buffer/client/gles2_cmd_helper.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
-#include "gpu/command_buffer/client/gles2_trace_implementation.h"
#include "gpu/command_buffer/client/gpu_switches.h"
#include "gpu/command_buffer/client/shared_memory_limits.h"
#include "gpu/command_buffer/client/transfer_buffer.h"
@@ -241,8 +240,6 @@ bool WebGraphicsContext3DCommandBufferImpl::CreateContext(
gles2_helper_.get(), gles2_share_group.get(), transfer_buffer_.get(),
bind_generates_resource, lose_context_when_out_of_memory,
support_client_side_arrays, command_buffer_.get()));
- SetGLInterface(real_gl_.get());
-
if (!real_gl_->Initialize(memory_limits.start_transfer_buffer_size,
memory_limits.min_transfer_buffer_size,
memory_limits.max_transfer_buffer_size,
@@ -254,11 +251,6 @@ bool WebGraphicsContext3DCommandBufferImpl::CreateContext(
if (add_to_share_group)
share_group_->AddContextLocked(this);
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableGpuClientTracing)) {
- trace_gl_.reset(new gpu::gles2::GLES2TraceImplementation(GetGLInterface()));
- SetGLInterface(trace_gl_.get());
- }
return true;
}
@@ -280,17 +272,6 @@ bool WebGraphicsContext3DCommandBufferImpl::InitializeOnCurrentThread(
void WebGraphicsContext3DCommandBufferImpl::Destroy() {
share_group_->RemoveContext(this);
- gpu::gles2::GLES2Interface* gl = GetGLInterface();
- if (gl) {
- // First flush the context to ensure that any pending frees of resources
- // are completed. Otherwise, if this context is part of a share group,
- // those resources might leak. Also, any remaining side effects of commands
- // issued on this context might not be visible to other contexts in the
- // share group.
- gl->Flush();
- SetGLInterface(nullptr);
- }
-
trace_gl_.reset();
real_gl_.reset();
transfer_buffer_.reset();
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698