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

Unified Diff: include/gpu/effects/GrExtractAlphaFragmentProcessor.h

Issue 1347943003: Replace GrExtractAlphaFragmentProcessor with DstIn compose processor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update comment Created 5 years, 3 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/gpu/GrFragmentProcessor.h ('k') | src/core/SkBitmapProcShader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/effects/GrExtractAlphaFragmentProcessor.h
diff --git a/include/gpu/effects/GrExtractAlphaFragmentProcessor.h b/include/gpu/effects/GrExtractAlphaFragmentProcessor.h
deleted file mode 100644
index 59ae0198872eeb6c76deec7b457fd259f829f06d..0000000000000000000000000000000000000000
--- a/include/gpu/effects/GrExtractAlphaFragmentProcessor.h
+++ /dev/null
@@ -1,47 +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 GrExtractAlphaFragmentProcessor_DEFINED
-#define GrExtractAlphaFragmentProcessor_DEFINED
-
-#include "GrFragmentProcessor.h"
-
-/** This processor extracts the incoming color's alpha, ignores r, g, and b, and feeds
- the replicated alpha to it's inner processor. */
-class GrExtractAlphaFragmentProcessor : public GrFragmentProcessor {
-public:
- static GrFragmentProcessor* Create(const GrFragmentProcessor* processor) {
- if (!processor) {
- return nullptr;
- }
- return SkNEW_ARGS(GrExtractAlphaFragmentProcessor, (processor));
- }
-
- ~GrExtractAlphaFragmentProcessor() override {}
-
- const char* name() const override { return "Extract Alpha"; }
-
-private:
- GrExtractAlphaFragmentProcessor(const GrFragmentProcessor* processor) {
- this->initClassID<GrExtractAlphaFragmentProcessor>();
- this->registerChildProcessor(processor);
- }
-
- GrGLFragmentProcessor* onCreateGLInstance() const override;
-
- void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const override;
-
- bool onIsEqual(const GrFragmentProcessor&) const override;
-
- void onComputeInvariantOutput(GrInvariantOutput* inout) const override;
-
- GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
-
- typedef GrFragmentProcessor INHERITED;
-};
-
-#endif
« no previous file with comments | « include/gpu/GrFragmentProcessor.h ('k') | src/core/SkBitmapProcShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698