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

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

Issue 1432463002: cc: Track BeginMainFrame more precisely in CompositorTimingHistory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests. New tests to be added. 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
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_IMPL_H_ 5 #ifndef CC_TREES_PROXY_IMPL_H_
6 #define CC_TREES_PROXY_IMPL_H_ 6 #define CC_TREES_PROXY_IMPL_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/base/completion_event.h" 10 #include "cc/base/completion_event.h"
(...skipping 17 matching lines...) Expand all
28 virtual void SetThrottleFrameProductionOnImpl(bool throttle) = 0; 28 virtual void SetThrottleFrameProductionOnImpl(bool throttle) = 0;
29 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, 29 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints,
30 TopControlsState current, 30 TopControlsState current,
31 bool animate) = 0; 31 bool animate) = 0;
32 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) = 0; 32 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) = 0;
33 virtual void MainThreadHasStoppedFlingingOnImpl() = 0; 33 virtual void MainThreadHasStoppedFlingingOnImpl() = 0;
34 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) = 0; 34 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) = 0;
35 virtual void SetDeferCommitsOnImpl(bool defer_commits) const = 0; 35 virtual void SetDeferCommitsOnImpl(bool defer_commits) const = 0;
36 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) = 0; 36 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) = 0;
37 virtual void SetNeedsCommitOnImpl() = 0; 37 virtual void SetNeedsCommitOnImpl() = 0;
38 virtual void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) = 0; 38 virtual void BeginMainFrameAbortedOnImpl(
39 CommitEarlyOutReason reason,
40 base::TimeTicks main_thread_start_time) = 0;
39 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion) = 0; 41 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion) = 0;
40 virtual void SetVisibleOnImpl(CompletionEvent* completion, bool visible) = 0; 42 virtual void SetVisibleOnImpl(CompletionEvent* completion, bool visible) = 0;
41 virtual void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) = 0; 43 virtual void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) = 0;
42 virtual void FinishGLOnImpl(CompletionEvent* completion) = 0; 44 virtual void FinishGLOnImpl(CompletionEvent* completion) = 0;
43 virtual void MainFrameWillHappenOnImplForTesting( 45 virtual void MainFrameWillHappenOnImplForTesting(
44 CompletionEvent* completion, 46 CompletionEvent* completion,
45 bool* main_frame_will_happen) = 0; 47 bool* main_frame_will_happen) = 0;
46 virtual void StartCommitOnImpl(CompletionEvent* completion) = 0; 48 virtual void StartCommitOnImpl(CompletionEvent* completion,
49 base::TimeTicks main_thread_start_time) = 0;
47 50
48 // TODO(khushalsagar): Rename as GetWeakPtr() once ThreadProxy is split. 51 // TODO(khushalsagar): Rename as GetWeakPtr() once ThreadProxy is split.
49 virtual base::WeakPtr<ProxyImpl> GetImplWeakPtr() = 0; 52 virtual base::WeakPtr<ProxyImpl> GetImplWeakPtr() = 0;
50 53
51 protected: 54 protected:
52 virtual ~ProxyImpl() {} 55 virtual ~ProxyImpl() {}
53 }; 56 };
54 57
55 } // namespace cc 58 } // namespace cc
56 59
57 #endif // CC_TREES_PROXY_IMPL_H_ 60 #endif // CC_TREES_PROXY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698