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

Side by Side Diff: src/gpu/gl/GrGLEffect.h

Issue 98893006: Make texture domain a helper so that it can be incorporated into other effects. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rename GrTextureDomainEffect.[h|cpp] to GrTextureDomain.[h|cpp] Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/effects/GrTextureDomainEffect.cpp ('k') | src/gpu/gl/GrGLShaderBuilder.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 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 GrGLEffect_DEFINED 8 #ifndef GrGLEffect_DEFINED
9 #define GrGLEffect_DEFINED 9 #define GrGLEffect_DEFINED
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 class GrDrawEffect; 34 class GrDrawEffect;
35 class GrGLTexture; 35 class GrGLTexture;
36 class GrGLVertexEffect; 36 class GrGLVertexEffect;
37 37
38 class GrGLEffect { 38 class GrGLEffect {
39 39
40 public: 40 public:
41 typedef GrBackendEffectFactory::EffectKey EffectKey; 41 typedef GrBackendEffectFactory::EffectKey EffectKey;
42 typedef GrGLProgramEffects::TransformedCoordsArray TransformedCoordsArray; 42 typedef GrGLProgramEffects::TransformedCoordsArray TransformedCoordsArray;
43 typedef GrGLProgramEffects::TextureSampler TextureSampler;
43 typedef GrGLProgramEffects::TextureSamplerArray TextureSamplerArray; 44 typedef GrGLProgramEffects::TextureSamplerArray TextureSamplerArray;
44 45
45 enum { 46 enum {
46 kNoEffectKey = GrBackendEffectFactory::kNoEffectKey, 47 kNoEffectKey = GrBackendEffectFactory::kNoEffectKey,
47 // the number of bits in EffectKey available to GenKey 48 // the number of bits in EffectKey available to GenKey
48 kEffectKeyBits = GrBackendEffectFactory::kEffectKeyBits, 49 kEffectKeyBits = GrBackendEffectFactory::kEffectKeyBits,
49 }; 50 };
50 51
51 GrGLEffect(const GrBackendEffectFactory& factory) 52 GrGLEffect(const GrBackendEffectFactory& factory)
52 : fFactory(factory) 53 : fFactory(factory)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 protected: 104 protected:
104 const GrBackendEffectFactory& fFactory; 105 const GrBackendEffectFactory& fFactory;
105 106
106 private: 107 private:
107 friend class GrGLVertexEffect; // to set fIsVertexEffect 108 friend class GrGLVertexEffect; // to set fIsVertexEffect
108 109
109 bool fIsVertexEffect; 110 bool fIsVertexEffect;
110 }; 111 };
111 112
112 #endif 113 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrTextureDomainEffect.cpp ('k') | src/gpu/gl/GrGLShaderBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698