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

Unified Diff: include/effects/SkModeColorFilter.h

Issue 1577073002: remove external header for SkModeColorFilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: duh -- actually move the header 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 | « gyp/effects.gypi ('k') | src/core/SkColorFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkModeColorFilter.h
diff --git a/include/effects/SkModeColorFilter.h b/include/effects/SkModeColorFilter.h
deleted file mode 100644
index 06eec43572bd5264dc6bd839ba390bffeb978c52..0000000000000000000000000000000000000000
--- a/include/effects/SkModeColorFilter.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright 2015 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkModeColorFilter_DEFINED
-#define SkModeColorFilter_DEFINED
-
-#include "SkColorFilter.h"
-#include "SkColorPriv.h"
-#include "SkString.h"
-#include "SkXfermode.h"
-
-class SkModeColorFilter : public SkColorFilter {
-public:
- static SkColorFilter* Create(SkColor color, SkXfermode::Mode mode) {
- return new SkModeColorFilter(color, mode);
- }
-
- SkColor getColor() const { return fColor; }
- SkXfermode::Mode getMode() const { return fMode; }
- SkPMColor getPMColor() const { return fPMColor; }
-
- bool asColorMode(SkColor*, SkXfermode::Mode*) const override;
- uint32_t getFlags() const override;
- void filterSpan(const SkPMColor shader[], int count, SkPMColor result[]) const override;
-
-#ifndef SK_IGNORE_TO_STRING
- void toString(SkString* str) const override {
- str->append("SkModeColorFilter: color: 0x");
- str->appendHex(fColor);
- str->append(" mode: ");
- str->append(SkXfermode::ModeName(fMode));
- }
-#endif
-
-#if SK_SUPPORT_GPU
- const GrFragmentProcessor* asFragmentProcessor(GrContext*) const override;
-#endif
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkModeColorFilter)
-
-protected:
- SkModeColorFilter(SkColor color, SkXfermode::Mode mode) {
- fColor = color;
- fMode = mode;
- this->updateCache();
- };
-
- void flatten(SkWriteBuffer&) const override;
-
-private:
- SkColor fColor;
- SkXfermode::Mode fMode;
- // cache
- SkPMColor fPMColor;
- SkXfermodeProc fProc;
-
- void updateCache();
-
- typedef SkColorFilter INHERITED;
-};
-
-#endif
« no previous file with comments | « gyp/effects.gypi ('k') | src/core/SkColorFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698