| Index: content/common/gpu/image_transport_surface.cc
|
| diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc
|
| index 096d3c8b3ccf13f559f8106de3116a45815f249a..19b672b97845e0707bfb1824f3029662cd600c0e 100644
|
| --- a/content/common/gpu/image_transport_surface.cc
|
| +++ b/content/common/gpu/image_transport_surface.cc
|
| @@ -19,6 +19,10 @@
|
| #include "ui/gl/gl_implementation.h"
|
| #include "ui/gl/gl_switches.h"
|
|
|
| +#if defined(OS_WIN)
|
| +#include "ui/base/win/shell.h"
|
| +#endif
|
| +
|
| namespace content {
|
|
|
| ImageTransportSurface::ImageTransportSurface() {}
|
| @@ -157,6 +161,14 @@ bool ImageTransportHelper::MakeCurrent() {
|
| }
|
|
|
| void ImageTransportHelper::SetSwapInterval(gfx::GLContext* context) {
|
| +#if defined(OS_WIN)
|
| + // If Aero Glass is enabled, then the renderer will handle ratelimiting and
|
| + // there's no tearing, so waiting for vsync is unnecessary.
|
| + if (ui::win::IsAeroGlassEnabled()) {
|
| + context->SetSwapInterval(0);
|
| + return;
|
| + }
|
| +#endif
|
| if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableGpuVsync))
|
| context->SetSwapInterval(0);
|
| else
|
|
|