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

Side by Side Diff: src/gpu/effects/GrConvolutionEffect.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/GrConvexPolyEffect.cpp ('k') | src/gpu/effects/GrCustomCoordsTextureEffect.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 Google Inc. 2 * Copyright 2012 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 GrConvolutionEffect_DEFINED 8 #ifndef GrConvolutionEffect_DEFINED
9 #define GrConvolutionEffect_DEFINED 9 #define GrConvolutionEffect_DEFINED
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 int halfWidth, 93 int halfWidth,
94 float gaussianSigma, 94 float gaussianSigma,
95 bool useBounds, 95 bool useBounds,
96 float bounds[2]); 96 float bounds[2]);
97 97
98 virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; 98 virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE;
99 99
100 virtual void onComputeInvariantOutput(InvariantOutput* inout) const { 100 virtual void onComputeInvariantOutput(InvariantOutput* inout) const {
101 // If the texture was opaque we could know that the output color if we k new the sum of the 101 // If the texture was opaque we could know that the output color if we k new the sum of the
102 // kernel values. 102 // kernel values.
103 inout->fValidFlags = 0; 103 inout->mulByUnknownColor();
104 inout->fIsSingleComponent = false;
105 } 104 }
106 105
107 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 106 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
108 107
109 typedef Gr1DKernelEffect INHERITED; 108 typedef Gr1DKernelEffect INHERITED;
110 }; 109 };
111 110
112 #endif 111 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrConvexPolyEffect.cpp ('k') | src/gpu/effects/GrCustomCoordsTextureEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698