diff options
author | robertphillips <robertphillips@google.com> | 2016-01-25 14:19:56 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-25 14:19:56 -0800 |
commit | 64b0f5f95754c4d354d2e09cebf2a0c43d4cdd50 (patch) | |
tree | 3f27ef06dd3990e37159ddcaac9c4c32e007576f /include/effects | |
parent | 7a561230a22a3b312c47cc1e0a14b31965d751c8 (diff) |
Remove SkLerpXfermode
This relies on the Chromium CL https://codereview.chromium.org/1610573004/ (Replace use of SkLerpXfermode with SkArithmeticMode)
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1611633002
Review URL: https://codereview.chromium.org/1611633002
Diffstat (limited to 'include/effects')
-rw-r--r-- | include/effects/SkLerpXfermode.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/include/effects/SkLerpXfermode.h b/include/effects/SkLerpXfermode.h deleted file mode 100644 index 27daf78982..0000000000 --- a/include/effects/SkLerpXfermode.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2013 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef SkLerpXfermode_DEFINED -#define SkLerpXfermode_DEFINED - -#include "SkXfermode.h" - -class SK_API SkLerpXfermode : public SkXfermode { -public: - /** - * result = scale * src + (1 - scale) * dst - * - * When scale == 1, this is the same as kSrc_Mode - * When scale == 0, this is the same as kDst_Mode - */ - static SkXfermode* Create(SkScalar scale); - - // overrides from SkXfermode - virtual void xfer32(SkPMColor dst[], const SkPMColor src[], int count, - const SkAlpha aa[]) const override; - virtual void xfer16(uint16_t dst[], const SkPMColor src[], int count, - const SkAlpha aa[]) const override; - virtual void xferA8(SkAlpha dst[], const SkPMColor src[], int count, - const SkAlpha aa[]) const override; - - SK_TO_STRING_OVERRIDE() - SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLerpXfermode) - -protected: - void flatten(SkWriteBuffer&) const override; - -private: - SkLerpXfermode(unsigned scale256); - - unsigned fScale256; // 0..256 - - SkValue asValue() const override; - - typedef SkXfermode INHERITED; -}; - -#endif |