|
Mac: Fix bad framerate when capturing tab
The fix for this issue, namely, that we must draw contents manually and
immediately when a window is occluded because Cocoa will not draw them
for us, was not ported to the browser compositor.
Plumb this explicitly through a ShouldAckImmediately callback for
CompositingIOSurfaceLayerClient and BrowserCompositorViewMacClient.
Also check for vsync disabling in the ShouldAckImmediately instead of
running it (unnecessarily) through CompositingIOSurfaceContextMac.
BUG= 393390, 350410
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284856
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+76 lines, -31 lines) |
Patch |
 |
M |
content/browser/compositor/browser_compositor_view_mac.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/browser_compositor_view_private_mac.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/browser_compositor_view_private_mac.mm
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/delegated_frame_host.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/compositing_iosurface_context_mac.h
|
View
|
|
3 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/compositing_iosurface_context_mac.mm
|
View
|
|
3 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/compositing_iosurface_layer_mac.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/compositing_iosurface_layer_mac.mm
|
View
|
|
1 chunk |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_mac.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_mac.mm
|
View
|
|
3 chunks |
+51 lines, -14 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|