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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 23247002: Remove base::Callback from ContextProvider creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/context_provider_command_buffer.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index f15738dd00aa0f4b4096928efe16ee39d3030c9a..1662f78bdfea7c379beac748209a8b92db2c24a9 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -962,9 +962,7 @@ RenderThreadImpl::OffscreenContextProviderForMainThread() {
if (!shared_contexts_main_thread_.get() ||
shared_contexts_main_thread_->DestroyedOnMainThread()) {
shared_contexts_main_thread_ =
- ContextProviderCommandBuffer::Create(
- base::Bind(&RenderThreadImpl::CreateOffscreenContext3d,
- base::Unretained(this)));
+ ContextProviderCommandBuffer::Create(CreateOffscreenContext3d());
if (shared_contexts_main_thread_.get() &&
!shared_contexts_main_thread_->BindToCurrentThread())
shared_contexts_main_thread_ = NULL;
@@ -986,9 +984,7 @@ RenderThreadImpl::OffscreenContextProviderForCompositorThread() {
if (!shared_contexts_compositor_thread_.get() ||
shared_contexts_compositor_thread_->DestroyedOnMainThread()) {
shared_contexts_compositor_thread_ =
- ContextProviderCommandBuffer::Create(
- base::Bind(&RenderThreadImpl::CreateOffscreenContext3d,
- base::Unretained(this)));
+ ContextProviderCommandBuffer::Create(CreateOffscreenContext3d());
}
return shared_contexts_compositor_thread_;
}
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698