OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkBitmap.h" | 8 #include "SkBitmap.h" |
9 #include "SkBitmapDevice.h" | 9 #include "SkBitmapDevice.h" |
10 #include "SkBitmapSource.h" | 10 #include "SkBitmapSource.h" |
11 #include "SkBlurImageFilter.h" | 11 #include "SkBlurImageFilter.h" |
12 #include "SkCanvas.h" | 12 #include "SkCanvas.h" |
13 #include "SkColorFilterImageFilter.h" | 13 #include "SkColorFilterImageFilter.h" |
14 #include "SkColorMatrixFilter.h" | 14 #include "SkColorMatrixFilter.h" |
15 #include "SkDeviceImageFilterProxy.h" | 15 #include "SkDeviceImageFilterProxy.h" |
16 #include "SkDisplacementMapEffect.h" | 16 #include "SkDisplacementMapEffect.h" |
17 #include "SkDropShadowImageFilter.h" | 17 #include "SkDropShadowImageFilter.h" |
18 #include "SkFlattenableBuffers.h" | |
19 #include "SkFlattenableSerialization.h" | 18 #include "SkFlattenableSerialization.h" |
20 #include "SkGradientShader.h" | 19 #include "SkGradientShader.h" |
21 #include "SkLightingImageFilter.h" | 20 #include "SkLightingImageFilter.h" |
22 #include "SkMatrixConvolutionImageFilter.h" | 21 #include "SkMatrixConvolutionImageFilter.h" |
23 #include "SkMatrixImageFilter.h" | 22 #include "SkMatrixImageFilter.h" |
24 #include "SkMergeImageFilter.h" | 23 #include "SkMergeImageFilter.h" |
25 #include "SkMorphologyImageFilter.h" | 24 #include "SkMorphologyImageFilter.h" |
26 #include "SkOffsetImageFilter.h" | 25 #include "SkOffsetImageFilter.h" |
27 #include "SkPicture.h" | 26 #include "SkPicture.h" |
28 #include "SkPictureImageFilter.h" | 27 #include "SkPictureImageFilter.h" |
29 #include "SkPictureRecorder.h" | 28 #include "SkPictureRecorder.h" |
| 29 #include "SkReadBuffer.h" |
30 #include "SkRect.h" | 30 #include "SkRect.h" |
31 #include "SkTileImageFilter.h" | 31 #include "SkTileImageFilter.h" |
32 #include "SkXfermodeImageFilter.h" | 32 #include "SkXfermodeImageFilter.h" |
33 #include "Test.h" | 33 #include "Test.h" |
34 | 34 |
35 #if SK_SUPPORT_GPU | 35 #if SK_SUPPORT_GPU |
36 #include "GrContextFactory.h" | 36 #include "GrContextFactory.h" |
37 #include "SkGpuDevice.h" | 37 #include "SkGpuDevice.h" |
38 #endif | 38 #endif |
39 | 39 |
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 } | 848 } |
849 | 849 |
850 DEF_GPUTEST(XfermodeImageFilterCroppedInputGPU, reporter, factory) { | 850 DEF_GPUTEST(XfermodeImageFilterCroppedInputGPU, reporter, factory) { |
851 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp
e>(0)); | 851 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp
e>(0)); |
852 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, | 852 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, |
853 SkImageInfo::MakeN32Pre
mul(1, 1), | 853 SkImageInfo::MakeN32Pre
mul(1, 1), |
854 0)); | 854 0)); |
855 test_xfermode_cropped_input(device, reporter); | 855 test_xfermode_cropped_input(device, reporter); |
856 } | 856 } |
857 #endif | 857 #endif |
OLD | NEW |