summaryrefslogtreecommitdiffstats
path: root/ui/compositor/compositor.h
diff options
context:
space:
mode:
authorccameron <ccameron@chromium.org>2014-08-27 19:09:14 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-28 02:10:21 +0000
commit388cc928a95dc1a921d3b1671985046c3c626c22 (patch)
treeab02a86adeb5d552d34dbd94b0e6f43e09e65f57 /ui/compositor/compositor.h
parentdd5e80b2f8e1cf3c65bf063fd1e2a319656bfb40 (diff)
downloadchromium_src-388cc928a95dc1a921d3b1671985046c3c626c22.zip
chromium_src-388cc928a95dc1a921d3b1671985046c3c626c22.tar.gz
chromium_src-388cc928a95dc1a921d3b1671985046c3c626c22.tar.bz2
Fix assorted issues with remote CoreAnimation
These issues came up while running for a few days with the flag --enable-remote-core-animation. Fix flashes of old frames by hooking up the DiscardBackbuffer (which happens when being made non-visible) to re-set the CAContext and CALayer (so the browser gets a new one with new content for the next frame). Add support for disabling vsync by using setNeedsDisplay to draw. Change the backpressure mechanism to rely on the browser to apply backpressure in its compositor via the cc:: output surface. Add a ScopedSetGLToRealGLApi structure to ensure that we are talking to the real GL API while in the CoreAnimation callback. BUG=312462 Review URL: https://codereview.chromium.org/516643002 Cr-Commit-Position: refs/heads/master@{#292293}
Diffstat (limited to 'ui/compositor/compositor.h')
-rw-r--r--ui/compositor/compositor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 4cabee0..5f4ed2e 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -186,6 +186,9 @@ class COMPOSITOR_EXPORT Compositor
// the |root_layer|.
void SetBackgroundColor(SkColor color);
+ // Set the visibility of the underlying compositor.
+ void SetVisible(bool visible);
+
// Returns the widget for this compositor.
gfx::AcceleratedWidget widget() const { return widget_; }