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

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

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
« content/renderer/render_widget.cc ('K') | « ui/gfx/compositor/compositor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/compositor.cc
diff --git a/ui/gfx/compositor/compositor.cc b/ui/gfx/compositor/compositor.cc
index 3a8942a46bc72b742d834a77b51c141e6fba20ed..d4c2cbc91af6bb69f4ad69bc35d02ffc868cac35 100644
--- a/ui/gfx/compositor/compositor.cc
+++ b/ui/gfx/compositor/compositor.cc
@@ -303,8 +303,17 @@ void Compositor::didCompleteSwapBuffers() {
NotifyEnd();
}
-void Compositor::scheduleComposite() {
+#if defined(WEBLAYERTREEVIEWCLIENT_SCHEDULECOMPOSITE_RETURNS_BOOL)
+#define SCHEDULECOMPOSITE_RETURN_TYPE bool
+#else
+#define SCHEDULECOMPOSITE_RETURN_TYPE void
+#endif
+
+SCHEDULECOMPOSITE_RETURN_TYPE Compositor::scheduleComposite() {
ScheduleDraw();
+#if defined(WEBLAYERTREEVIEWCLIENT_SCHEDULECOMPOSITE_RETURNS_BOOL)
+ return true;
+#endif
}
void Compositor::SwizzleRGBAToBGRAAndFlip(unsigned char* pixels,
« content/renderer/render_widget.cc ('K') | « ui/gfx/compositor/compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698