| 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 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 private: | 992 private: |
| 993 int num_draws_; | 993 int num_draws_; |
| 994 const gfx::Size bounds_; | 994 const gfx::Size bounds_; |
| 995 const gfx::Rect invalid_rect_; | 995 const gfx::Rect invalid_rect_; |
| 996 FakeContentLayerClient client_; | 996 FakeContentLayerClient client_; |
| 997 scoped_refptr<FakePictureLayer> root_layer_; | 997 scoped_refptr<FakePictureLayer> root_layer_; |
| 998 }; | 998 }; |
| 999 | 999 |
| 1000 // As there's no pending tree in single-threaded case, this test should run | 1000 // As there's no pending tree in single-threaded case, this test should run |
| 1001 // only for multi-threaded case. | 1001 // only for multi-threaded case. |
| 1002 MULTI_THREAD_TEST_F(LayerTreeHostTestGpuRasterDeviceSizeChanged); | 1002 // Disabled because its timing out flakily. crbug.com/598491 |
| 1003 // MULTI_THREAD_TEST_F(LayerTreeHostTestGpuRasterDeviceSizeChanged); |
| 1003 | 1004 |
| 1004 class LayerTreeHostTestNoExtraCommitFromInvalidate : public LayerTreeHostTest { | 1005 class LayerTreeHostTestNoExtraCommitFromInvalidate : public LayerTreeHostTest { |
| 1005 public: | 1006 public: |
| 1006 void InitializeSettings(LayerTreeSettings* settings) override { | 1007 void InitializeSettings(LayerTreeSettings* settings) override { |
| 1007 settings->layer_transforms_should_scale_layer_contents = true; | 1008 settings->layer_transforms_should_scale_layer_contents = true; |
| 1008 } | 1009 } |
| 1009 | 1010 |
| 1010 void SetupTree() override { | 1011 void SetupTree() override { |
| 1011 root_layer_ = Layer::Create(); | 1012 root_layer_ = Layer::Create(); |
| 1012 root_layer_->SetBounds(gfx::Size(10, 20)); | 1013 root_layer_->SetBounds(gfx::Size(10, 20)); |
| (...skipping 5583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6596 EndTest(); | 6597 EndTest(); |
| 6597 } | 6598 } |
| 6598 | 6599 |
| 6599 void AfterTest() override {} | 6600 void AfterTest() override {} |
| 6600 }; | 6601 }; |
| 6601 | 6602 |
| 6602 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor); | 6603 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor); |
| 6603 | 6604 |
| 6604 } // namespace | 6605 } // namespace |
| 6605 } // namespace cc | 6606 } // namespace cc |
| OLD | NEW |