OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The Android Open Source Project | 2 * Copyright 2012 The Android Open Source Project |
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 "SkMorphologyImageFilter.h" | 8 #include "SkMorphologyImageFilter.h" |
9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
11 #include "SkReadBuffer.h" | 11 #include "SkReadBuffer.h" |
12 #include "SkWriteBuffer.h" | 12 #include "SkWriteBuffer.h" |
13 #include "SkRect.h" | 13 #include "SkRect.h" |
14 #include "SkMorphology_opts.h" | 14 #include "SkMorphology_opts.h" |
15 #if SK_SUPPORT_GPU | 15 #if SK_SUPPORT_GPU |
16 #include "GrContext.h" | 16 #include "GrContext.h" |
17 #include "GrDrawContext.h" | 17 #include "GrDrawContext.h" |
18 #include "GrInvariantOutput.h" | 18 #include "GrInvariantOutput.h" |
19 #include "GrTexture.h" | 19 #include "GrTexture.h" |
20 #include "effects/Gr1DKernelEffect.h" | 20 #include "effects/Gr1DKernelEffect.h" |
21 #include "gl/GrGLProcessor.h" | 21 #include "gl/GrGLFragmentProcessor.h" |
22 #include "gl/builders/GrGLProgramBuilder.h" | 22 #include "gl/builders/GrGLProgramBuilder.h" |
23 #endif | 23 #endif |
24 | 24 |
25 SkMorphologyImageFilter::SkMorphologyImageFilter(int radiusX, | 25 SkMorphologyImageFilter::SkMorphologyImageFilter(int radiusX, |
26 int radiusY, | 26 int radiusY, |
27 SkImageFilter* input, | 27 SkImageFilter* input, |
28 const CropRect* cropRect) | 28 const CropRect* cropRect) |
29 : INHERITED(1, &input, cropRect), fRadius(SkISize::Make(radiusX, radiusY)) { | 29 : INHERITED(1, &input, cropRect), fRadius(SkISize::Make(radiusX, radiusY)) { |
30 } | 30 } |
31 | 31 |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 SkBitmap* result, SkIPoint* offset) con
st { | 758 SkBitmap* result, SkIPoint* offset) con
st { |
759 return this->filterImageGPUGeneric(true, proxy, src, ctx, result, offset); | 759 return this->filterImageGPUGeneric(true, proxy, src, ctx, result, offset); |
760 } | 760 } |
761 | 761 |
762 bool SkErodeImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const
Context& ctx, | 762 bool SkErodeImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const
Context& ctx, |
763 SkBitmap* result, SkIPoint* offset) cons
t { | 763 SkBitmap* result, SkIPoint* offset) cons
t { |
764 return this->filterImageGPUGeneric(false, proxy, src, ctx, result, offset); | 764 return this->filterImageGPUGeneric(false, proxy, src, ctx, result, offset); |
765 } | 765 } |
766 | 766 |
767 #endif | 767 #endif |
OLD | NEW |