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

Side by Side Diff: src/gpu/effects/GrMatrixConvolutionEffect.h

Issue 643743003: Create helper functions to use in computeInvariantOutput calls (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update blurMaskFilter Created 6 years, 2 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/gpu/effects/GrDitherEffect.cpp ('k') | src/gpu/effects/GrMatrixConvolutionEffect.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 2014 Google Inc. 2 * Copyright 2014 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 #ifndef GrMatrixConvolutionEffect_DEFINED 8 #ifndef GrMatrixConvolutionEffect_DEFINED
9 #define GrMatrixConvolutionEffect_DEFINED 9 #define GrMatrixConvolutionEffect_DEFINED
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 SkScalar gain, 74 SkScalar gain,
75 SkScalar bias, 75 SkScalar bias,
76 const SkIPoint& kernelOffset, 76 const SkIPoint& kernelOffset,
77 GrTextureDomain::Mode tileMode, 77 GrTextureDomain::Mode tileMode,
78 bool convolveAlpha); 78 bool convolveAlpha);
79 79
80 virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; 80 virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE;
81 81
82 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE { 82 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE {
83 // TODO: Try to do better? 83 // TODO: Try to do better?
84 inout->fValidFlags = 0; 84 inout->mulByUnknownColor();
85 inout->fIsSingleComponent = false;
86 } 85 }
87 86
88 SkIRect fBounds; 87 SkIRect fBounds;
89 SkISize fKernelSize; 88 SkISize fKernelSize;
90 float fKernel[MAX_KERNEL_SIZE]; 89 float fKernel[MAX_KERNEL_SIZE];
91 float fGain; 90 float fGain;
92 float fBias; 91 float fBias;
93 float fKernelOffset[2]; 92 float fKernelOffset[2];
94 bool fConvolveAlpha; 93 bool fConvolveAlpha;
95 GrTextureDomain fDomain; 94 GrTextureDomain fDomain;
96 95
97 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 96 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
98 97
99 typedef GrSingleTextureEffect INHERITED; 98 typedef GrSingleTextureEffect INHERITED;
100 }; 99 };
101 100
102 #endif 101 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrDitherEffect.cpp ('k') | src/gpu/effects/GrMatrixConvolutionEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698