OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "cc/layers/content_layer_client.h" | 7 #include "cc/layers/content_layer_client.h" |
8 #include "cc/layers/picture_layer.h" | 8 #include "cc/layers/picture_layer.h" |
9 #include "cc/output/copy_output_request.h" | 9 #include "cc/output/copy_output_request.h" |
10 #include "cc/paint/paint_canvas.h" | 10 #include "cc/paint/paint_canvas.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 settings->use_zero_copy = false; | 43 settings->use_zero_copy = false; |
44 settings->use_partial_raster = false; | 44 settings->use_partial_raster = false; |
45 break; | 45 break; |
46 case PARTIAL_BITMAP: | 46 case PARTIAL_BITMAP: |
47 settings->use_partial_raster = true; | 47 settings->use_partial_raster = true; |
48 break; | 48 break; |
49 case FULL_BITMAP: | 49 case FULL_BITMAP: |
50 settings->use_partial_raster = false; | 50 settings->use_partial_raster = false; |
51 break; | 51 break; |
52 case PARTIAL_GPU: | 52 case PARTIAL_GPU: |
53 settings->gpu_rasterization_enabled = true; | |
54 settings->gpu_rasterization_forced = true; | 53 settings->gpu_rasterization_forced = true; |
55 settings->use_partial_raster = true; | 54 settings->use_partial_raster = true; |
56 break; | 55 break; |
57 case FULL_GPU: | 56 case FULL_GPU: |
58 settings->gpu_rasterization_enabled = true; | |
59 settings->gpu_rasterization_forced = true; | 57 settings->gpu_rasterization_forced = true; |
60 settings->use_partial_raster = false; | 58 settings->use_partial_raster = false; |
61 break; | 59 break; |
62 } | 60 } |
63 } | 61 } |
64 | 62 |
65 void BeginTest() override { | 63 void BeginTest() override { |
66 // Don't set up a readback target at the start of the test. | 64 // Don't set up a readback target at the start of the test. |
67 PostSetNeedsCommitToMainThread(); | 65 PostSetNeedsCommitToMainThread(); |
68 } | 66 } |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 FullRaster_SingleThread_GpuRaster) { | 242 FullRaster_SingleThread_GpuRaster) { |
245 RunRasterPixelTest( | 243 RunRasterPixelTest( |
246 false, FULL_GPU, picture_layer_, | 244 false, FULL_GPU, picture_layer_, |
247 base::FilePath(FILE_PATH_LITERAL("blue_yellow_flipped.png"))); | 245 base::FilePath(FILE_PATH_LITERAL("blue_yellow_flipped.png"))); |
248 } | 246 } |
249 | 247 |
250 } // namespace | 248 } // namespace |
251 } // namespace cc | 249 } // namespace cc |
252 | 250 |
253 #endif // !defined(OS_ANDROID) | 251 #endif // !defined(OS_ANDROID) |
OLD | NEW |