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

Unified Diff: include/effects/SkBitmapAlphaThresholdShader.h

Issue 108653012: Remove SkBitmapAlphaThresholdShader (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 7 years 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/SkBitmapAlphaThresholdShader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkBitmapAlphaThresholdShader.h
diff --git a/include/effects/SkBitmapAlphaThresholdShader.h b/include/effects/SkBitmapAlphaThresholdShader.h
deleted file mode 100644
index 61596daff3e0bc0bcf8204ce1563f6ae18897360..0000000000000000000000000000000000000000
--- a/include/effects/SkBitmapAlphaThresholdShader.h
+++ /dev/null
@@ -1,24 +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.
- */
-
-#include "SkShader.h"
-#include "SkBitmap.h"
-#include "SkRegion.h"
-#include "SkString.h"
-
-class SK_API SkBitmapAlphaThresholdShader : public SkShader {
-public:
- /**
- * Creates a shader that samples a bitmap and a region. If the sample is inside the region
- * the alpha of the bitmap color is boosted up to a threshold value. If it is
- * outside the region then the bitmap alpha is decreased to the threshold value.
- * The 0,0 point of the region corresponds to the upper left corner of the bitmap
- * Currently, this only has a GPU implementation, doesn't respect the paint's bitmap
- * filter setting, and always uses clamp mode.
- */
- static SkShader* Create(const SkBitmap& bitmap, const SkRegion& region, U8CPU threshold);
-};
« no previous file with comments | « gyp/gmslides.gypi ('k') | src/effects/SkBitmapAlphaThresholdShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698