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

Side by Side Diff: cc/test/layer_tree_host_remote_for_testing.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
« no previous file with comments | « cc/test/fake_remote_compositor_bridge.h ('k') | cc/test/layer_tree_host_remote_for_testing.cc » ('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_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"
11 #include "ui/gfx/geometry/scroll_offset.h"
11 12
12 namespace gpu { 13 namespace gpu {
13 class GpuMemoryBufferManager; 14 class GpuMemoryBufferManager;
14 } // namespace gpu 15 } // namespace gpu
15 16
16 namespace cc { 17 namespace cc {
17 class CompositorStateDeserializer; 18 class CompositorStateDeserializer;
18 class FakeImageSerializationProcessor; 19 class FakeImageSerializationProcessor;
19 class LayerTreeHostInProcess; 20 class LayerTreeHostInProcess;
20 class SharedBitmapManager; 21 class SharedBitmapManager;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 83
83 // CompositorStateDeserializerClient implementation. 84 // CompositorStateDeserializerClient implementation.
84 bool ShouldRetainClientScroll(int engine_layer_id, 85 bool ShouldRetainClientScroll(int engine_layer_id,
85 const gfx::ScrollOffset& new_offset) override; 86 const gfx::ScrollOffset& new_offset) override;
86 bool ShouldRetainClientPageScale(float new_page_scale) override; 87 bool ShouldRetainClientPageScale(float new_page_scale) override;
87 88
88 // LayerTreeHostRemote interface. 89 // LayerTreeHostRemote interface.
89 void DispatchDrawAndSwapCallbacks() override; 90 void DispatchDrawAndSwapCallbacks() override;
90 91
91 void LayerDidScroll(int engine_layer_id); 92 void LayerDidScroll(int engine_layer_id);
93 void ApplyUpdatesFromInProcessHost();
92 94
93 void RemoteHostNeedsMainFrame(); 95 void RemoteHostNeedsMainFrame();
94 void ProcessRemoteCompositorUpdate( 96 void ProcessRemoteCompositorUpdate(
95 std::unique_ptr<CompositorProtoState> compositor_proto_state); 97 std::unique_ptr<CompositorProtoState> compositor_proto_state);
96 void UpdateStateOnInProcessHost(); 98 void UpdateStateOnInProcessHost();
97 99
98 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host_in_process_; 100 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host_in_process_;
99 std::unique_ptr<CompositorStateDeserializer> compositor_state_deserializer_; 101 std::unique_ptr<CompositorStateDeserializer> compositor_state_deserializer_;
100 102
101 std::unique_ptr<CompositorProtoState> pending_compositor_proto_state_; 103 std::unique_ptr<CompositorProtoState> pending_compositor_proto_state_;
104 ScrollOffsetMap layers_scrolled_;
102 105
103 std::unique_ptr<LayerTreeHostInProcessClient> 106 std::unique_ptr<LayerTreeHostInProcessClient>
104 layer_tree_host_in_process_client_; 107 layer_tree_host_in_process_client_;
105 108
106 std::unique_ptr<FakeImageSerializationProcessor> 109 std::unique_ptr<FakeImageSerializationProcessor>
107 image_serialization_processor_; 110 image_serialization_processor_;
108 111
109 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostRemoteForTesting); 112 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostRemoteForTesting);
110 }; 113 };
111 114
112 } // namespace cc 115 } // namespace cc
113 116
114 #endif // CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ 117 #endif // CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_
OLDNEW
« no previous file with comments | « cc/test/fake_remote_compositor_bridge.h ('k') | cc/test/layer_tree_host_remote_for_testing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698