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

Unified Diff: cc/trees/channel_main.h

Issue 1377063003: Split ThreadProxy methods to ProxyMain and ProxyImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add remaining post task methods. Created 5 years, 2 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/channel_main.h
diff --git a/cc/trees/channel_main.h b/cc/trees/channel_main.h
index 0d1e2720af2939d665874fb7f7ee085a99e4e35a..392e1c04da7be2a0bc5ca263b48eb453f5a7196d 100644
--- a/cc/trees/channel_main.h
+++ b/cc/trees/channel_main.h
@@ -6,10 +6,13 @@
#define CC_TREES_CHANNEL_MAIN_H_
#include "cc/base/cc_export.h"
+#include "cc/base/completion_event.h"
#include "cc/input/top_controls_state.h"
+#include "cc/output/output_surface.h"
+#include "cc/scheduler/commit_earlyout_reason.h"
+#include "cc/trees/proxy_common.h"
namespace cc {
-
// ChannelMain and ChannelImpl provide an abstract communication layer for
// the main and impl side of the compositor.
//
@@ -27,6 +30,23 @@ class CC_EXPORT ChannelMain {
virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints,
TopControlsState current,
bool animate) = 0;
+ virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) = 0;
+ virtual void MainThreadHasStoppedFlingingOnImpl() = 0;
+ virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) = 0;
+ virtual void SetDeferCommitsOnImpl(bool defer_commits) = 0;
+ virtual void FinishAllRenderingOnImpl(CompletionEvent* completion) = 0;
+ virtual void SetVisibleOnImpl(CompletionEvent* completion, bool visible) = 0;
+ virtual void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) = 0;
+ virtual void FinishGLOnImpl(CompletionEvent* completion) = 0;
+ virtual void MainFrameWillHappenOnImplForTesting(
+ CompletionEvent* completion,
+ bool* main_frame_will_happen) = 0;
+ virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) = 0;
+ virtual void SetNeedsCommitOnImpl() = 0;
+ virtual void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) = 0;
+ virtual void StartCommitOnImpl(
+ CompletionEvent* completion,
+ BlockedMainCommitState* blocked_main_commit_state) = 0;
virtual ~ChannelMain() {}
};
« no previous file with comments | « cc/trees/channel_impl.h ('k') | cc/trees/proxy_common.h » ('j') | cc/trees/proxy_common.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698