OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "SkBlurMaskFilter.h" | 9 #include "SkBlurMaskFilter.h" |
10 #include "SkBlurMask.h" | 10 #include "SkBlurMask.h" |
11 #include "SkGpuBlurUtils.h" | 11 #include "SkGpuBlurUtils.h" |
12 #include "SkReadBuffer.h" | 12 #include "SkReadBuffer.h" |
13 #include "SkWriteBuffer.h" | 13 #include "SkWriteBuffer.h" |
14 #include "SkMaskFilter.h" | 14 #include "SkMaskFilter.h" |
15 #include "SkRRect.h" | 15 #include "SkRRect.h" |
16 #include "SkRTConf.h" | 16 #include "SkRTConf.h" |
17 #include "SkStringUtils.h" | 17 #include "SkStringUtils.h" |
18 #include "SkStrokeRec.h" | 18 #include "SkStrokeRec.h" |
19 | 19 |
20 #if SK_SUPPORT_GPU | 20 #if SK_SUPPORT_GPU |
21 #include "GrContext.h" | 21 #include "GrContext.h" |
22 #include "GrDrawContext.h" | 22 #include "GrDrawContext.h" |
23 #include "GrTexture.h" | 23 #include "GrTexture.h" |
24 #include "GrFragmentProcessor.h" | 24 #include "GrFragmentProcessor.h" |
25 #include "GrInvariantOutput.h" | 25 #include "GrInvariantOutput.h" |
26 #include "SkGrPixelRef.h" | 26 #include "SkGrPixelRef.h" |
27 #include "SkDraw.h" | 27 #include "SkDraw.h" |
28 #include "effects/GrSimpleTextureEffect.h" | 28 #include "effects/GrSimpleTextureEffect.h" |
29 #include "gl/GrGLProcessor.h" | 29 #include "gl/GrGLFragmentProcessor.h" |
30 #include "gl/builders/GrGLProgramBuilder.h" | 30 #include "gl/builders/GrGLProgramBuilder.h" |
31 #endif | 31 #endif |
32 | 32 |
33 SkScalar SkBlurMaskFilter::ConvertRadiusToSigma(SkScalar radius) { | 33 SkScalar SkBlurMaskFilter::ConvertRadiusToSigma(SkScalar radius) { |
34 return SkBlurMask::ConvertRadiusToSigma(radius); | 34 return SkBlurMask::ConvertRadiusToSigma(radius); |
35 } | 35 } |
36 | 36 |
37 class SkBlurMaskFilterImpl : public SkMaskFilter { | 37 class SkBlurMaskFilterImpl : public SkMaskFilter { |
38 public: | 38 public: |
39 SkBlurMaskFilterImpl(SkScalar sigma, SkBlurStyle, uint32_t flags); | 39 SkBlurMaskFilterImpl(SkScalar sigma, SkBlurStyle, uint32_t flags); |
(...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1286 } else { | 1286 } else { |
1287 str->append("None"); | 1287 str->append("None"); |
1288 } | 1288 } |
1289 str->append("))"); | 1289 str->append("))"); |
1290 } | 1290 } |
1291 #endif | 1291 #endif |
1292 | 1292 |
1293 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) | 1293 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) |
1294 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) | 1294 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) |
1295 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 1295 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
OLD | NEW |