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

Side by Side Diff: cc/trees/proxy_main.h

Issue 1547893003: WIP - compositor worker mega patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/proxy_impl.cc ('k') | cc/trees/proxy_main.cc » ('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_PROXY_MAIN_H_ 5 #ifndef CC_TREES_PROXY_MAIN_H_
6 #define CC_TREES_PROXY_MAIN_H_ 6 #define CC_TREES_PROXY_MAIN_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/animation/animation_events.h" 9 #include "cc/animation/animation_events.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/debug/frame_timing_tracker.h" 11 #include "cc/debug/frame_timing_tracker.h"
12 #include "cc/input/top_controls_state.h" 12 #include "cc/input/top_controls_state.h"
13 #include "cc/output/output_surface.h" 13 #include "cc/output/output_surface.h"
14 #include "cc/output/renderer_capabilities.h" 14 #include "cc/output/renderer_capabilities.h"
15 #include "cc/trees/channel_main.h" 15 #include "cc/trees/channel_main.h"
16 #include "cc/trees/proxy.h" 16 #include "cc/trees/proxy.h"
17 #include "cc/trees/proxy_common.h" 17 #include "cc/trees/proxy_common.h"
18 18
19 namespace cc { 19 namespace cc {
20 class BeginFrameSource; 20 class BeginFrameSource;
21 class ChannelMain; 21 class ChannelMain;
22 class LayerTreeHost; 22 class LayerTreeHost;
23 class LayerTreeMutator;
23 24
24 // This class aggregates all interactions that the impl side of the compositor 25 // This class aggregates all interactions that the impl side of the compositor
25 // needs to have with the main side. 26 // needs to have with the main side.
26 // The class is created and lives on the main thread. 27 // The class is created and lives on the main thread.
27 class CC_EXPORT ProxyMain : public Proxy { 28 class CC_EXPORT ProxyMain : public Proxy {
28 public: 29 public:
29 static scoped_ptr<ProxyMain> CreateThreaded( 30 static scoped_ptr<ProxyMain> CreateThreaded(
30 LayerTreeHost* layer_tree_host, 31 LayerTreeHost* layer_tree_host,
31 TaskRunnerProvider* task_runner_provider); 32 TaskRunnerProvider* task_runner_provider);
32 33
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; 94 void SetNeedsRedraw(const gfx::Rect& damage_rect) override;
94 void SetNextCommitWaitsForActivation() override; 95 void SetNextCommitWaitsForActivation() override;
95 void NotifyInputThrottledUntilCommit() override; 96 void NotifyInputThrottledUntilCommit() override;
96 void SetDeferCommits(bool defer_commits) override; 97 void SetDeferCommits(bool defer_commits) override;
97 bool CommitRequested() const override; 98 bool CommitRequested() const override;
98 bool BeginMainFrameRequested() const override; 99 bool BeginMainFrameRequested() const override;
99 void MainThreadHasStoppedFlinging() override; 100 void MainThreadHasStoppedFlinging() override;
100 void Start(scoped_ptr<BeginFrameSource> external_begin_frame_source) override; 101 void Start(scoped_ptr<BeginFrameSource> external_begin_frame_source) override;
101 void Stop() override; 102 void Stop() override;
102 bool SupportsImplScrolling() const override; 103 bool SupportsImplScrolling() const override;
104 void SetMutator(LayerTreeMutator* mutator) override;
103 bool MainFrameWillHappenForTesting() override; 105 bool MainFrameWillHappenForTesting() override;
104 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; 106 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override;
105 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; 107 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override;
106 void ReleaseOutputSurface() override; 108 void ReleaseOutputSurface() override;
107 void UpdateTopControlsState(TopControlsState constraints, 109 void UpdateTopControlsState(TopControlsState constraints,
108 TopControlsState current, 110 TopControlsState current,
109 bool animate) override; 111 bool animate) override;
110 112
111 // This sets the channel used by ProxyMain to communicate with ProxyImpl. 113 // This sets the channel used by ProxyMain to communicate with ProxyImpl.
112 void SetChannel(scoped_ptr<ChannelMain> channel_main); 114 void SetChannel(scoped_ptr<ChannelMain> channel_main);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 RendererCapabilities renderer_capabilities_; 146 RendererCapabilities renderer_capabilities_;
145 147
146 scoped_ptr<ChannelMain> channel_main_; 148 scoped_ptr<ChannelMain> channel_main_;
147 149
148 DISALLOW_COPY_AND_ASSIGN(ProxyMain); 150 DISALLOW_COPY_AND_ASSIGN(ProxyMain);
149 }; 151 };
150 152
151 } // namespace cc 153 } // namespace cc
152 154
153 #endif // CC_TREES_PROXY_MAIN_H_ 155 #endif // CC_TREES_PROXY_MAIN_H_
OLDNEW
« no previous file with comments | « cc/trees/proxy_impl.cc ('k') | cc/trees/proxy_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698