diff options
author | Mike Reed <reed@google.com> | 2017-06-02 15:00:45 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-02 19:25:47 +0000 |
commit | 65efe9c0eb43068c1c47604310ba5c59fc047bb5 (patch) | |
tree | 8b1d8a6f411c550a5c7dad50d547aac598997907 /src/shaders | |
parent | e4d45bf5ba413e5a26d4f6c24886bbd104b14885 (diff) |
remove unused auto class
Bug: skia:
Change-Id: I7178876c0d95dc83d64d39a2cb6d90a47bc4b00e
Reviewed-on: https://skia-review.googlesource.com/18520
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/shaders')
-rw-r--r-- | src/shaders/SkComposeShader.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/shaders/SkComposeShader.cpp b/src/shaders/SkComposeShader.cpp index be2388f4ec..d66bdf4632 100644 --- a/src/shaders/SkComposeShader.cpp +++ b/src/shaders/SkComposeShader.cpp @@ -33,23 +33,6 @@ sk_sp<SkShader> SkShader::MakeComposeShader(sk_sp<SkShader> dst, sk_sp<SkShader> /////////////////////////////////////////////////////////////////////////////// -class SkAutoAlphaRestore { -public: - SkAutoAlphaRestore(SkPaint* paint, uint8_t newAlpha) { - fAlpha = paint->getAlpha(); - fPaint = paint; - paint->setAlpha(newAlpha); - } - - ~SkAutoAlphaRestore() { - fPaint->setAlpha(fAlpha); - } -private: - SkPaint* fPaint; - uint8_t fAlpha; -}; -#define SkAutoAlphaRestore(...) SK_REQUIRE_LOCAL_VAR(SkAutoAlphaRestore) - sk_sp<SkFlattenable> SkComposeShader::CreateProc(SkReadBuffer& buffer) { sk_sp<SkShader> shaderA(buffer.readShader()); sk_sp<SkShader> shaderB(buffer.readShader()); |