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

Unified Diff: include/effects/SkBlendImageFilter.h

Issue 21404002: Remove SkBlendImageFilter, and all tests. Its functionality has been subsumed by SkXfermodeImageFil… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | « gyp/gmslides.gypi ('k') | src/effects/SkBlendImageFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkBlendImageFilter.h
diff --git a/include/effects/SkBlendImageFilter.h b/include/effects/SkBlendImageFilter.h
deleted file mode 100644
index 7286cc11143a3a99d5735454515a6f0d800b616d..0000000000000000000000000000000000000000
--- a/include/effects/SkBlendImageFilter.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2012 The Android Open Source Project
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkBlendImageFilter_DEFINED
-#define SkBlendImageFilter_DEFINED
-
-#include "SkImageFilter.h"
-#include "SkBitmap.h"
-
-class SK_API SkBlendImageFilter : public SkImageFilter {
-public:
- enum Mode {
- kNormal_Mode,
- kMultiply_Mode,
- kScreen_Mode,
- kDarken_Mode,
- kLighten_Mode,
- };
- SkBlendImageFilter(Mode mode, SkImageFilter* background, SkImageFilter* foreground = NULL);
-
- ~SkBlendImageFilter();
-
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlendImageFilter)
-
- virtual bool onFilterImage(Proxy* proxy,
- const SkBitmap& src,
- const SkMatrix& ctm,
- SkBitmap* dst,
- SkIPoint* offset) SK_OVERRIDE;
-#if SK_SUPPORT_GPU
- virtual bool canFilterImageGPU() const SK_OVERRIDE { return true; }
- virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, SkBitmap* result,
- SkIPoint* offset) SK_OVERRIDE;
-#endif
-
-protected:
- explicit SkBlendImageFilter(SkFlattenableReadBuffer& buffer);
- virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
-
-private:
- Mode fMode;
- typedef SkImageFilter INHERITED;
- SkImageFilter* getBackgroundInput() { return getInput(0); }
- SkImageFilter* getForegroundInput() { return getInput(1); }
-};
-
-#endif
« no previous file with comments | « gyp/gmslides.gypi ('k') | src/effects/SkBlendImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698