OLD | NEW |
| (Empty) |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_ | |
6 #define CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_ | |
7 | |
8 #include <unordered_map> | |
9 | |
10 #include "base/macros.h" | |
11 #include "cc/base/cc_export.h" | |
12 | |
13 namespace gfx { | |
14 class ScrollOffset; | |
15 } // namespace gfx | |
16 | |
17 namespace cc { | |
18 namespace proto { | |
19 class ClientStateUpdate; | |
20 } // namespace proto | |
21 | |
22 class CC_EXPORT RemoteCompositorBridgeClient { | |
23 public: | |
24 using ScrollOffsetMap = std::unordered_map<int, gfx::ScrollOffset>; | |
25 | |
26 virtual ~RemoteCompositorBridgeClient() {} | |
27 | |
28 // Called in response to a ScheduleMainFrame request made on the | |
29 // RemoteCompositorBridge. | |
30 // Note: The method should always be invoked asynchronously after the request | |
31 // is made. | |
32 virtual void BeginMainFrame() = 0; | |
33 | |
34 // Applied state updates reported from the client onto the main thread state | |
35 // on the engine. | |
36 virtual void ApplyStateUpdateFromClient( | |
37 const proto::ClientStateUpdate& client_state_update) = 0; | |
38 }; | |
39 | |
40 } // namespace cc | |
41 | |
42 #endif // CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_ | |
OLD | NEW |