summaryrefslogtreecommitdiffstats
path: root/ui/compositor/compositor.h
diff options
context:
space:
mode:
authortrchen@chromium.org <trchen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 07:51:45 +0000
committertrchen@chromium.org <trchen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 07:51:45 +0000
commite3067e30ade69021a0964dd52be3a59b7137ecfa (patch)
treea6b213850e360c080b206f5159209bf2de412b35 /ui/compositor/compositor.h
parent054723d440afb61122138aa61d9a466006b9077c (diff)
downloadchromium_src-e3067e30ade69021a0964dd52be3a59b7137ecfa.zip
chromium_src-e3067e30ade69021a0964dd52be3a59b7137ecfa.tar.gz
chromium_src-e3067e30ade69021a0964dd52be3a59b7137ecfa.tar.bz2
RenderWidget and RenderWidgetCompositor cleanup
This patch can be considered as two logical changes that are orthogonal. Both of the changes don't affect code behavior. [2/2] Add LayerTreeHostSingleThreadClient::ScheduleAnimation widget_->scheduleAnimation() should be routed through SingleThreadProxy:: SetNeedsAnimate(). This way we can reduce many CC API inconsistencies between single thread and threaded mode. [1/2] Remove ScheduleCompositeImpl The force_redraw parameter of ScheduleCompositeImpl only makes a difference in threaded-compositing mode. The only user of ScheduleCompositeImpl(true) always calls SetNeedsAnimate, so it doesn't harm to call it one more time. --> ScheduleCompositeImpl is fully equivalent to scheduleComposite This patch merges ScheduleCompositeImpl into scheduleComposite. R=jamesr,piman Review URL: https://codereview.chromium.org/80173002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236718 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/compositor/compositor.h')
-rw-r--r--ui/compositor/compositor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 8c0a87b..7dabd53 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -328,6 +328,7 @@ class COMPOSITOR_EXPORT Compositor
// cc::LayerTreeHostSingleThreadClient implementation.
virtual void ScheduleComposite() OVERRIDE;
+ virtual void ScheduleAnimation() OVERRIDE;
virtual void DidPostSwapBuffers() OVERRIDE;
virtual void DidAbortSwapBuffers() OVERRIDE;