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

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

Issue 1377063003: Split ThreadProxy methods to ProxyMain and ProxyImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 5 years, 2 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 | « no previous file | cc/trees/channel_main.h » ('j') | cc/trees/thread_proxy.cc » ('J')
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/animation/animation_events.h"
8 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/debug/frame_timing_tracker.h"
11 #include "cc/output/renderer_capabilities.h"
9 12
10 namespace cc { 13 namespace cc {
11 14
12 // Channel used to send commands to and receive commands from ProxyMain. 15 // Channel used to send commands to and receive commands from ProxyMain.
13 // The ChannelImpl implementation creates and owns ProxyImpl on receiving the 16 // The ChannelImpl implementation creates and owns ProxyImpl on receiving the
14 // InitializeImpl call from ChannelMain. 17 // InitializeImpl call from ChannelMain.
15 // See channel_main.h 18 // See channel_main.h
16 class CC_EXPORT ChannelImpl { 19 class CC_EXPORT ChannelImpl {
17 public: 20 public:
18 // Interface for commands sent to ProxyMain 21 // Interface for commands sent to ProxyMain
19 virtual void DidCompleteSwapBuffers() = 0; 22 virtual void DidCompleteSwapBuffers() = 0;
23 virtual void SetRendererCapabilitiesMainCopy(
24 const RendererCapabilities& capabilities) = 0;
25 virtual void BeginMainFrameNotExpectedSoon() = 0;
26 virtual void DidCommitAndDrawFrame() = 0;
27 virtual void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue) = 0;
28 virtual void DidLoseOutputSurface() = 0;
29 virtual void RequestNewOutputSurface() = 0;
30 virtual void DidInitializeOutputSurface(
31 bool success,
32 const RendererCapabilities& capabilities) = 0;
33 virtual void DidCompletePageScaleAnimation() = 0;
34 virtual void PostFrameTimingEventsOnMain(
35 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
36 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) = 0;
20 37
21 protected: 38 protected:
22 virtual ~ChannelImpl() {} 39 virtual ~ChannelImpl() {}
23 }; 40 };
24 41
25 } // namespace cc 42 } // namespace cc
26 43
27 #endif // CC_TREES_CHANNEL_IMPL_H_ 44 #endif // CC_TREES_CHANNEL_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/channel_main.h » ('j') | cc/trees/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698