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

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

Issue 10227004: RenderWidget's scheduleComposite should return a bool. (true iff a prompt composite will come). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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: ui/gfx/compositor/compositor.h
diff --git a/ui/gfx/compositor/compositor.h b/ui/gfx/compositor/compositor.h
index 9475cf62445acfe2de8b85b8450cbaba2fe1cf07..4b12270ffd1dd4562616849822d180812813ae46 100644
--- a/ui/gfx/compositor/compositor.h
+++ b/ui/gfx/compositor/compositor.h
@@ -210,7 +210,12 @@ class COMPOSITOR_EXPORT Compositor
virtual void didRebindGraphicsContext(bool success);
virtual void didCommitAndDrawFrame();
virtual void didCompleteSwapBuffers();
+
+#if defined(WEBLAYERTREEVIEWCLIENT_SCHEDULECOMPOSITE_RETURNS_BOOL)
+ virtual bool scheduleComposite();
+#else
virtual void scheduleComposite();
+#endif
private:
// When reading back pixel data we often get RGBA rather than BGRA pixels and

Powered by Google App Engine
This is Rietveld 408576698