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 "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/layer_tree_pixel_resource_test.h" | 10 #include "cc/test/layer_tree_pixel_resource_test.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 while (!inset_rect.IsEmpty()) { | 40 while (!inset_rect.IsEmpty()) { |
41 inset_rect.Inset(3, 3, 2, 2); | 41 inset_rect.Inset(3, 3, 2, 2); |
42 canvas->drawRect( | 42 canvas->drawRect( |
43 SkRect::MakeXYWH(inset_rect.x(), inset_rect.y(), | 43 SkRect::MakeXYWH(inset_rect.x(), inset_rect.y(), |
44 inset_rect.width(), inset_rect.height()), | 44 inset_rect.width(), inset_rect.height()), |
45 paint); | 45 paint); |
46 inset_rect.Inset(3, 3, 2, 2); | 46 inset_rect.Inset(3, 3, 2, 2); |
47 } | 47 } |
48 } | 48 } |
49 | 49 |
| 50 scoped_refptr<DisplayItemList> PaintContentsToDisplayList( |
| 51 const gfx::Rect& clip, |
| 52 GraphicsContextStatus gc_status) override { |
| 53 NOTIMPLEMENTED(); |
| 54 return DisplayItemList::Create(); |
| 55 } |
| 56 |
50 private: | 57 private: |
51 gfx::Size bounds_; | 58 gfx::Size bounds_; |
52 }; | 59 }; |
53 | 60 |
54 // TODO(enne): these time out on Windows. http://crbug.com/435632 | 61 // TODO(enne): these time out on Windows. http://crbug.com/435632 |
55 #if !defined(OS_WIN) | 62 #if !defined(OS_WIN) |
56 | 63 |
57 TEST_P(LayerTreeHostMasksPixelTest, MaskOfLayer) { | 64 TEST_P(LayerTreeHostMasksPixelTest, MaskOfLayer) { |
58 scoped_refptr<SolidColorLayer> background = CreateSolidColorLayer( | 65 scoped_refptr<SolidColorLayer> background = CreateSolidColorLayer( |
59 gfx::Rect(200, 200), SK_ColorWHITE); | 66 gfx::Rect(200, 200), SK_ColorWHITE); |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 base::FilePath(FILE_PATH_LITERAL( | 281 base::FilePath(FILE_PATH_LITERAL( |
275 "mask_of_replica_of_clipped_layer.png"))); | 282 "mask_of_replica_of_clipped_layer.png"))); |
276 } | 283 } |
277 | 284 |
278 #endif // !defined(OS_WIN) | 285 #endif // !defined(OS_WIN) |
279 | 286 |
280 } // namespace | 287 } // namespace |
281 } // namespace cc | 288 } // namespace cc |
282 | 289 |
283 #endif // OS_ANDROID | 290 #endif // OS_ANDROID |
OLD | NEW |