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.h" | 6 #include "cc/layers/content_layer.h" |
7 #include "cc/layers/content_layer_client.h" | 7 #include "cc/layers/content_layer_client.h" |
8 #include "cc/layers/image_layer.h" | 8 #include "cc/layers/image_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_test.h" | 10 #include "cc/test/layer_tree_pixel_test.h" |
11 #include "cc/test/pixel_comparator.h" | 11 #include "cc/test/pixel_comparator.h" |
12 | 12 |
13 #if !defined(OS_ANDROID) | 13 #if !defined(OS_ANDROID) |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 namespace { | 16 namespace { |
17 | 17 |
18 class LayerTreeHostMasksPixelTest : public LayerTreePixelTest {}; | 18 class LayerTreeHostMasksPixelTest : public LayerTreePixelTest { |
| 19 protected: |
| 20 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { |
| 21 settings->max_bytes_pending_upload = 16 * 1024 * 1024; |
| 22 } |
| 23 }; |
19 | 24 |
20 class MaskContentLayerClient : public cc::ContentLayerClient { | 25 class MaskContentLayerClient : public cc::ContentLayerClient { |
21 public: | 26 public: |
22 MaskContentLayerClient() {} | 27 MaskContentLayerClient() {} |
23 virtual ~MaskContentLayerClient() {} | 28 virtual ~MaskContentLayerClient() {} |
24 | 29 |
25 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} | 30 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} |
26 | 31 |
27 virtual void PaintContents(SkCanvas* canvas, | 32 virtual void PaintContents(SkCanvas* canvas, |
28 gfx::Rect rect, | 33 gfx::Rect rect, |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 RunPixelTest(GL_WITH_BITMAP, | 268 RunPixelTest(GL_WITH_BITMAP, |
264 background, | 269 background, |
265 base::FilePath(FILE_PATH_LITERAL( | 270 base::FilePath(FILE_PATH_LITERAL( |
266 "mask_of_replica_of_clipped_layer.png"))); | 271 "mask_of_replica_of_clipped_layer.png"))); |
267 } | 272 } |
268 | 273 |
269 } // namespace | 274 } // namespace |
270 } // namespace cc | 275 } // namespace cc |
271 | 276 |
272 #endif // OS_ANDROID | 277 #endif // OS_ANDROID |
OLD | NEW |