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

Side by Side Diff: cc/blimp/remote_compositor_bridge_client.h

Issue 2503283002: cc: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing fwd class decl in blimp_embedder_compositor.h Created 4 years, 1 month 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/blimp/layer_tree_host_remote.h ('k') | cc/blink/web_content_layer_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 2016 The Chromium Authors. All rights reserved. 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 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_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_ 5 #ifndef CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_
6 #define CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_ 6 #define CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_
7 7
8 #include <unordered_map> 8 #include <unordered_map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class ScrollOffset; 14 class ScrollOffset;
15 } // namespace gfx 15 } // namespace gfx
16 16
17 namespace cc { 17 namespace cc {
18 namespace proto { 18 namespace proto {
19 class ClientStateUpdate; 19 class ClientStateUpdate;
20 } // namespace proto 20 } // namespace proto
21 class CompositorProtoState;
22 21
23 class CC_EXPORT RemoteCompositorBridgeClient { 22 class CC_EXPORT RemoteCompositorBridgeClient {
24 public: 23 public:
25 using ScrollOffsetMap = std::unordered_map<int, gfx::ScrollOffset>; 24 using ScrollOffsetMap = std::unordered_map<int, gfx::ScrollOffset>;
26 25
27 virtual ~RemoteCompositorBridgeClient() {} 26 virtual ~RemoteCompositorBridgeClient() {}
28 27
29 // Called in response to a ScheduleMainFrame request made on the 28 // Called in response to a ScheduleMainFrame request made on the
30 // RemoteCompositorBridge. 29 // RemoteCompositorBridge.
31 // Note: The method should always be invoked asynchronously after the request 30 // Note: The method should always be invoked asynchronously after the request
32 // is made. 31 // is made.
33 virtual void BeginMainFrame() = 0; 32 virtual void BeginMainFrame() = 0;
34 33
35 // Applied state updates reported from the client onto the main thread state 34 // Applied state updates reported from the client onto the main thread state
36 // on the engine. 35 // on the engine.
37 virtual void ApplyStateUpdateFromClient( 36 virtual void ApplyStateUpdateFromClient(
38 const proto::ClientStateUpdate& client_state_update) = 0; 37 const proto::ClientStateUpdate& client_state_update) = 0;
39 }; 38 };
40 39
41 } // namespace cc 40 } // namespace cc
42 41
43 #endif // CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_ 42 #endif // CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/blimp/layer_tree_host_remote.h ('k') | cc/blink/web_content_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698