Index: gpu/gles2_conform_support/egl/display.cc |
diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc |
index fad076bd17e290430853245d16aafc8184e4b831..18c9727581fb9b6aa3ac9b09fc1e898673cef4f7 100644 |
--- a/gpu/gles2_conform_support/egl/display.cc |
+++ b/gpu/gles2_conform_support/egl/display.cc |
@@ -5,6 +5,8 @@ |
#include "gpu/gles2_conform_support/egl/display.h" |
#include <vector> |
+#include "base/bind.h" |
+#include "base/bind_helpers.h" |
#include "gpu/command_buffer/client/gles2_lib.h" |
#include "gpu/command_buffer/service/context_group.h" |
#include "gpu/gles2_conform_support/egl/config.h" |
@@ -134,7 +136,8 @@ EGLSurface Display::CreateWindowSurface(EGLConfig config, |
} |
command_buffer_->SetPutOffsetChangeCallback( |
- NewCallback(gpu_scheduler_.get(), &gpu::GpuScheduler::PutChanged)); |
+ base::Bind(&gpu::GpuScheduler::PutChanged, |
+ base::Unretained(gpu_scheduler_.get()))); |
surface_.reset(new Surface(win)); |