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

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

Issue 1434313002: Make all GrFragmentProcessors GL independent. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 56 }
57 57
58 GrSimpleTextureEffect(GrTexture* texture, 58 GrSimpleTextureEffect(GrTexture* texture,
59 const SkMatrix& matrix, 59 const SkMatrix& matrix,
60 const GrTextureParams& params, 60 const GrTextureParams& params,
61 GrCoordSet coordSet) 61 GrCoordSet coordSet)
62 : GrSingleTextureEffect(texture, matrix, params, coordSet) { 62 : GrSingleTextureEffect(texture, matrix, params, coordSet) {
63 this->initClassID<GrSimpleTextureEffect>(); 63 this->initClassID<GrSimpleTextureEffect>();
64 } 64 }
65 65
66 GrGLFragmentProcessor* onCreateGLInstance() const override; 66 GrGLSLFragmentProcessor* onCreateGLInstance() const override;
67 67
68 void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const ov erride; 68 void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const ov erride;
69 69
70 bool onIsEqual(const GrFragmentProcessor& other) const override { return tru e; } 70 bool onIsEqual(const GrFragmentProcessor& other) const override { return tru e; }
71 71
72 void onComputeInvariantOutput(GrInvariantOutput* inout) const override; 72 void onComputeInvariantOutput(GrInvariantOutput* inout) const override;
73 73
74 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 74 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
75 75
76 typedef GrSingleTextureEffect INHERITED; 76 typedef GrSingleTextureEffect INHERITED;
77 }; 77 };
78 78
79 #endif 79 #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