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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "cc/layers/picture_image_layer.h" | 7 #include "cc/layers/picture_image_layer.h" |
8 #include "cc/layers/solid_color_layer.h" | 8 #include "cc/layers/solid_color_layer.h" |
9 #include "cc/test/layer_tree_pixel_resource_test.h" | 9 #include "cc/test/layer_tree_pixel_resource_test.h" |
10 #include "cc/test/pixel_comparator.h" | 10 #include "cc/test/pixel_comparator.h" |
| 11 #include "third_party/skia/include/core/SkColorFilter.h" |
11 #include "third_party/skia/include/core/SkImage.h" | 12 #include "third_party/skia/include/core/SkImage.h" |
12 #include "third_party/skia/include/core/SkSurface.h" | 13 #include "third_party/skia/include/core/SkSurface.h" |
13 | 14 |
14 #if !defined(OS_ANDROID) | 15 #if !defined(OS_ANDROID) |
15 | 16 |
16 namespace cc { | 17 namespace cc { |
17 namespace { | 18 namespace { |
18 | 19 |
19 SkXfermode::Mode const kBlendModes[] = { | 20 SkXfermode::Mode const kBlendModes[] = { |
20 SkXfermode::kSrcOver_Mode, SkXfermode::kScreen_Mode, | 21 SkXfermode::kSrcOver_Mode, SkXfermode::kScreen_Mode, |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 RunBlendingWithRenderPass( | 499 RunBlendingWithRenderPass( |
499 GL_ZERO_COPY_RECT_DRAW, | 500 GL_ZERO_COPY_RECT_DRAW, |
500 FILE_PATH_LITERAL("blending_render_pass_mask.png"), | 501 FILE_PATH_LITERAL("blending_render_pass_mask.png"), |
501 kUseMasks | kUseAntialiasing | kUseColorMatrix | kForceShaders); | 502 kUseMasks | kUseAntialiasing | kUseColorMatrix | kForceShaders); |
502 } | 503 } |
503 | 504 |
504 } // namespace | 505 } // namespace |
505 } // namespace cc | 506 } // namespace cc |
506 | 507 |
507 #endif // OS_ANDROID | 508 #endif // OS_ANDROID |
OLD | NEW |