OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #include "cc/layers/texture_layer.h" | 5 #include "cc/layers/texture_layer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 gpu::SyncToken sync_token1_; | 203 gpu::SyncToken sync_token1_; |
204 gpu::SyncToken sync_token2_; | 204 gpu::SyncToken sync_token2_; |
205 std::unique_ptr<SharedBitmap> shared_bitmap_; | 205 std::unique_ptr<SharedBitmap> shared_bitmap_; |
206 }; | 206 }; |
207 | 207 |
208 class TextureLayerTest : public testing::Test { | 208 class TextureLayerTest : public testing::Test { |
209 public: | 209 public: |
210 TextureLayerTest() | 210 TextureLayerTest() |
211 : compositor_frame_sink_(FakeCompositorFrameSink::Create3d()), | 211 : compositor_frame_sink_(FakeCompositorFrameSink::Create3d()), |
212 host_impl_(&task_runner_provider_, | 212 host_impl_(&task_runner_provider_, |
213 &shared_bitmap_manager_, | |
214 &task_graph_runner_), | 213 &task_graph_runner_), |
215 test_data_(&shared_bitmap_manager_) {} | 214 test_data_(&shared_bitmap_manager_) {} |
216 | 215 |
217 protected: | 216 protected: |
218 void SetUp() override { | 217 void SetUp() override { |
219 layer_tree_host_ = | 218 layer_tree_host_ = |
220 MockLayerTreeHost::Create(&fake_client_, &task_graph_runner_); | 219 MockLayerTreeHost::Create(&fake_client_, &task_graph_runner_); |
221 layer_tree_ = layer_tree_host_->GetLayerTree(); | 220 layer_tree_ = layer_tree_host_->GetLayerTree(); |
222 EXPECT_CALL(*layer_tree_host_, SetNeedsCommit()).Times(AnyNumber()); | 221 EXPECT_CALL(*layer_tree_host_, SetNeedsCommit()).Times(AnyNumber()); |
223 layer_tree_->SetViewportSize(gfx::Size(10, 10)); | 222 layer_tree_->SetViewportSize(gfx::Size(10, 10)); |
(...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1451 base::ThreadChecker main_thread_; | 1450 base::ThreadChecker main_thread_; |
1452 int callback_count_; | 1451 int callback_count_; |
1453 scoped_refptr<Layer> root_; | 1452 scoped_refptr<Layer> root_; |
1454 scoped_refptr<TextureLayer> layer_; | 1453 scoped_refptr<TextureLayer> layer_; |
1455 }; | 1454 }; |
1456 | 1455 |
1457 SINGLE_AND_MULTI_THREAD_TEST_F(TextureLayerWithMailboxImplThreadDeleted); | 1456 SINGLE_AND_MULTI_THREAD_TEST_F(TextureLayerWithMailboxImplThreadDeleted); |
1458 | 1457 |
1459 } // namespace | 1458 } // namespace |
1460 } // namespace cc | 1459 } // namespace cc |
OLD | NEW |