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 | 9 |
10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
11 #include "SkColorPriv.h" | 11 #include "SkColorPriv.h" |
12 #include "SkOpts.h" | 12 #include "SkOpts.h" |
13 #include "SkReadBuffer.h" | 13 #include "SkReadBuffer.h" |
14 #include "SkRect.h" | 14 #include "SkRect.h" |
15 #include "SkSpecialImage.h" | 15 #include "SkSpecialImage.h" |
16 #include "SkWriteBuffer.h" | 16 #include "SkWriteBuffer.h" |
17 | 17 |
18 #if SK_SUPPORT_GPU | 18 #if SK_SUPPORT_GPU |
19 #include "GrContext.h" | 19 #include "GrContext.h" |
20 #include "GrDrawContext.h" | 20 #include "GrDrawContext.h" |
| 21 #include "GrFixedClip.h" |
21 #include "GrInvariantOutput.h" | 22 #include "GrInvariantOutput.h" |
22 #include "GrTexture.h" | 23 #include "GrTexture.h" |
23 #include "SkGr.h" | 24 #include "SkGr.h" |
24 #include "effects/Gr1DKernelEffect.h" | 25 #include "effects/Gr1DKernelEffect.h" |
25 #include "glsl/GrGLSLFragmentProcessor.h" | 26 #include "glsl/GrGLSLFragmentProcessor.h" |
26 #include "glsl/GrGLSLFragmentShaderBuilder.h" | 27 #include "glsl/GrGLSLFragmentShaderBuilder.h" |
27 #include "glsl/GrGLSLProgramDataManager.h" | 28 #include "glsl/GrGLSLProgramDataManager.h" |
28 #include "glsl/GrGLSLUniformHandler.h" | 29 #include "glsl/GrGLSLUniformHandler.h" |
29 #endif | 30 #endif |
30 | 31 |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 inputBM.getAddr32(srcBounds.left(), srcBounds.top()), | 630 inputBM.getAddr32(srcBounds.left(), srcBounds.top()), |
630 inputBM.rowBytesAsPixels(), | 631 inputBM.rowBytesAsPixels(), |
631 &dst, height, srcBounds); | 632 &dst, height, srcBounds); |
632 } | 633 } |
633 offset->fX = bounds.left(); | 634 offset->fX = bounds.left(); |
634 offset->fY = bounds.top(); | 635 offset->fY = bounds.top(); |
635 | 636 |
636 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(bounds.width(), bounds
.height()), | 637 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(bounds.width(), bounds
.height()), |
637 dst, &source->props()); | 638 dst, &source->props()); |
638 } | 639 } |
OLD | NEW |