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

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

Issue 1296673004: Devtools/CC: Remove continuous repainting feature (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 unified diff | Download patch
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/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_THREAD_PROXY_H_ 5 #ifndef CC_TREES_THREAD_PROXY_H_
6 #define CC_TREES_THREAD_PROXY_H_ 6 #define CC_TREES_THREAD_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void SetNextCommitWaitsForActivation() override; 167 void SetNextCommitWaitsForActivation() override;
168 void NotifyInputThrottledUntilCommit() override; 168 void NotifyInputThrottledUntilCommit() override;
169 void SetDeferCommits(bool defer_commits) override; 169 void SetDeferCommits(bool defer_commits) override;
170 bool CommitRequested() const override; 170 bool CommitRequested() const override;
171 bool BeginMainFrameRequested() const override; 171 bool BeginMainFrameRequested() const override;
172 void MainThreadHasStoppedFlinging() override; 172 void MainThreadHasStoppedFlinging() override;
173 void Start() override; 173 void Start() override;
174 void Stop() override; 174 void Stop() override;
175 void ForceSerializeOnSwapBuffers() override; 175 void ForceSerializeOnSwapBuffers() override;
176 bool SupportsImplScrolling() const override; 176 bool SupportsImplScrolling() const override;
177 void SetDebugState(const LayerTreeDebugState& debug_state) override;
178 bool MainFrameWillHappenForTesting() override; 177 bool MainFrameWillHappenForTesting() override;
179 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; 178 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override;
180 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; 179 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override;
181 180
182 // LayerTreeHostImplClient implementation 181 // LayerTreeHostImplClient implementation
183 void UpdateRendererCapabilitiesOnImplThread() override; 182 void UpdateRendererCapabilitiesOnImplThread() override;
184 void DidLoseOutputSurfaceOnImplThread() override; 183 void DidLoseOutputSurfaceOnImplThread() override;
185 void CommitVSyncParameters(base::TimeTicks timebase, 184 void CommitVSyncParameters(base::TimeTicks timebase,
186 base::TimeDelta interval) override; 185 base::TimeDelta interval) override;
187 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 186 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 scoped_ptr<OutputSurface> output_surface); 276 scoped_ptr<OutputSurface> output_surface);
278 void FinishGLOnImplThread(CompletionEvent* completion); 277 void FinishGLOnImplThread(CompletionEvent* completion);
279 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); 278 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion);
280 DrawResult DrawSwapInternal(bool forced_draw); 279 DrawResult DrawSwapInternal(bool forced_draw);
281 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); 280 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion);
282 void MainFrameWillHappenOnImplThreadForTesting(CompletionEvent* completion, 281 void MainFrameWillHappenOnImplThreadForTesting(CompletionEvent* completion,
283 bool* main_frame_will_happen); 282 bool* main_frame_will_happen);
284 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); 283 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile);
285 void MainThreadHasStoppedFlingingOnImplThread(); 284 void MainThreadHasStoppedFlingingOnImplThread();
286 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); 285 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled);
287 void SetDebugStateOnImplThread(const LayerTreeDebugState& debug_state);
288 void SetDeferCommitsOnImplThread(bool defer_commits) const; 286 void SetDeferCommitsOnImplThread(bool defer_commits) const;
289 void PostFrameTimingEvents( 287 void PostFrameTimingEvents(
290 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, 288 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
291 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); 289 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events);
292 290
293 LayerTreeHost* layer_tree_host(); 291 LayerTreeHost* layer_tree_host();
294 const LayerTreeHost* layer_tree_host() const; 292 const LayerTreeHost* layer_tree_host() const;
295 293
296 // Use accessors instead of this variable directly. 294 // Use accessors instead of this variable directly.
297 MainThreadOnly main_thread_only_vars_unsafe_; 295 MainThreadOnly main_thread_only_vars_unsafe_;
298 MainThreadOnly& main(); 296 MainThreadOnly& main();
299 297
300 // Use accessors instead of this variable directly. 298 // Use accessors instead of this variable directly.
301 MainThreadOrBlockedMainThread main_thread_or_blocked_vars_unsafe_; 299 MainThreadOrBlockedMainThread main_thread_or_blocked_vars_unsafe_;
302 MainThreadOrBlockedMainThread& blocked_main(); 300 MainThreadOrBlockedMainThread& blocked_main();
303 301
304 // Use accessors instead of this variable directly. 302 // Use accessors instead of this variable directly.
305 CompositorThreadOnly compositor_thread_vars_unsafe_; 303 CompositorThreadOnly compositor_thread_vars_unsafe_;
306 CompositorThreadOnly& impl(); 304 CompositorThreadOnly& impl();
307 305
308 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 306 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
309 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 307 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
310 308
311 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 309 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
312 }; 310 };
313 311
314 } // namespace cc 312 } // namespace cc
315 313
316 #endif // CC_TREES_THREAD_PROXY_H_ 314 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698