| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "cc/layers/content_layer_client.h" | 6 #include "cc/layers/content_layer_client.h" |
| 7 #include "cc/layers/picture_image_layer.h" | 7 #include "cc/layers/picture_image_layer.h" |
| 8 #include "cc/layers/picture_layer.h" | 8 #include "cc/layers/picture_layer.h" |
| 9 #include "cc/layers/solid_color_layer.h" | 9 #include "cc/layers/solid_color_layer.h" |
| 10 #include "cc/test/fake_content_layer_client.h" | 10 #include "cc/test/fake_content_layer_client.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 RunSingleThreadedPixelTest( | 45 RunSingleThreadedPixelTest( |
| 46 PIXEL_TEST_GL, root, base::FilePath(FILE_PATH_LITERAL("green.png"))); | 46 PIXEL_TEST_GL, root, base::FilePath(FILE_PATH_LITERAL("green.png"))); |
| 47 } | 47 } |
| 48 | 48 |
| 49 class LayerTreeHostSynchronousGPUPixelTest : public LayerTreePixelTest { | 49 class LayerTreeHostSynchronousGPUPixelTest : public LayerTreePixelTest { |
| 50 public: | 50 public: |
| 51 void InitializeSettings(LayerTreeSettings* settings) override { | 51 void InitializeSettings(LayerTreeSettings* settings) override { |
| 52 LayerTreePixelTest::InitializeSettings(settings); | 52 LayerTreePixelTest::InitializeSettings(settings); |
| 53 settings->single_thread_proxy_scheduler = false; | 53 settings->single_thread_proxy_scheduler = false; |
| 54 settings->gpu_rasterization_enabled = true; | |
| 55 settings->gpu_rasterization_forced = true; | 54 settings->gpu_rasterization_forced = true; |
| 56 } | 55 } |
| 57 | 56 |
| 58 void BeginTest() override { | 57 void BeginTest() override { |
| 59 LayerTreePixelTest::BeginTest(); | 58 LayerTreePixelTest::BeginTest(); |
| 60 PostCompositeImmediatelyToMainThread(); | 59 PostCompositeImmediatelyToMainThread(); |
| 61 } | 60 } |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 TEST_F(LayerTreeHostSynchronousGPUPixelTest, OneContentLayer) { | 63 TEST_F(LayerTreeHostSynchronousGPUPixelTest, OneContentLayer) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 75 root->SetIsDrawable(true); | 74 root->SetIsDrawable(true); |
| 76 | 75 |
| 77 RunSingleThreadedPixelTest(PIXEL_TEST_GL, root, | 76 RunSingleThreadedPixelTest(PIXEL_TEST_GL, root, |
| 78 base::FilePath(FILE_PATH_LITERAL("green.png"))); | 77 base::FilePath(FILE_PATH_LITERAL("green.png"))); |
| 79 } | 78 } |
| 80 | 79 |
| 81 } // namespace | 80 } // namespace |
| 82 } // namespace cc | 81 } // namespace cc |
| 83 | 82 |
| 84 #endif // OS_ANDROID | 83 #endif // OS_ANDROID |
| OLD | NEW |