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

Unified Diff: cc/trees/proxy_main.h

Issue 1377063003: Split ThreadProxy methods to ProxyMain and ProxyImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: cc/trees/proxy_main.h
diff --git a/cc/trees/proxy_main.h b/cc/trees/proxy_main.h
index 71230b430551c5a89fee2bf732680506c95f143c..d5708444b4ab60b39e7fda6719720b4e53621740 100644
--- a/cc/trees/proxy_main.h
+++ b/cc/trees/proxy_main.h
@@ -7,6 +7,9 @@
#include "base/memory/weak_ptr.h"
#include "cc/base/cc_export.h"
+#include "cc/animation/animation_events.h"
+#include "cc/debug/frame_timing_tracker.h"
+#include "cc/output/renderer_capabilities.h"
namespace cc {
class ThreadedChannel;
@@ -27,6 +30,20 @@ class CC_EXPORT ProxyMain {
// Callback for main side commands received from the Channel.
virtual void DidCompleteSwapBuffers() = 0;
+ virtual void SetRendererCapabilitiesMainCopy(
+ const RendererCapabilities& capabilities) = 0;
+ virtual void BeginMainFrameNotExpectedSoon() = 0;
+ virtual void DidCommitAndDrawFrame() = 0;
+ virtual void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue) = 0;
+ virtual void DidLoseOutputSurface() = 0;
+ virtual void RequestNewOutputSurface() = 0;
+ virtual void DidInitializeOutputSurface(
+ bool success,
+ const RendererCapabilities& capabilities) = 0;
+ virtual void DidCompletePageScaleAnimation() = 0;
+ virtual void PostFrameTimingEventsToMain(
+ scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
+ scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) = 0;
// TODO(khushalsagar): Rename as GetWeakPtr() once ThreadProxy is split.
virtual base::WeakPtr<ProxyMain> GetMainWeakPtr() = 0;
« no previous file with comments | « cc/trees/proxy_impl.h ('k') | cc/trees/thread_proxy.h » ('j') | cc/trees/threaded_channel.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698