blob: 9a6bd1cae3763b5c8c043eba9338739d61be4bcf [file] [log] [blame]
tomhudson@google.comd0c1a062012-07-12 17:23:52 +00001/*
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
13class GrSingleTextureEffect : public GrCustomStage {
14
15public:
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
22private:
23 GrTexture* fTexture;
24
25 typedef GrCustomStage INHERITED;
26};
27
28#endif