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

Side by Side 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: Keep ProxyMain and ProxyImpl methods private. Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « cc/trees/channel_impl.h ('k') | cc/trees/proxy_common.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_CHANNEL_MAIN_H_ 5 #ifndef CC_TREES_CHANNEL_MAIN_H_
6 #define CC_TREES_CHANNEL_MAIN_H_ 6 #define CC_TREES_CHANNEL_MAIN_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/base/completion_event.h"
9 #include "cc/input/top_controls_state.h" 10 #include "cc/input/top_controls_state.h"
11 #include "cc/output/output_surface.h"
12 #include "cc/scheduler/commit_earlyout_reason.h"
13 #include "cc/trees/proxy_common.h"
10 14
11 namespace cc { 15 namespace cc {
12
13 // ChannelMain and ChannelImpl provide an abstract communication layer for 16 // ChannelMain and ChannelImpl provide an abstract communication layer for
14 // the main and impl side of the compositor. 17 // the main and impl side of the compositor.
15 // 18 //
16 // The communication sequence between the 2 sides is: 19 // The communication sequence between the 2 sides is:
17 // 20 //
18 // LayerTreeHost<-->ProxyMain<-->ChannelMain 21 // LayerTreeHost<-->ProxyMain<-->ChannelMain
19 // | 22 // |
20 // | 23 // |
21 // ChannelImpl<-->ProxyImpl<-->LayerTreeHostImpl 24 // ChannelImpl<-->ProxyImpl<-->LayerTreeHostImpl
22 25
23 class CC_EXPORT ChannelMain { 26 class CC_EXPORT ChannelMain {
24 public: 27 public:
25 // Interface for commands sent to the ProxyImpl 28 // Interface for commands sent to the ProxyImpl
26 virtual void SetThrottleFrameProductionOnImpl(bool throttle) = 0; 29 virtual void SetThrottleFrameProductionOnImpl(bool throttle) = 0;
27 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, 30 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints,
28 TopControlsState current, 31 TopControlsState current,
29 bool animate) = 0; 32 bool animate) = 0;
33 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) = 0;
34 virtual void MainThreadHasStoppedFlingingOnImpl() = 0;
35 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) = 0;
36 virtual void SetDeferCommitsOnImpl(bool defer_commits) = 0;
37 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion) = 0;
38 virtual void SetVisibleOnImpl(CompletionEvent* completion, bool visible) = 0;
39 virtual void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) = 0;
40 virtual void FinishGLOnImpl(CompletionEvent* completion) = 0;
41 virtual void MainFrameWillHappenOnImplForTesting(
42 CompletionEvent* completion,
43 bool* main_frame_will_happen) = 0;
44 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) = 0;
45 virtual void SetNeedsCommitOnImpl() = 0;
46 virtual void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) = 0;
47 virtual void StartCommitOnImpl(CompletionEvent* completion) = 0;
30 48
31 virtual ~ChannelMain() {} 49 virtual ~ChannelMain() {}
32 }; 50 };
33 51
34 } // namespace cc 52 } // namespace cc
35 53
36 #endif // CC_TREES_CHANNEL_MAIN_H_ 54 #endif // CC_TREES_CHANNEL_MAIN_H_
OLDNEW
« no previous file with comments | « cc/trees/channel_impl.h ('k') | cc/trees/proxy_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698