tomhudson@google.com | d0c1a06 | 2012-07-12 17:23:52 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2012 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef GrSingleTextureEffect_DEFINED |
| 9 | #define GrSingleTextureEffect_DEFINED |
| 10 | |
| 11 | #include "GrCustomStage.h" |
| 12 | |
| 13 | class GrSingleTextureEffect : public GrCustomStage { |
| 14 | |
| 15 | public: |
| 16 | GrSingleTextureEffect(GrTexture* texture); |
| 17 | virtual ~GrSingleTextureEffect(); |
| 18 | |
| 19 | virtual unsigned int numTextures() const SK_OVERRIDE; |
| 20 | virtual GrTexture* texture(unsigned int index) const SK_OVERRIDE; |
| 21 | |
| 22 | private: |
| 23 | GrTexture* fTexture; |
| 24 | |
| 25 | typedef GrCustomStage INHERITED; |
| 26 | }; |
| 27 | |
| 28 | #endif |