Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Unified Diff: content/browser/renderer_host/compositing_iosurface_context_mac.mm

Issue 171513012: Make --disable-gpu-vsync work with CoreAnimation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add matching loops Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/compositing_iosurface_context_mac.mm
diff --git a/content/browser/renderer_host/compositing_iosurface_context_mac.mm b/content/browser/renderer_host/compositing_iosurface_context_mac.mm
index 2daef5de9b3ff5f339d6bb9cb42451d2c581a6c8..899703bdf42223f3f8714a80f7ae33b6d20a64d0 100644
--- a/content/browser/renderer_host/compositing_iosurface_context_mac.mm
+++ b/content/browser/renderer_host/compositing_iosurface_context_mac.mm
@@ -144,10 +144,13 @@ CompositingIOSurfaceContext::Get(int window_number) {
return NULL;
}
- scoped_refptr<DisplayLinkMac> display_link = DisplayLinkMac::Create();
- if (!display_link) {
- LOG(ERROR) << "Failed to create display link for GL context.";
- return NULL;
+ scoped_refptr<DisplayLinkMac> display_link;
+ if (!is_vsync_disabled) {
+ display_link = DisplayLinkMac::Create();
+ if (!display_link) {
+ LOG(ERROR) << "Failed to create display link for GL context.";
+ return NULL;
+ }
}
return new CompositingIOSurfaceContext(

Powered by Google App Engine
This is Rietveld 408576698