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

Unified Diff: content/browser/compositor/browser_compositor_view_mac.h

Issue 408103004: Mac: Fix bad framerate when capturing tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | content/browser/compositor/browser_compositor_view_private_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/browser_compositor_view_mac.h
diff --git a/content/browser/compositor/browser_compositor_view_mac.h b/content/browser/compositor/browser_compositor_view_mac.h
index f92945fcb5db8d6a160883ca9c5a43ec77fe89a0..c9a1fb9f5bc2c66319774feb2fb08e020133f12d 100644
--- a/content/browser/compositor/browser_compositor_view_mac.h
+++ b/content/browser/compositor/browser_compositor_view_mac.h
@@ -41,6 +41,10 @@ class BrowserCompositorViewMacInternal;
// NSView backed by a ui::Compositor).
class BrowserCompositorViewMacClient {
public:
+ // Drawing is usually throttled by the rate at which CoreAnimation draws
+ // frames to the screen. This can be used to disable throttling.
+ virtual bool BrowserCompositorViewShouldAckImmediately() const = 0;
+
// Called when a frame is drawn, and used to pass latency info back to the
// renderer (if any).
virtual void BrowserCompositorViewFrameSwapped(
« no previous file with comments | « no previous file | content/browser/compositor/browser_compositor_view_private_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698