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

Side by Side Diff: cc/test/fake_remote_compositor_bridge.h

Issue 2404953002: cc/blimp: Set up hooks for scroll/scale sync. (Closed)
Patch Set: braces Created 4 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
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_TEST_FAKE_REMOTE_COMPOSITOR_BRIDGE_H_ 5 #ifndef CC_TEST_FAKE_REMOTE_COMPOSITOR_BRIDGE_H_
6 #define CC_TEST_FAKE_REMOTE_COMPOSITOR_BRIDGE_H_ 6 #define CC_TEST_FAKE_REMOTE_COMPOSITOR_BRIDGE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 FakeRemoteCompositorBridge( 21 FakeRemoteCompositorBridge(
22 scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner); 22 scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner);
23 ~FakeRemoteCompositorBridge() override; 23 ~FakeRemoteCompositorBridge() override;
24 24
25 // RemoteCompositorBridge implementation. 25 // RemoteCompositorBridge implementation.
26 void BindToClient(RemoteCompositorBridgeClient* client) override; 26 void BindToClient(RemoteCompositorBridgeClient* client) override;
27 void ScheduleMainFrame() override; 27 void ScheduleMainFrame() override;
28 void ProcessCompositorStateUpdate( 28 void ProcessCompositorStateUpdate(
29 std::unique_ptr<CompositorProtoState> compositor_proto_state) override {} 29 std::unique_ptr<CompositorProtoState> compositor_proto_state) override {}
30 30
31 private: 31 protected:
32 void BeginMainFrame(); 32 void BeginMainFrame();
33 33
34 RemoteCompositorBridgeClient* client_; 34 RemoteCompositorBridgeClient* client_;
35 base::WeakPtrFactory<FakeRemoteCompositorBridge> weak_factory_; 35 base::WeakPtrFactory<FakeRemoteCompositorBridge> weak_factory_;
36 }; 36 };
37 37
38 } // namespace cc 38 } // namespace cc
39 39
40 #endif // CC_TEST_FAKE_REMOTE_COMPOSITOR_BRIDGE_H_ 40 #endif // CC_TEST_FAKE_REMOTE_COMPOSITOR_BRIDGE_H_
OLDNEW
« no previous file with comments | « cc/blimp/remote_compositor_bridge_client.h ('k') | cc/test/layer_tree_host_remote_for_testing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698