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

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

Issue 2282433002: Revert of cc: Delete all the RendererCapabilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-prepare-mailbox-param
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « cc/trees/remote_channel_impl.cc ('k') | cc/trees/single_thread_proxy.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 23 matching lines...) Expand all
34 LayerTreeHostSingleThreadClient* client, 34 LayerTreeHostSingleThreadClient* client,
35 TaskRunnerProvider* task_runner_provider_); 35 TaskRunnerProvider* task_runner_provider_);
36 ~SingleThreadProxy() override; 36 ~SingleThreadProxy() override;
37 37
38 // Proxy implementation 38 // Proxy implementation
39 bool IsStarted() const override; 39 bool IsStarted() const override;
40 bool CommitToActiveTree() const override; 40 bool CommitToActiveTree() const override;
41 void SetOutputSurface(OutputSurface* output_surface) override; 41 void SetOutputSurface(OutputSurface* output_surface) override;
42 void ReleaseOutputSurface() override; 42 void ReleaseOutputSurface() override;
43 void SetVisible(bool visible) override; 43 void SetVisible(bool visible) override;
44 const RendererCapabilities& GetRendererCapabilities() const override;
44 void SetNeedsAnimate() override; 45 void SetNeedsAnimate() override;
45 void SetNeedsUpdateLayers() override; 46 void SetNeedsUpdateLayers() override;
46 void SetNeedsCommit() override; 47 void SetNeedsCommit() override;
47 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; 48 void SetNeedsRedraw(const gfx::Rect& damage_rect) override;
48 void SetNextCommitWaitsForActivation() override; 49 void SetNextCommitWaitsForActivation() override;
49 void NotifyInputThrottledUntilCommit() override {} 50 void NotifyInputThrottledUntilCommit() override {}
50 void SetDeferCommits(bool defer_commits) override; 51 void SetDeferCommits(bool defer_commits) override;
51 bool CommitRequested() const override; 52 bool CommitRequested() const override;
52 bool BeginMainFrameRequested() const override; 53 bool BeginMainFrameRequested() const override;
53 void MainThreadHasStoppedFlinging() override {} 54 void MainThreadHasStoppedFlinging() override {}
(...skipping 14 matching lines...) Expand all
68 DrawResult ScheduledActionDrawAndSwapIfPossible() override; 69 DrawResult ScheduledActionDrawAndSwapIfPossible() override;
69 DrawResult ScheduledActionDrawAndSwapForced() override; 70 DrawResult ScheduledActionDrawAndSwapForced() override;
70 void ScheduledActionCommit() override; 71 void ScheduledActionCommit() override;
71 void ScheduledActionActivateSyncTree() override; 72 void ScheduledActionActivateSyncTree() override;
72 void ScheduledActionBeginOutputSurfaceCreation() override; 73 void ScheduledActionBeginOutputSurfaceCreation() override;
73 void ScheduledActionPrepareTiles() override; 74 void ScheduledActionPrepareTiles() override;
74 void ScheduledActionInvalidateOutputSurface() override; 75 void ScheduledActionInvalidateOutputSurface() override;
75 void SendBeginMainFrameNotExpectedSoon() override; 76 void SendBeginMainFrameNotExpectedSoon() override;
76 77
77 // LayerTreeHostImplClient implementation 78 // LayerTreeHostImplClient implementation
79 void UpdateRendererCapabilitiesOnImplThread() override;
78 void DidLoseOutputSurfaceOnImplThread() override; 80 void DidLoseOutputSurfaceOnImplThread() override;
79 void CommitVSyncParameters(base::TimeTicks timebase, 81 void CommitVSyncParameters(base::TimeTicks timebase,
80 base::TimeDelta interval) override; 82 base::TimeDelta interval) override;
81 void SetBeginFrameSource(BeginFrameSource* source) override; 83 void SetBeginFrameSource(BeginFrameSource* source) override;
82 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 84 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
83 void DidSwapBuffersCompleteOnImplThread() override; 85 void DidSwapBuffersCompleteOnImplThread() override;
84 void OnCanDrawStateChanged(bool can_draw) override; 86 void OnCanDrawStateChanged(bool can_draw) override;
85 void NotifyReadyToActivate() override; 87 void NotifyReadyToActivate() override;
86 void NotifyReadyToDraw() override; 88 void NotifyReadyToDraw() override;
87 void SetNeedsRedrawOnImplThread() override; 89 void SetNeedsRedrawOnImplThread() override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 129
128 // Accessed on main thread only. 130 // Accessed on main thread only.
129 LayerTreeHost* layer_tree_host_; 131 LayerTreeHost* layer_tree_host_;
130 LayerTreeHostSingleThreadClient* client_; 132 LayerTreeHostSingleThreadClient* client_;
131 133
132 TaskRunnerProvider* task_runner_provider_; 134 TaskRunnerProvider* task_runner_provider_;
133 135
134 // Used on the Thread, but checked on main thread during 136 // Used on the Thread, but checked on main thread during
135 // initialization/shutdown. 137 // initialization/shutdown.
136 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_; 138 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_;
139 RendererCapabilities renderer_capabilities_for_main_thread_;
137 140
138 // Accessed from both threads. 141 // Accessed from both threads.
139 std::unique_ptr<BeginFrameSource> external_begin_frame_source_; 142 std::unique_ptr<BeginFrameSource> external_begin_frame_source_;
140 std::unique_ptr<BeginFrameSource> unthrottled_begin_frame_source_; 143 std::unique_ptr<BeginFrameSource> unthrottled_begin_frame_source_;
141 std::unique_ptr<SyntheticBeginFrameSource> synthetic_begin_frame_source_; 144 std::unique_ptr<SyntheticBeginFrameSource> synthetic_begin_frame_source_;
142 std::unique_ptr<Scheduler> scheduler_on_impl_thread_; 145 std::unique_ptr<Scheduler> scheduler_on_impl_thread_;
143 146
144 std::unique_ptr<BlockingTaskRunner::CapturePostTasks> 147 std::unique_ptr<BlockingTaskRunner::CapturePostTasks>
145 commit_blocking_task_runner_; 148 commit_blocking_task_runner_;
146 bool next_frame_is_newly_committed_frame_; 149 bool next_frame_is_newly_committed_frame_;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 private: 240 private:
238 DebugScopedSetImplThread impl_thread_; 241 DebugScopedSetImplThread impl_thread_;
239 DebugScopedSetMainThreadBlocked main_thread_blocked_; 242 DebugScopedSetMainThreadBlocked main_thread_blocked_;
240 243
241 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 244 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
242 }; 245 };
243 246
244 } // namespace cc 247 } // namespace cc
245 248
246 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 249 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/remote_channel_impl.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698