summaryrefslogtreecommitdiffstats
path: root/media/tools/shader_bench/shader_bench.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/tools/shader_bench/shader_bench.cc')
-rw-r--r--media/tools/shader_bench/shader_bench.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/media/tools/shader_bench/shader_bench.cc b/media/tools/shader_bench/shader_bench.cc
index 813f6eb..d033357 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);