| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.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 7161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7172 | 7172 |
| 7173 void SetupTree() override { | 7173 void SetupTree() override { |
| 7174 client_.set_fill_with_nonsolid_color(true); | 7174 client_.set_fill_with_nonsolid_color(true); |
| 7175 | 7175 |
| 7176 std::unique_ptr<FakeRecordingSource> recording = | 7176 std::unique_ptr<FakeRecordingSource> recording = |
| 7177 FakeRecordingSource::CreateFilledRecordingSource( | 7177 FakeRecordingSource::CreateFilledRecordingSource( |
| 7178 gfx::Size(10000, 10000)); | 7178 gfx::Size(10000, 10000)); |
| 7179 | 7179 |
| 7180 recording->add_draw_image(CreateDiscardableImage(large_image_size_), | 7180 recording->add_draw_image(CreateDiscardableImage(large_image_size_), |
| 7181 gfx::Point(0, 0)); | 7181 gfx::Point(0, 0)); |
| 7182 recording->SetGenerateDiscardableImagesMetadata(true); | |
| 7183 recording->Rerecord(); | 7182 recording->Rerecord(); |
| 7184 | 7183 |
| 7185 scoped_refptr<FakePictureLayer> root = | 7184 scoped_refptr<FakePictureLayer> root = |
| 7186 FakePictureLayer::CreateWithRecordingSource(&client_, | 7185 FakePictureLayer::CreateWithRecordingSource(&client_, |
| 7187 std::move(recording)); | 7186 std::move(recording)); |
| 7188 root->SetBounds(gfx::Size(10000, 10000)); | 7187 root->SetBounds(gfx::Size(10000, 10000)); |
| 7189 client_.set_bounds(root->bounds()); | 7188 client_.set_bounds(root->bounds()); |
| 7190 root->SetContentsOpaque(true); | 7189 root->SetContentsOpaque(true); |
| 7191 | 7190 |
| 7192 layer_tree_host()->SetRootLayer(root); | 7191 layer_tree_host()->SetRootLayer(root); |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7595 void AfterTest() override {} | 7594 void AfterTest() override {} |
| 7596 | 7595 |
| 7597 private: | 7596 private: |
| 7598 bool received_ack_ = false; | 7597 bool received_ack_ = false; |
| 7599 }; | 7598 }; |
| 7600 | 7599 |
| 7601 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestDiscardAckAfterRelease); | 7600 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestDiscardAckAfterRelease); |
| 7602 | 7601 |
| 7603 } // namespace | 7602 } // namespace |
| 7604 } // namespace cc | 7603 } // namespace cc |
| OLD | NEW |