Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1345)

Unified Diff: include/effects/SkLerpXfermode.h

Issue 1611633002: Remove SkLerpXfermode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove recent usages Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkScalar.h ('k') | samplecode/SamplePathEffects.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkLerpXfermode.h
diff --git a/include/effects/SkLerpXfermode.h b/include/effects/SkLerpXfermode.h
deleted file mode 100644
index 27daf78982d19afeb00f1741ba00935f3e2036a5..0000000000000000000000000000000000000000
--- 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
« no previous file with comments | « include/core/SkScalar.h ('k') | samplecode/SamplePathEffects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698