| Index: content/common/gpu/image_transport_surface.cc
|
| ===================================================================
|
| --- content/common/gpu/image_transport_surface.cc (revision 137438)
|
| +++ content/common/gpu/image_transport_surface.cc (working copy)
|
| @@ -172,11 +172,11 @@
|
| return decoder->MakeCurrent();
|
| }
|
|
|
| -void ImageTransportHelper::SetSwapInterval() {
|
| +void ImageTransportHelper::SetSwapInterval(gfx::GLContext* context) {
|
| if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableGpuVsync))
|
| - Decoder()->GetGLContext()->SetSwapInterval(0);
|
| + context->SetSwapInterval(0);
|
| else
|
| - Decoder()->GetGLContext()->SetSwapInterval(1);
|
| + context->SetSwapInterval(1);
|
| }
|
|
|
| void ImageTransportHelper::Suspend() {
|
| @@ -230,7 +230,7 @@
|
|
|
| #if defined(OS_WIN)
|
| Decoder()->MakeCurrent();
|
| - SetSwapInterval();
|
| + SetSwapInterval(Decoder()->GetGLContext());
|
| #endif
|
| }
|
|
|
| @@ -298,7 +298,7 @@
|
|
|
| bool PassThroughImageTransportSurface::OnMakeCurrent(gfx::GLContext* context) {
|
| if (!did_set_swap_interval_) {
|
| - helper_->SetSwapInterval();
|
| + ImageTransportHelper::SetSwapInterval(context);
|
| did_set_swap_interval_ = true;
|
| }
|
| return true;
|
|
|