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

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

Issue 1137823002: Pass collected frame timing events to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Send finishTime as well for Render events. Created 5 years, 7 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_LAYER_TREE_HOST_CLIENT_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_CLIENT_H_
6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "cc/debug/frame_timing_tracker.h"
11 12
12 namespace gfx { 13 namespace gfx {
13 class Vector2d; 14 class Vector2d;
14 class Vector2dF; 15 class Vector2dF;
15 } 16 }
16 17
17 namespace cc { 18 namespace cc {
18 class ContextProvider; 19 class ContextProvider;
19 class InputHandlerClient; 20 class InputHandlerClient;
20 class OutputSurface; 21 class OutputSurface;
(...skipping 10 matching lines...) Expand all
31 virtual void Layout() = 0; 32 virtual void Layout() = 0;
32 virtual void ApplyViewportDeltas( 33 virtual void ApplyViewportDeltas(
33 const gfx::Vector2dF& inner_delta, 34 const gfx::Vector2dF& inner_delta,
34 const gfx::Vector2dF& outer_delta, 35 const gfx::Vector2dF& outer_delta,
35 const gfx::Vector2dF& elastic_overscroll_delta, 36 const gfx::Vector2dF& elastic_overscroll_delta,
36 float page_scale, 37 float page_scale,
37 float top_controls_delta) = 0; 38 float top_controls_delta) = 0;
38 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 39 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
39 float page_scale, 40 float page_scale,
40 float top_controls_delta) = 0; 41 float top_controls_delta) = 0;
42 virtual void RecordCompositeTimings(
43 FrameTimingTracker::CompositeTimingSet* composites) = 0;
44 virtual void RecordRenderTimings(
45 FrameTimingTracker::MainFrameTimingSet* renders) = 0;
41 // Request an OutputSurface from the client. When the client has one it should 46 // Request an OutputSurface from the client. When the client has one it should
42 // call LayerTreeHost::SetOutputSurface. This will result in either 47 // call LayerTreeHost::SetOutputSurface. This will result in either
43 // DidFailToInitializeOutputSurface or DidInitializeOutputSurface being 48 // DidFailToInitializeOutputSurface or DidInitializeOutputSurface being
44 // called. 49 // called.
45 virtual void RequestNewOutputSurface() = 0; 50 virtual void RequestNewOutputSurface() = 0;
46 virtual void DidInitializeOutputSurface() = 0; 51 virtual void DidInitializeOutputSurface() = 0;
47 virtual void DidFailToInitializeOutputSurface() = 0; 52 virtual void DidFailToInitializeOutputSurface() = 0;
48 virtual void WillCommit() = 0; 53 virtual void WillCommit() = 0;
49 virtual void DidCommit() = 0; 54 virtual void DidCommit() = 0;
50 virtual void DidCommitAndDrawFrame() = 0; 55 virtual void DidCommitAndDrawFrame() = 0;
(...skipping 12 matching lines...) Expand all
63 // a TextureLayer that calls SetRateLimitContext(true). 68 // a TextureLayer that calls SetRateLimitContext(true).
64 virtual void RateLimitSharedMainThreadContext() {} 69 virtual void RateLimitSharedMainThreadContext() {}
65 70
66 protected: 71 protected:
67 virtual ~LayerTreeHostClient() {} 72 virtual ~LayerTreeHostClient() {}
68 }; 73 };
69 74
70 } // namespace cc 75 } // namespace cc
71 76
72 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 77 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698