Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: src/effects/SkMorphologyImageFilter.cpp

Issue 1246193002: Moved GrGLFragmentProcessor definition to its own file (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/effects/SkMagnifierImageFilter.cpp ('k') | src/effects/SkPerlinNoiseShader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/effects/SkMagnifierImageFilter.cpp ('k') | src/effects/SkPerlinNoiseShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698