| OLD | NEW |
| 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 11 matching lines...) Expand all Loading... |
| 22 FakeRemoteCompositorBridge( | 22 FakeRemoteCompositorBridge( |
| 23 scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner); | 23 scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner); |
| 24 ~FakeRemoteCompositorBridge() override; | 24 ~FakeRemoteCompositorBridge() override; |
| 25 | 25 |
| 26 // RemoteCompositorBridge implementation. | 26 // RemoteCompositorBridge implementation. |
| 27 void BindToClient(RemoteCompositorBridgeClient* client) override; | 27 void BindToClient(RemoteCompositorBridgeClient* client) override; |
| 28 void ScheduleMainFrame() override; | 28 void ScheduleMainFrame() override; |
| 29 void ProcessCompositorStateUpdate( | 29 void ProcessCompositorStateUpdate( |
| 30 std::unique_ptr<CompositorProtoState> compositor_proto_state) override {} | 30 std::unique_ptr<CompositorProtoState> compositor_proto_state) override {} |
| 31 | 31 |
| 32 bool has_pending_update() const { return has_pending_update_; } |
| 33 |
| 32 protected: | 34 protected: |
| 33 void BeginMainFrame(); | 35 void BeginMainFrame(); |
| 34 | 36 |
| 35 RemoteCompositorBridgeClient* client_; | 37 RemoteCompositorBridgeClient* client_; |
| 38 |
| 39 private: |
| 40 bool has_pending_update_ = false; |
| 36 base::WeakPtrFactory<FakeRemoteCompositorBridge> weak_factory_; | 41 base::WeakPtrFactory<FakeRemoteCompositorBridge> weak_factory_; |
| 37 }; | 42 }; |
| 38 | 43 |
| 39 } // namespace cc | 44 } // namespace cc |
| 40 | 45 |
| 41 #endif // CC_TEST_FAKE_REMOTE_COMPOSITOR_BRIDGE_H_ | 46 #endif // CC_TEST_FAKE_REMOTE_COMPOSITOR_BRIDGE_H_ |
| OLD | NEW |