| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/layers/append_quads_data.h" | 5 #include "cc/layers/append_quads_data.h" |
| 6 #include "cc/layers/content_layer_client.h" | 6 #include "cc/layers/content_layer_client.h" |
| 7 #include "cc/layers/picture_layer.h" | 7 #include "cc/layers/picture_layer.h" |
| 8 #include "cc/layers/picture_layer_impl.h" | 8 #include "cc/layers/picture_layer_impl.h" |
| 9 #include "cc/quads/draw_quad.h" | 9 #include "cc/quads/draw_quad.h" |
| 10 #include "cc/test/layer_tree_pixel_test.h" | 10 #include "cc/test/layer_tree_pixel_test.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 RunPixelTest(PIXEL_TEST_GL, | 105 RunPixelTest(PIXEL_TEST_GL, |
| 106 layer, | 106 layer, |
| 107 base::FilePath(FILE_PATH_LITERAL("blue_yellow.png"))); | 107 base::FilePath(FILE_PATH_LITERAL("blue_yellow.png"))); |
| 108 } | 108 } |
| 109 | 109 |
| 110 TEST_F(LayerTreeHostOnDemandRasterPixelTest, RasterPictureLayer) { | 110 TEST_F(LayerTreeHostOnDemandRasterPixelTest, RasterPictureLayer) { |
| 111 RunOnDemandRasterPixelTest(); | 111 RunOnDemandRasterPixelTest(); |
| 112 } | 112 } |
| 113 | 113 |
| 114 class LayerTreeHostOnDemandRasterPixelTestWithGpuRasterizationForced | |
| 115 : public LayerTreeHostOnDemandRasterPixelTest { | |
| 116 void InitializeSettings(LayerTreeSettings* settings) override { | |
| 117 LayerTreeHostOnDemandRasterPixelTest::InitializeSettings(settings); | |
| 118 settings->gpu_rasterization_forced = true; | |
| 119 } | |
| 120 }; | |
| 121 | |
| 122 TEST_F(LayerTreeHostOnDemandRasterPixelTestWithGpuRasterizationForced, | |
| 123 RasterPictureLayer) { | |
| 124 RunOnDemandRasterPixelTest(); | |
| 125 } | |
| 126 | |
| 127 } // namespace | 114 } // namespace |
| 128 } // namespace cc | 115 } // namespace cc |
| 129 | 116 |
| 130 #endif // OS_ANDROID | 117 #endif // OS_ANDROID |
| OLD | NEW |