| Index: media/tools/shader_bench/shader_bench.cc
|
| ===================================================================
|
| --- media/tools/shader_bench/shader_bench.cc (revision 85357)
|
| +++ media/tools/shader_bench/shader_bench.cc (working copy)
|
| @@ -135,8 +135,8 @@
|
| scoped_ptr<media::Window> window(new media::Window(width, height));
|
| gfx::GLSurface* surface =
|
| gfx::GLSurface::CreateViewGLSurface(window->PluginWindow());
|
| - gfx::GLContext* context = gfx::GLContext::CreateGLContext(surface, NULL);
|
| - context->MakeCurrent();
|
| + gfx::GLContext* context = gfx::GLContext::CreateGLContext(NULL);
|
| + context->MakeCurrent(surface);
|
| // This sets D3DPRESENT_INTERVAL_IMMEDIATE on Windows.
|
| context->SetSwapInterval(0);
|
|
|
| @@ -155,7 +155,7 @@
|
| for (int i = 0; i < kNumPainters; i++) {
|
| scoped_ptr<GPUPainter> painter(painters[i].painter);
|
| painter->LoadFrames(&frames);
|
| - painter->SetGLContext(context);
|
| + painter->SetGLContext(surface, context);
|
| painter->Initialize(width, height);
|
| printf("Running %s tests...", painters[i].name);
|
| RunTest(window.get(), painter.get());
|
|
|