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

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

Issue 654313002: Auto-compare GrProcessors' texture accesses in isEqual(). (Closed) Base URL: https://skia.googlesource.com/skia.git@xformcomp
Patch Set: update 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/GrMatrixConvolutionEffect.cpp ('k') | src/gpu/effects/GrSingleTextureEffect.h » ('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 2013 Google Inc. 2 * Copyright 2013 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 GrSimpleTextureEffect_DEFINED 8 #ifndef GrSimpleTextureEffect_DEFINED
9 #define GrSimpleTextureEffect_DEFINED 9 #define GrSimpleTextureEffect_DEFINED
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 : GrSingleTextureEffect(texture, matrix, filterMode, coordSet) { 61 : GrSingleTextureEffect(texture, matrix, filterMode, coordSet) {
62 } 62 }
63 63
64 GrSimpleTextureEffect(GrTexture* texture, 64 GrSimpleTextureEffect(GrTexture* texture,
65 const SkMatrix& matrix, 65 const SkMatrix& matrix,
66 const GrTextureParams& params, 66 const GrTextureParams& params,
67 GrCoordSet coordSet) 67 GrCoordSet coordSet)
68 : GrSingleTextureEffect(texture, matrix, params, coordSet) { 68 : GrSingleTextureEffect(texture, matrix, params, coordSet) {
69 } 69 }
70 70
71 virtual bool onIsEqual(const GrFragmentProcessor& other) const SK_OVERRIDE { 71 virtual bool onIsEqual(const GrFragmentProcessor& other) const SK_OVERRIDE { return true; }
72 const GrSimpleTextureEffect& ste = other.cast<GrSimpleTextureEffect>();
73 return this->hasSameTextureParamsMatrixAndSourceCoords(ste);
74 }
75 72
76 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE; 73 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE;
77 74
78 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 75 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
79 76
80 typedef GrSingleTextureEffect INHERITED; 77 typedef GrSingleTextureEffect INHERITED;
81 }; 78 };
82 79
83 #endif 80 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrMatrixConvolutionEffect.cpp ('k') | src/gpu/effects/GrSingleTextureEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698