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

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

Issue 1432463002: cc: Track BeginMainFrame more precisely in CompositorTimingHistory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase; fix typo 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/single_thread_proxy.cc ('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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 void SetDeferCommitsOnImpl(bool defer_commits) const override; 281 void SetDeferCommitsOnImpl(bool defer_commits) const override;
282 void FinishAllRenderingOnImpl(CompletionEvent* completion) override; 282 void FinishAllRenderingOnImpl(CompletionEvent* completion) override;
283 void SetVisibleOnImpl(bool visible) override; 283 void SetVisibleOnImpl(bool visible) override;
284 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override; 284 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override;
285 void FinishGLOnImpl(CompletionEvent* completion) override; 285 void FinishGLOnImpl(CompletionEvent* completion) override;
286 void MainFrameWillHappenOnImplForTesting( 286 void MainFrameWillHappenOnImplForTesting(
287 CompletionEvent* completion, 287 CompletionEvent* completion,
288 bool* main_frame_will_happen) override; 288 bool* main_frame_will_happen) override;
289 void SetNeedsCommitOnImpl() override; 289 void SetNeedsCommitOnImpl() override;
290 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; 290 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override;
291 void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) override; 291 void BeginMainFrameAbortedOnImpl(
292 CommitEarlyOutReason reason,
293 base::TimeTicks main_thread_start_time) override;
292 void StartCommitOnImpl(CompletionEvent* completion, 294 void StartCommitOnImpl(CompletionEvent* completion,
293 LayerTreeHost* layer_tree_host, 295 LayerTreeHost* layer_tree_host,
296 base::TimeTicks main_thread_start_time,
294 bool hold_commit_for_activation) override; 297 bool hold_commit_for_activation) override;
295 void InitializeImplOnImpl(CompletionEvent* completion, 298 void InitializeImplOnImpl(CompletionEvent* completion,
296 LayerTreeHost* layer_tree_host) override; 299 LayerTreeHost* layer_tree_host) override;
297 void LayerTreeHostClosedOnImpl(CompletionEvent* completion) override; 300 void LayerTreeHostClosedOnImpl(CompletionEvent* completion) override;
298 301
299 // Returns |true| if the request was actually sent, |false| if one was 302 // Returns |true| if the request was actually sent, |false| if one was
300 // already outstanding. 303 // already outstanding.
301 bool SendCommitRequestToImplThreadIfNeeded( 304 bool SendCommitRequestToImplThreadIfNeeded(
302 CommitPipelineStage required_stage); 305 CommitPipelineStage required_stage);
303 306
(...skipping 19 matching lines...) Expand all
323 326
324 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 327 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
325 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 328 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
326 329
327 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 330 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
328 }; 331 };
329 332
330 } // namespace cc 333 } // namespace cc
331 334
332 #endif // CC_TREES_THREAD_PROXY_H_ 335 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698