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

Unified Diff: content/browser/aura/gpu_process_transport_factory.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
Index: content/browser/aura/gpu_process_transport_factory.cc
diff --git a/content/browser/aura/gpu_process_transport_factory.cc b/content/browser/aura/gpu_process_transport_factory.cc
index 3c1eedba624c0fde85bbae7d40a18ab311c869cd..06057138de699d92d887327d23330346e59fec6a 100644
--- a/content/browser/aura/gpu_process_transport_factory.cc
+++ b/content/browser/aura/gpu_process_transport_factory.cc
@@ -224,10 +224,9 @@ scoped_ptr<cc::OutputSurface> GpuProcessTransportFactory::CreateOutputSurface(
CommandLine* command_line = CommandLine::ForCurrentProcess();
if (!command_line->HasSwitch(switches::kUIEnableSoftwareCompositing)) {
context_provider = ContextProviderCommandBuffer::Create(
- base::Bind(&GpuProcessTransportFactory::CreateContextCommon,
- base::Unretained(this),
- data->swap_client->AsWeakPtr(),
- data->surface_id));
+ GpuProcessTransportFactory::CreateContextCommon(
+ data->swap_client->AsWeakPtr(),
+ data->surface_id));
}
if (!context_provider.get()) {
if (ui::Compositor::WasInitializedWithThread()) {
@@ -391,9 +390,7 @@ GpuProcessTransportFactory::OffscreenContextProviderForMainThread() {
if (!shared_contexts_main_thread_.get() ||
shared_contexts_main_thread_->DestroyedOnMainThread()) {
shared_contexts_main_thread_ = ContextProviderCommandBuffer::Create(
- base::Bind(&GpuProcessTransportFactory::
- CreateOffscreenCommandBufferContext,
- base::Unretained(this)));
+ GpuProcessTransportFactory::CreateOffscreenCommandBufferContext());
if (shared_contexts_main_thread_) {
shared_contexts_main_thread_->SetLostContextCallback(base::Bind(
&GpuProcessTransportFactory::
@@ -412,9 +409,7 @@ GpuProcessTransportFactory::OffscreenContextProviderForCompositorThread() {
if (!shared_contexts_compositor_thread_.get() ||
shared_contexts_compositor_thread_->DestroyedOnMainThread()) {
shared_contexts_compositor_thread_ = ContextProviderCommandBuffer::Create(
- base::Bind(&GpuProcessTransportFactory::
- CreateOffscreenCommandBufferContext,
- base::Unretained(this)));
+ GpuProcessTransportFactory::CreateOffscreenCommandBufferContext());
}
return shared_contexts_compositor_thread_;
}

Powered by Google App Engine
This is Rietveld 408576698