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/playback/display_item_list.h" | 10 #include "cc/playback/display_item_list.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 DoReadback(); | 174 DoReadback(); |
175 break; | 175 break; |
176 } | 176 } |
177 } | 177 } |
178 | 178 |
179 protected: | 179 protected: |
180 BlueYellowClient client_; | 180 BlueYellowClient client_; |
181 scoped_refptr<PictureLayer> picture_layer_; | 181 scoped_refptr<PictureLayer> picture_layer_; |
182 }; | 182 }; |
183 | 183 |
| 184 // Fails flakily on Linux ASan (http://crbug.com/645898). |
| 185 #if defined(OS_LINUX) && defined(ADDRESS_SANITIZER) |
| 186 #define MAYBE_PartialRaster_SingleThread_OneCopy \ |
| 187 DISABLED_PartialRaster_SingleThread_OneCopy |
| 188 #else |
| 189 #define MAYBE_PartialRaster_SingleThread_OneCopy \ |
| 190 PartialRaster_SingleThread_OneCopy |
| 191 #endif |
184 TEST_F(LayerTreeHostTilesTestPartialInvalidation, | 192 TEST_F(LayerTreeHostTilesTestPartialInvalidation, |
185 PartialRaster_SingleThread_OneCopy) { | 193 MAYBE_PartialRaster_SingleThread_OneCopy) { |
186 RunRasterPixelTest( | 194 RunRasterPixelTest( |
187 false, PARTIAL_ONE_COPY, picture_layer_, | 195 false, PARTIAL_ONE_COPY, picture_layer_, |
188 base::FilePath(FILE_PATH_LITERAL("blue_yellow_partial_flipped.png"))); | 196 base::FilePath(FILE_PATH_LITERAL("blue_yellow_partial_flipped.png"))); |
189 } | 197 } |
190 | 198 |
| 199 // Fails flakily on Linux ASan (http://crbug.com/645898). |
| 200 #if defined(OS_LINUX) && defined(ADDRESS_SANITIZER) |
| 201 #define MAYBE_FullRaster_SingleThread_OneCopy \ |
| 202 DISABLED_FullRaster_SingleThread_OneCopy |
| 203 #else |
| 204 #define MAYBE_FullRaster_SingleThread_OneCopy FullRaster_SingleThread_OneCopy |
| 205 #endif |
191 TEST_F(LayerTreeHostTilesTestPartialInvalidation, | 206 TEST_F(LayerTreeHostTilesTestPartialInvalidation, |
192 FullRaster_SingleThread_OneCopy) { | 207 MAYBE_FullRaster_SingleThread_OneCopy) { |
193 RunRasterPixelTest( | 208 RunRasterPixelTest( |
194 false, FULL_ONE_COPY, picture_layer_, | 209 false, FULL_ONE_COPY, picture_layer_, |
195 base::FilePath(FILE_PATH_LITERAL("blue_yellow_flipped.png"))); | 210 base::FilePath(FILE_PATH_LITERAL("blue_yellow_flipped.png"))); |
196 } | 211 } |
197 | 212 |
198 TEST_F(LayerTreeHostTilesTestPartialInvalidation, | 213 TEST_F(LayerTreeHostTilesTestPartialInvalidation, |
199 PartialRaster_MultiThread_OneCopy) { | 214 PartialRaster_MultiThread_OneCopy) { |
200 RunRasterPixelTest( | 215 RunRasterPixelTest( |
201 true, PARTIAL_ONE_COPY, picture_layer_, | 216 true, PARTIAL_ONE_COPY, picture_layer_, |
202 base::FilePath(FILE_PATH_LITERAL("blue_yellow_partial_flipped.png"))); | 217 base::FilePath(FILE_PATH_LITERAL("blue_yellow_partial_flipped.png"))); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 FullRaster_SingleThread_GpuRaster) { | 249 FullRaster_SingleThread_GpuRaster) { |
235 RunRasterPixelTest( | 250 RunRasterPixelTest( |
236 false, FULL_GPU, picture_layer_, | 251 false, FULL_GPU, picture_layer_, |
237 base::FilePath(FILE_PATH_LITERAL("blue_yellow_flipped.png"))); | 252 base::FilePath(FILE_PATH_LITERAL("blue_yellow_flipped.png"))); |
238 } | 253 } |
239 | 254 |
240 } // namespace | 255 } // namespace |
241 } // namespace cc | 256 } // namespace cc |
242 | 257 |
243 #endif // !defined(OS_ANDROID) | 258 #endif // !defined(OS_ANDROID) |
OLD | NEW |