| 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 5259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5270 | 5270 |
| 5271 ScrollAndScaleSet info_; | 5271 ScrollAndScaleSet info_; |
| 5272 bool deltas_sent_to_client_; | 5272 bool deltas_sent_to_client_; |
| 5273 }; | 5273 }; |
| 5274 | 5274 |
| 5275 MULTI_THREAD_TEST_F(LayerTreeHostAcceptsDeltasFromImplWithoutRootLayer); | 5275 MULTI_THREAD_TEST_F(LayerTreeHostAcceptsDeltasFromImplWithoutRootLayer); |
| 5276 | 5276 |
| 5277 class LayerTreeHostTestCrispUpAfterPinchEnds : public LayerTreeHostTest { | 5277 class LayerTreeHostTestCrispUpAfterPinchEnds : public LayerTreeHostTest { |
| 5278 protected: | 5278 protected: |
| 5279 LayerTreeHostTestCrispUpAfterPinchEnds() | 5279 LayerTreeHostTestCrispUpAfterPinchEnds() |
| 5280 : playback_allowed_event_(true, true) {} | 5280 : playback_allowed_event_(base::WaitableEvent::ResetPolicy::MANUAL, |
| 5281 base::WaitableEvent::InitialState::SIGNALED) {} |
| 5281 | 5282 |
| 5282 void SetupTree() override { | 5283 void SetupTree() override { |
| 5283 frame_ = 1; | 5284 frame_ = 1; |
| 5284 posted_ = false; | 5285 posted_ = false; |
| 5285 client_.set_fill_with_nonsolid_color(true); | 5286 client_.set_fill_with_nonsolid_color(true); |
| 5286 | 5287 |
| 5287 scoped_refptr<Layer> root_clip = Layer::Create(); | 5288 scoped_refptr<Layer> root_clip = Layer::Create(); |
| 5288 root_clip->SetBounds(gfx::Size(500, 500)); | 5289 root_clip->SetBounds(gfx::Size(500, 500)); |
| 5289 scoped_refptr<Layer> page_scale_layer = Layer::Create(); | 5290 scoped_refptr<Layer> page_scale_layer = Layer::Create(); |
| 5290 page_scale_layer->SetBounds(gfx::Size(500, 500)); | 5291 page_scale_layer->SetBounds(gfx::Size(500, 500)); |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5572 FakeContentLayerClient client_; | 5573 FakeContentLayerClient client_; |
| 5573 gfx::Size viewport_size_; | 5574 gfx::Size viewport_size_; |
| 5574 }; | 5575 }; |
| 5575 | 5576 |
| 5576 SINGLE_AND_MULTI_THREAD_TEST_F(GpuRasterizationRasterizesBorderTiles); | 5577 SINGLE_AND_MULTI_THREAD_TEST_F(GpuRasterizationRasterizesBorderTiles); |
| 5577 | 5578 |
| 5578 class LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles | 5579 class LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles |
| 5579 : public LayerTreeHostTest { | 5580 : public LayerTreeHostTest { |
| 5580 protected: | 5581 protected: |
| 5581 LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles() | 5582 LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles() |
| 5582 : playback_allowed_event_(true, true) {} | 5583 : playback_allowed_event_(base::WaitableEvent::ResetPolicy::MANUAL, |
| 5584 base::WaitableEvent::InitialState::SIGNALED) {} |
| 5583 | 5585 |
| 5584 void SetupTree() override { | 5586 void SetupTree() override { |
| 5585 step_ = 1; | 5587 step_ = 1; |
| 5586 continuous_draws_ = 0; | 5588 continuous_draws_ = 0; |
| 5587 client_.set_fill_with_nonsolid_color(true); | 5589 client_.set_fill_with_nonsolid_color(true); |
| 5588 | 5590 |
| 5589 scoped_refptr<Layer> root_clip = Layer::Create(); | 5591 scoped_refptr<Layer> root_clip = Layer::Create(); |
| 5590 root_clip->SetBounds(gfx::Size(500, 500)); | 5592 root_clip->SetBounds(gfx::Size(500, 500)); |
| 5591 scoped_refptr<Layer> page_scale_layer = Layer::Create(); | 5593 scoped_refptr<Layer> page_scale_layer = Layer::Create(); |
| 5592 page_scale_layer->SetBounds(gfx::Size(500, 500)); | 5594 page_scale_layer->SetBounds(gfx::Size(500, 500)); |
| (...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6596 EndTest(); | 6598 EndTest(); |
| 6597 } | 6599 } |
| 6598 | 6600 |
| 6599 void AfterTest() override {} | 6601 void AfterTest() override {} |
| 6600 }; | 6602 }; |
| 6601 | 6603 |
| 6602 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor); | 6604 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor); |
| 6603 | 6605 |
| 6604 } // namespace | 6606 } // namespace |
| 6605 } // namespace cc | 6607 } // namespace cc |
| OLD | NEW |