Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2013 The Android Open Source Project | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license that can be | |
| 5 * found in the LICENSE file. | |
| 6 */ | |
|
bsalomon
2013/12/18 14:38:12
New files use this copyright notice:
/*
* Copyri
Zachary Kuznia
2013/12/19 01:28:40
Done.
| |
| 7 | |
| 8 | |
| 9 #ifndef SkAlphaThresholdFilter_DEFINED | |
| 10 #define SkAlphaThresholdFilter_DEFINED | |
| 11 | |
| 12 #include "SkRegion.h" | |
| 13 #include "SkImageFilter.h" | |
| 14 | |
| 15 class SK_API SkAlphaThresholdFilter { | |
| 16 public: | |
| 17 /** | |
| 18 * Creates an image filter that samples a region. If the sample is inside th e | |
| 19 * region the alpha of the image is boosted up to a threshold value. If it i s | |
| 20 * outside the region then the alpha is decreased to the threshold value. | |
| 21 * The 0,0 point of the region corresponds to the upper left corner. | |
|
bsalomon
2013/12/18 14:38:12
...corresponds to the upper left corner of the src
Zachary Kuznia
2013/12/19 01:28:40
Done.
| |
| 22 */ | |
| 23 static SkImageFilter* Create(const SkRegion& region, SkScalar innerThreshold , SkScalar outerThreshold); | |
| 24 }; | |
| 25 | |
| 26 #endif | |
| OLD | NEW |