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_TEST_LAYER_TREE_HOST_BASE_H_ | 5 #ifndef CC_TEST_TEST_LAYER_TREE_HOST_BASE_H_ |
6 #define CC_TEST_TEST_LAYER_TREE_HOST_BASE_H_ | 6 #define CC_TEST_TEST_LAYER_TREE_HOST_BASE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "cc/output/compositor_frame_sink.h" | 10 #include "cc/output/compositor_frame_sink.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 std::unique_ptr<FakeLayerTreeHostImpl> TakeHostImpl(); | 39 std::unique_ptr<FakeLayerTreeHostImpl> TakeHostImpl(); |
40 | 40 |
41 void SetupDefaultTrees(const gfx::Size& layer_bounds); | 41 void SetupDefaultTrees(const gfx::Size& layer_bounds); |
42 void SetupTrees(scoped_refptr<RasterSource> pending_raster_source, | 42 void SetupTrees(scoped_refptr<RasterSource> pending_raster_source, |
43 scoped_refptr<RasterSource> active_raster_source); | 43 scoped_refptr<RasterSource> active_raster_source); |
44 void SetupPendingTree(scoped_refptr<RasterSource> raster_source); | 44 void SetupPendingTree(scoped_refptr<RasterSource> raster_source); |
45 void SetupPendingTree(scoped_refptr<RasterSource> raster_source, | 45 void SetupPendingTree(scoped_refptr<RasterSource> raster_source, |
46 const gfx::Size& tile_size, | 46 const gfx::Size& tile_size, |
47 const Region& invalidation); | 47 const Region& invalidation); |
48 void ActivateTree(); | 48 void ActivateTree(); |
| 49 void PerformImplSideInvalidation(); |
49 void RebuildPropertyTreesOnPendingTree(); | 50 void RebuildPropertyTreesOnPendingTree(); |
50 | 51 |
51 FakeLayerTreeHostImpl* host_impl() const { return host_impl_.get(); } | 52 FakeLayerTreeHostImpl* host_impl() const { return host_impl_.get(); } |
52 TaskGraphRunner* task_graph_runner() const { | 53 TaskGraphRunner* task_graph_runner() const { |
53 return task_graph_runner_.get(); | 54 return task_graph_runner_.get(); |
54 } | 55 } |
55 CompositorFrameSink* compositor_frame_sink() const { | 56 CompositorFrameSink* compositor_frame_sink() const { |
56 return compositor_frame_sink_.get(); | 57 return compositor_frame_sink_.get(); |
57 } | 58 } |
58 FakePictureLayerImpl* pending_layer() const { return pending_layer_; } | 59 FakePictureLayerImpl* pending_layer() const { return pending_layer_; } |
(...skipping 12 matching lines...) Expand all Loading... |
71 FakePictureLayerImpl* pending_layer_; | 72 FakePictureLayerImpl* pending_layer_; |
72 FakePictureLayerImpl* active_layer_; | 73 FakePictureLayerImpl* active_layer_; |
73 FakePictureLayerImpl* old_pending_layer_; | 74 FakePictureLayerImpl* old_pending_layer_; |
74 const int root_id_; | 75 const int root_id_; |
75 const int id_; | 76 const int id_; |
76 }; | 77 }; |
77 | 78 |
78 } // namespace cc | 79 } // namespace cc |
79 | 80 |
80 #endif // CC_TEST_TEST_LAYER_TREE_HOST_BASE_H_ | 81 #endif // CC_TEST_TEST_LAYER_TREE_HOST_BASE_H_ |
OLD | NEW |