| Index: media/tools/shader_bench/shader_bench.cc
|
| diff --git a/media/tools/shader_bench/shader_bench.cc b/media/tools/shader_bench/shader_bench.cc
|
| index 813f6eba923ae1ac785c41ef8b93d03cece9d274..d033357db898461ce721011314f60a9421afa276 100644
|
| --- a/media/tools/shader_bench/shader_bench.cc
|
| +++ b/media/tools/shader_bench/shader_bench.cc
|
| @@ -130,11 +130,9 @@ int main(int argc, char** argv) {
|
| gfx::GLSurface::InitializeOneOff();
|
| scoped_ptr<media::Window> window(new media::Window(width, height));
|
| gfx::GLSurface* surface =
|
| - gfx::GLSurface::CreateViewGLSurface(false, window->PluginWindow());
|
| + gfx::GLSurface::CreateViewGLSurface(false, window->PluginWindow()).get();
|
| gfx::GLContext* context = gfx::GLContext::CreateGLContext(
|
| - NULL,
|
| - surface,
|
| - gfx::PreferDiscreteGpu);
|
| + NULL, surface, gfx::PreferDiscreteGpu).get();
|
| context->MakeCurrent(surface);
|
| // This sets D3DPRESENT_INTERVAL_IMMEDIATE on Windows.
|
| context->SetSwapInterval(0);
|
|
|