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

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

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: rebase 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_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ 5 #ifndef CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_
6 #define CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ 6 #define CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/blimp/compositor_state_deserializer_client.h" 9 #include "cc/blimp/compositor_state_deserializer_client.h"
10 #include "cc/blimp/layer_tree_host_remote.h" 10 #include "cc/blimp/layer_tree_host_remote.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 private: 79 private:
80 class LayerTreeHostInProcessClient; 80 class LayerTreeHostInProcessClient;
81 class RemoteCompositorBridgeImpl; 81 class RemoteCompositorBridgeImpl;
82 82
83 // CompositorStateDeserializerClient implementation. 83 // CompositorStateDeserializerClient implementation.
84 bool ShouldRetainClientScroll(int engine_layer_id, 84 bool ShouldRetainClientScroll(int engine_layer_id,
85 const gfx::ScrollOffset& new_offset) override; 85 const gfx::ScrollOffset& new_offset) override;
86 bool ShouldRetainClientPageScale(float new_page_scale) override; 86 bool ShouldRetainClientPageScale(float new_page_scale) override;
87 87
88 // LayerTreeHostRemote interface. 88 // LayerTreeHostRemote interface.
89 void DispatchDrawAndSwapCallbacks() override; 89 void DispatchDrawAndSubmitCallbacks() override;
90 90
91 void LayerDidScroll(int engine_layer_id); 91 void LayerDidScroll(int engine_layer_id);
92 92
93 void RemoteHostNeedsMainFrame(); 93 void RemoteHostNeedsMainFrame();
94 void ProcessRemoteCompositorUpdate( 94 void ProcessRemoteCompositorUpdate(
95 std::unique_ptr<CompositorProtoState> compositor_proto_state); 95 std::unique_ptr<CompositorProtoState> compositor_proto_state);
96 void UpdateStateOnInProcessHost(); 96 void UpdateStateOnInProcessHost();
97 97
98 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host_in_process_; 98 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host_in_process_;
99 std::unique_ptr<CompositorStateDeserializer> compositor_state_deserializer_; 99 std::unique_ptr<CompositorStateDeserializer> compositor_state_deserializer_;
100 100
101 std::unique_ptr<CompositorProtoState> pending_compositor_proto_state_; 101 std::unique_ptr<CompositorProtoState> pending_compositor_proto_state_;
102 102
103 std::unique_ptr<LayerTreeHostInProcessClient> 103 std::unique_ptr<LayerTreeHostInProcessClient>
104 layer_tree_host_in_process_client_; 104 layer_tree_host_in_process_client_;
105 105
106 std::unique_ptr<FakeImageSerializationProcessor> 106 std::unique_ptr<FakeImageSerializationProcessor>
107 image_serialization_processor_; 107 image_serialization_processor_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostRemoteForTesting); 109 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostRemoteForTesting);
110 }; 110 };
111 111
112 } // namespace cc 112 } // namespace cc
113 113
114 #endif // CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ 114 #endif // CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698