| 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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 void AfterTest() override {} | 917 void AfterTest() override {} |
| 918 | 918 |
| 919 private: | 919 private: |
| 920 int num_draws_; | 920 int num_draws_; |
| 921 const gfx::Size bounds_; | 921 const gfx::Size bounds_; |
| 922 const gfx::Rect invalid_rect_; | 922 const gfx::Rect invalid_rect_; |
| 923 FakeContentLayerClient client_; | 923 FakeContentLayerClient client_; |
| 924 scoped_refptr<FakePictureLayer> root_layer_; | 924 scoped_refptr<FakePictureLayer> root_layer_; |
| 925 }; | 925 }; |
| 926 | 926 |
| 927 #if !defined(OS_WIN) |
| 928 // Flaky on win: http://crbug.com/596880 |
| 927 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestGpuRasterDeviceSizeChanged); | 929 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestGpuRasterDeviceSizeChanged); |
| 930 #endif |
| 928 | 931 |
| 929 class LayerTreeHostTestNoExtraCommitFromInvalidate : public LayerTreeHostTest { | 932 class LayerTreeHostTestNoExtraCommitFromInvalidate : public LayerTreeHostTest { |
| 930 public: | 933 public: |
| 931 void InitializeSettings(LayerTreeSettings* settings) override { | 934 void InitializeSettings(LayerTreeSettings* settings) override { |
| 932 settings->layer_transforms_should_scale_layer_contents = true; | 935 settings->layer_transforms_should_scale_layer_contents = true; |
| 933 } | 936 } |
| 934 | 937 |
| 935 void SetupTree() override { | 938 void SetupTree() override { |
| 936 root_layer_ = Layer::Create(); | 939 root_layer_ = Layer::Create(); |
| 937 root_layer_->SetBounds(gfx::Size(10, 20)); | 940 root_layer_->SetBounds(gfx::Size(10, 20)); |
| (...skipping 5714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6652 EndTest(); | 6655 EndTest(); |
| 6653 } | 6656 } |
| 6654 | 6657 |
| 6655 void AfterTest() override {} | 6658 void AfterTest() override {} |
| 6656 }; | 6659 }; |
| 6657 | 6660 |
| 6658 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor); | 6661 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor); |
| 6659 | 6662 |
| 6660 } // namespace | 6663 } // namespace |
| 6661 } // namespace cc | 6664 } // namespace cc |
| OLD | NEW |