diff options
author | bsalomon <bsalomon@google.com> | 2014-10-16 13:41:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-16 13:41:43 -0700 |
commit | 427cf28861867c0ea9aafca3a23878ec4068ad99 (patch) | |
tree | 10e6dcb263f9ebc5f18ec70762778c4a118729ef /include | |
parent | b227e37eae36ccf630c4baef00b1354d42b40fd1 (diff) |
Remove AutoScratchTexture
Remove AST from GrClipMaskCache
Remove AST from GrClipMaskManager
BUG=skia:2889
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/663583002
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrContext.h | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index 536b17b9b8..ca5f62af72 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -19,7 +19,6 @@ #include "SkTypes.h" class GrAARectRenderer; -class GrAutoScratchTexture; class GrDrawState; class GrDrawTarget; class GrFontCache; @@ -1049,65 +1048,4 @@ private: typedef SkRefCnt INHERITED; }; -/** - * This is deprecated. Don't use it. - */ -class SK_API GrAutoScratchTexture : public ::SkNoncopyable { -public: - GrAutoScratchTexture() - : fContext(NULL) - , fTexture(NULL) { - } - - GrAutoScratchTexture(GrContext* context, - const GrTextureDesc& desc, - GrContext::ScratchTexMatch match = GrContext::kApprox_ScratchTexMatch, - bool internalFlag = false) - : fContext(NULL) - , fTexture(NULL) { - this->set(context, desc, match, internalFlag); - } - - ~GrAutoScratchTexture() { - this->reset(); - } - - void reset() { - if (fContext && fTexture) { - fTexture->unref(); - fTexture = NULL; - } - } - - GrTexture* detach() { - GrTexture* texture = fTexture; - fTexture = NULL; - return texture; - } - - GrTexture* set(GrContext* context, - const GrTextureDesc& desc, - GrContext::ScratchTexMatch match = GrContext::kApprox_ScratchTexMatch, - bool internalFlag = 0) { - this->reset(); - - fContext = context; - if (fContext) { - fTexture = fContext->refScratchTexture(desc, match, internalFlag); - if (NULL == fTexture) { - fContext = NULL; - } - return fTexture; - } else { - return NULL; - } - } - - GrTexture* texture() { return fTexture; } - -private: - GrContext* fContext; - GrTexture* fTexture; -}; - #endif |