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

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

Issue 2494623002: cc: Remove client/engine LayerTreeHostInProcess. (Closed)
Patch Set: .. 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/test/layer_tree_test.h ('k') | cc/test/remote_compositor_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_TEST_REMOTE_COMPOSITOR_TEST_H_
6 #define CC_TEST_REMOTE_COMPOSITOR_TEST_H_
7
8 #include "base/macros.h"
9 #include "cc/blimp/compositor_state_deserializer.h"
10 #include "cc/test/fake_image_serialization_processor.h"
11 #include "cc/test/fake_layer_tree_host_client.h"
12 #include "cc/test/stub_layer_tree_host_client.h"
13 #include "cc/test/test_task_graph_runner.h"
14 #include "testing/gtest/include/gtest/gtest.h"
15
16 namespace cc {
17 class AnimationHost;
18 class CompositorProtoState;
19 class FakeLayerTreeHost;
20 class LayerTreeHostRemote;
21
22 class RemoteCompositorTest : public testing::Test,
23 public CompositorStateDeserializerClient,
24 public FakeLayerTreeHostClient {
25 public:
26 RemoteCompositorTest();
27 ~RemoteCompositorTest() override;
28
29 void SetUp() override;
30 void TearDown() override;
31
32 // CompositorStateDeserializer implementation.
33 void DidUpdateLocalState() override;
34
35 // FakeLayerTreeHostClient implementation.
36 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
37 const gfx::Vector2dF& outer_delta,
38 const gfx::Vector2dF& elastic_overscroll_delta,
39 float page_scale,
40 float top_controls_delta) override;
41
42 void ProcessCompositorStateUpdate(
43 std::unique_ptr<CompositorProtoState> compositor_proto_state);
44
45 protected:
46 // Engine setup.
47 std::unique_ptr<LayerTreeHostRemote> layer_tree_host_remote_;
48 StubLayerTreeHostClient layer_tree_host_client_remote_;
49
50 // Client setup.
51 std::unique_ptr<AnimationHost> animation_host_;
52 std::unique_ptr<FakeLayerTreeHost> layer_tree_host_in_process_;
53 std::unique_ptr<CompositorStateDeserializer> compositor_state_deserializer_;
54 TestTaskGraphRunner task_graph_runner_;
55
56 FakeImageSerializationProcessor image_serialization_processor_;
57
58 bool client_state_dirty_ = false;
59 };
60
61 } // namespace cc
62
63 #endif // CC_TEST_REMOTE_COMPOSITOR_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.h ('k') | cc/test/remote_compositor_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698