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

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

Issue 1897123002: Remove current implementation of frame timing events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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 <memory> 8 #include <memory>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/time/time.h"
12 #include "cc/debug/frame_timing_tracker.h"
13 11
14 namespace gfx { 12 namespace gfx {
15 class Vector2d; 13 class Vector2d;
16 class Vector2dF; 14 class Vector2dF;
17 } 15 }
18 16
19 namespace cc { 17 namespace cc {
20 class ContextProvider; 18 class ContextProvider;
21 class InputHandlerClient; 19 class InputHandlerClient;
22 class OutputSurface; 20 class OutputSurface;
(...skipping 29 matching lines...) Expand all
52 // call LayerTreeHost::SetOutputSurface. This will result in either 50 // call LayerTreeHost::SetOutputSurface. This will result in either
53 // DidFailToInitializeOutputSurface or DidInitializeOutputSurface being 51 // DidFailToInitializeOutputSurface or DidInitializeOutputSurface being
54 // called. 52 // called.
55 virtual void RequestNewOutputSurface() = 0; 53 virtual void RequestNewOutputSurface() = 0;
56 virtual void DidInitializeOutputSurface() = 0; 54 virtual void DidInitializeOutputSurface() = 0;
57 virtual void DidFailToInitializeOutputSurface() = 0; 55 virtual void DidFailToInitializeOutputSurface() = 0;
58 virtual void WillCommit() = 0; 56 virtual void WillCommit() = 0;
59 virtual void DidCommit() = 0; 57 virtual void DidCommit() = 0;
60 virtual void DidCommitAndDrawFrame() = 0; 58 virtual void DidCommitAndDrawFrame() = 0;
61 virtual void DidCompleteSwapBuffers() = 0; 59 virtual void DidCompleteSwapBuffers() = 0;
62 virtual void RecordFrameTimingEvents(
63 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
64 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet>
65 main_frame_events) = 0;
66 60
67 // Called when page scale animation has completed. 61 // Called when page scale animation has completed.
68 virtual void DidCompletePageScaleAnimation() = 0; 62 virtual void DidCompletePageScaleAnimation() = 0;
69 63
70 // TODO(simonhong): Makes this to pure virtual function when client 64 // TODO(simonhong): Makes this to pure virtual function when client
71 // implementation is ready. 65 // implementation is ready.
72 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {} 66 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {}
73 67
74 protected: 68 protected:
75 virtual ~LayerTreeHostClient() {} 69 virtual ~LayerTreeHostClient() {}
76 }; 70 };
77 71
78 } // namespace cc 72 } // namespace cc
79 73
80 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 74 #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