diff options
Diffstat (limited to 'include/gpu/GrFragmentStage.h')
-rw-r--r-- | include/gpu/GrFragmentStage.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/gpu/GrFragmentStage.h b/include/gpu/GrFragmentStage.h deleted file mode 100644 index ca3be8a0f7..0000000000 --- a/include/gpu/GrFragmentStage.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef GrFragmentStage_DEFINED -#define GrFragmentStage_DEFINED - -#include "GrFragmentProcessor.h" - -/** - * Wraps a GrFragmentProcessor, basically a copyable SkAutoTUnref - */ -class GrFragmentStage { -public: - explicit GrFragmentStage(const GrFragmentProcessor* proc) : fProc(SkRef(proc)) {} - - GrFragmentStage(const GrFragmentStage& other) { fProc.reset(SkRef(other.fProc.get())); } - - const GrFragmentProcessor* processor() const { return fProc.get(); } - - bool operator==(const GrFragmentStage& that) const { - return this->processor() == that.processor(); - } - - bool operator!=(const GrFragmentStage& that) const { return !(*this == that); } - -protected: - SkAutoTUnref<const GrFragmentProcessor> fProc; -}; - -#endif |