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

Side by Side Diff: cc/trees/channel_impl.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/test/proxy_main_for_test.cc ('k') | cc/trees/layer_tree_host.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 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_CHANNEL_IMPL_H_ 5 #ifndef CC_TREES_CHANNEL_IMPL_H_
6 #define CC_TREES_CHANNEL_IMPL_H_ 6 #define CC_TREES_CHANNEL_IMPL_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/debug/frame_timing_tracker.h"
10 #include "cc/output/renderer_capabilities.h" 9 #include "cc/output/renderer_capabilities.h"
11 #include "cc/trees/proxy_common.h" 10 #include "cc/trees/proxy_common.h"
12 11
13 namespace cc { 12 namespace cc {
14 13
15 class AnimationEvents; 14 class AnimationEvents;
16 15
17 // Channel used to send commands to and receive commands from ProxyMain. 16 // Channel used to send commands to and receive commands from ProxyMain.
18 // The ChannelImpl implementation creates and owns ProxyImpl on receiving the 17 // The ChannelImpl implementation creates and owns ProxyImpl on receiving the
19 // InitializeImpl call from ChannelMain. 18 // InitializeImpl call from ChannelMain.
20 // See channel_main.h 19 // See channel_main.h
21 class CC_EXPORT ChannelImpl { 20 class CC_EXPORT ChannelImpl {
22 public: 21 public:
23 // Interface for commands sent to ProxyMain 22 // Interface for commands sent to ProxyMain
24 virtual void DidCompleteSwapBuffers() = 0; 23 virtual void DidCompleteSwapBuffers() = 0;
25 virtual void SetRendererCapabilitiesMainCopy( 24 virtual void SetRendererCapabilitiesMainCopy(
26 const RendererCapabilities& capabilities) = 0; 25 const RendererCapabilities& capabilities) = 0;
27 virtual void BeginMainFrameNotExpectedSoon() = 0; 26 virtual void BeginMainFrameNotExpectedSoon() = 0;
28 virtual void DidCommitAndDrawFrame() = 0; 27 virtual void DidCommitAndDrawFrame() = 0;
29 virtual void SetAnimationEvents(std::unique_ptr<AnimationEvents> queue) = 0; 28 virtual void SetAnimationEvents(std::unique_ptr<AnimationEvents> queue) = 0;
30 virtual void DidLoseOutputSurface() = 0; 29 virtual void DidLoseOutputSurface() = 0;
31 virtual void RequestNewOutputSurface() = 0; 30 virtual void RequestNewOutputSurface() = 0;
32 virtual void DidInitializeOutputSurface( 31 virtual void DidInitializeOutputSurface(
33 bool success, 32 bool success,
34 const RendererCapabilities& capabilities) = 0; 33 const RendererCapabilities& capabilities) = 0;
35 virtual void DidCompletePageScaleAnimation() = 0; 34 virtual void DidCompletePageScaleAnimation() = 0;
36 virtual void PostFrameTimingEventsOnMain(
37 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
38 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet>
39 main_frame_events) = 0;
40 virtual void BeginMainFrame( 35 virtual void BeginMainFrame(
41 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) = 0; 36 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) = 0;
42 37
43 protected: 38 protected:
44 virtual ~ChannelImpl() {} 39 virtual ~ChannelImpl() {}
45 }; 40 };
46 41
47 } // namespace cc 42 } // namespace cc
48 43
49 #endif // CC_TREES_CHANNEL_IMPL_H_ 44 #endif // CC_TREES_CHANNEL_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/proxy_main_for_test.cc ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698