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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 8586048: base::Bind() conversion for remaining GPU files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 1 month 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 | « no previous file | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index 16c44053435d6d23e62547e9dd878439b517a28c..5e741eec44db823939d97dd955ef91b7980484f7 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -5,6 +5,7 @@
#if defined(ENABLE_GPU)
#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/command_line.h"
#include "base/debug/trace_event.h"
#include "base/shared_memory.h"
@@ -246,12 +247,12 @@ void GpuCommandBufferStub::OnInitialize(
SetSwapInterval();
command_buffer_->SetPutOffsetChangeCallback(
- NewCallback(scheduler_.get(),
- &gpu::GpuScheduler::PutChanged));
+ base::Bind(&gpu::GpuScheduler::PutChanged,
+ base::Unretained(scheduler_.get())));
command_buffer_->SetParseErrorCallback(
- NewCallback(this, &GpuCommandBufferStub::OnParseError));
+ base::Bind(&GpuCommandBufferStub::OnParseError, base::Unretained(this)));
scheduler_->SetScheduledCallback(
- NewCallback(channel_, &GpuChannel::OnScheduled));
+ base::Bind(&GpuChannel::OnScheduled, base::Unretained(channel_)));
// On platforms that use an ImageTransportSurface, the surface
// handles co-ordinating the resize with the browser process. The
@@ -259,13 +260,14 @@ void GpuCommandBufferStub::OnInitialize(
#if !defined(OS_MACOSX) && !defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
if (handle_ != gfx::kNullPluginWindow) {
decoder_->SetResizeCallback(
- NewCallback(this, &GpuCommandBufferStub::OnResize));
+ base::Bind(&GpuCommandBufferStub::OnResize, base::Unretained(this)));
}
#endif
if (watchdog_) {
scheduler_->SetCommandProcessedCallback(
- NewCallback(this, &GpuCommandBufferStub::OnCommandProcessed));
+ base::Bind(&GpuCommandBufferStub::OnCommandProcessed,
+ base::Unretained(this)));
}
if (parent_stub_for_initialization_) {
« no previous file with comments | « no previous file | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698