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

Unified Diff: content/browser/renderer_host/begin_frame_observer_proxy.h

Issue 1016033006: Enable BeginFrame scheduling on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: content/browser/renderer_host/begin_frame_observer_proxy.h
diff --git a/content/browser/renderer_host/begin_frame_observer_proxy.h b/content/browser/renderer_host/begin_frame_observer_proxy.h
index fd2aa6d7a06f9507033048bfc843906e60c3b719..3e3574a008984be0eaafa5060fcb391f2a264582 100644
--- a/content/browser/renderer_host/begin_frame_observer_proxy.h
+++ b/content/browser/renderer_host/begin_frame_observer_proxy.h
@@ -25,7 +25,8 @@ class BeginFrameObserverProxyClient {
// This class is used to manage all of the RenderWidgetHostView state and
// functionality that is associated with BeginFrame message handling.
class CONTENT_EXPORT BeginFrameObserverProxy
- : public ui::CompositorBeginFrameObserver {
+ : public ui::CompositorBeginFrameObserver,
+ public ui::CompositorObserver {
public:
explicit BeginFrameObserverProxy(BeginFrameObserverProxyClient* client);
~BeginFrameObserverProxy() override;
@@ -38,6 +39,15 @@ class CONTENT_EXPORT BeginFrameObserverProxy
// Overridden from ui::CompositorBeginFrameObserver:
void OnSendBeginFrame(const cc::BeginFrameArgs& args) override;
+ // Overridden from ui::CompositorObserver:
+ void OnCompositingDidCommit(ui::Compositor* compositor) override {}
+ void OnCompositingStarted(ui::Compositor* compositor,
+ base::TimeTicks start_time) override {}
+ void OnCompositingEnded(ui::Compositor* compositor) override {}
+ void OnCompositingAborted(ui::Compositor* compositor) override {}
+ void OnCompositingLockStateChanged(ui::Compositor* compositor) override {}
+ void OnCompositingShuttingDown(ui::Compositor* compositor) override;
+
private:
void StartObservingBeginFrames();
void StopObservingBeginFrames();

Powered by Google App Engine
This is Rietveld 408576698