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

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: Missed implementing virtual function on Android html_viewer. Created 5 years, 6 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/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.h » ('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 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 18 matching lines...) Expand all
39 // call LayerTreeHost::SetOutputSurface. This will result in either 40 // call LayerTreeHost::SetOutputSurface. This will result in either
40 // DidFailToInitializeOutputSurface or DidInitializeOutputSurface being 41 // DidFailToInitializeOutputSurface or DidInitializeOutputSurface being
41 // called. 42 // called.
42 virtual void RequestNewOutputSurface() = 0; 43 virtual void RequestNewOutputSurface() = 0;
43 virtual void DidInitializeOutputSurface() = 0; 44 virtual void DidInitializeOutputSurface() = 0;
44 virtual void DidFailToInitializeOutputSurface() = 0; 45 virtual void DidFailToInitializeOutputSurface() = 0;
45 virtual void WillCommit() = 0; 46 virtual void WillCommit() = 0;
46 virtual void DidCommit() = 0; 47 virtual void DidCommit() = 0;
47 virtual void DidCommitAndDrawFrame() = 0; 48 virtual void DidCommitAndDrawFrame() = 0;
48 virtual void DidCompleteSwapBuffers() = 0; 49 virtual void DidCompleteSwapBuffers() = 0;
50 virtual void RecordFrameTimingEvents(
51 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
52 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) = 0;
49 53
50 // Called when page scale animation has completed. 54 // Called when page scale animation has completed.
51 virtual void DidCompletePageScaleAnimation() = 0; 55 virtual void DidCompletePageScaleAnimation() = 0;
52 56
53 // TODO(simonhong): Makes this to pure virtual function when client 57 // TODO(simonhong): Makes this to pure virtual function when client
54 // implementation is ready. 58 // implementation is ready.
55 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {} 59 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {}
56 60
57 // Requests that the client insert a rate limiting token in the shared main 61 // Requests that the client insert a rate limiting token in the shared main
58 // thread context's command stream that will block if the context gets too far 62 // thread context's command stream that will block if the context gets too far
59 // ahead of the compositor's command stream. Only needed if the tree contains 63 // ahead of the compositor's command stream. Only needed if the tree contains
60 // a TextureLayer that calls SetRateLimitContext(true). 64 // a TextureLayer that calls SetRateLimitContext(true).
61 virtual void RateLimitSharedMainThreadContext() {} 65 virtual void RateLimitSharedMainThreadContext() {}
62 66
63 protected: 67 protected:
64 virtual ~LayerTreeHostClient() {} 68 virtual ~LayerTreeHostClient() {}
65 }; 69 };
66 70
67 } // namespace cc 71 } // namespace cc
68 72
69 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 73 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698