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

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

Issue 251343002: Remove offscreen compositor contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-offscreencontext: include Created 6 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/context_provider_command_buffer.cc
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc
index edfbb7dab2fb78dcf20a8d444177c36516bba446..86331cc8bf0da3af3e5e19b5c609bc0d85c800a6 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/content/common/gpu/client/context_provider_command_buffer.cc
@@ -50,7 +50,6 @@ ContextProviderCommandBuffer::ContextProviderCommandBuffer(
const std::string& debug_name)
: context3d_(context3d.Pass()),
debug_name_(debug_name),
- leak_on_destroy_(false),
destroyed_(false) {
DCHECK(main_thread_checker_.CalledOnValidThread());
DCHECK(context3d_);
@@ -69,13 +68,6 @@ ContextProviderCommandBuffer::~ContextProviderCommandBuffer() {
CommandBufferProxyImpl::MemoryAllocationChangedCallback());
}
lost_context_callback_proxy_.reset();
-
- if (leak_on_destroy_) {
- WebGraphicsContext3DCommandBufferImpl* context3d ALLOW_UNUSED =
- context3d_.release();
- webkit::gpu::GrContextForWebGraphicsContext3D* gr_context ALLOW_UNUSED =
- gr_context_.release();
- }
}

Powered by Google App Engine
This is Rietveld 408576698