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

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

Issue 571163002: removing GrDrawEffect (Closed) Base URL: https://skia.googlesource.com/skia.git@gp3
Patch Set: rebase after revert Created 6 years, 3 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/GrRRectEffect.cpp ('k') | src/gpu/effects/GrSimpleTextureEffect.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 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 64 }
65 65
66 GrSimpleTextureEffect(GrTexture* texture, 66 GrSimpleTextureEffect(GrTexture* texture,
67 const SkMatrix& matrix, 67 const SkMatrix& matrix,
68 const GrTextureParams& params, 68 const GrTextureParams& params,
69 GrCoordSet coordSet) 69 GrCoordSet coordSet)
70 : GrSingleTextureEffect(texture, matrix, params, coordSet) { 70 : GrSingleTextureEffect(texture, matrix, params, coordSet) {
71 } 71 }
72 72
73 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE { 73 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE {
74 const GrSimpleTextureEffect& ste = CastEffect<GrSimpleTextureEffect>(oth er); 74 const GrSimpleTextureEffect& ste = other.cast<GrSimpleTextureEffect>();
75 return this->hasSameTextureParamsMatrixAndSourceCoords(ste); 75 return this->hasSameTextureParamsMatrixAndSourceCoords(ste);
76 } 76 }
77 77
78 GR_DECLARE_EFFECT_TEST; 78 GR_DECLARE_EFFECT_TEST;
79 79
80 typedef GrSingleTextureEffect INHERITED; 80 typedef GrSingleTextureEffect INHERITED;
81 }; 81 };
82 82
83 #endif 83 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrRRectEffect.cpp ('k') | src/gpu/effects/GrSimpleTextureEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698