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

Unified Diff: ui/gfx/compositor/compositor.h

Issue 9014030: Plumbs ::didCompleteSwapBuffers in CompositorCC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nicer diff Created 8 years, 11 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 | ui/gfx/compositor/compositor.cc » ('j') | ui/gfx/compositor/compositor_cc.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/compositor.h
diff --git a/ui/gfx/compositor/compositor.h b/ui/gfx/compositor/compositor.h
index 2b41553d391e6bf43de20aceacfef77249e9f45b..e3d59b765b088781a0b6311eb2c4c93ea95d2412 100644
--- a/ui/gfx/compositor/compositor.h
+++ b/ui/gfx/compositor/compositor.h
@@ -182,6 +182,7 @@ class COMPOSITOR_EXPORT Compositor : public base::RefCounted<Compositor> {
virtual void OnWidgetSizeChanged() = 0;
virtual void OnRootLayerChanged();
virtual void DrawTree();
+ virtual bool CompositesAsynchronously();
CompositorDelegate* delegate() { return delegate_; }
@@ -190,14 +191,14 @@ class COMPOSITOR_EXPORT Compositor : public base::RefCounted<Compositor> {
static void SwizzleRGBAToBGRAAndFlip(unsigned char* pixels,
const gfx::Size& image_size);
+ // Notifies the compositor that compositing is complete.
+ void NotifyEnd();
+
private:
// Notifies the compositor that compositing is about to start. See Draw() for
// notes about |force_clear|.
void NotifyStart(bool force_clear);
- // Notifies the compositor that compositing is complete.
- void NotifyEnd();
-
CompositorDelegate* delegate_;
gfx::Size size_;
« no previous file with comments | « no previous file | ui/gfx/compositor/compositor.cc » ('j') | ui/gfx/compositor/compositor_cc.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698