| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkAlphaThresholdFilter.h" | 8 #include "SkAlphaThresholdFilter.h" |
| 9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
| 10 #include "SkReadBuffer.h" | 10 #include "SkReadBuffer.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #if SK_SUPPORT_GPU | 49 #if SK_SUPPORT_GPU |
| 50 #include "GrContext.h" | 50 #include "GrContext.h" |
| 51 #include "GrCoordTransform.h" | 51 #include "GrCoordTransform.h" |
| 52 #include "GrFragmentProcessor.h" | 52 #include "GrFragmentProcessor.h" |
| 53 #include "GrInvariantOutput.h" | 53 #include "GrInvariantOutput.h" |
| 54 #include "GrTextureAccess.h" | 54 #include "GrTextureAccess.h" |
| 55 #include "effects/GrPorterDuffXferProcessor.h" | 55 #include "effects/GrPorterDuffXferProcessor.h" |
| 56 | 56 |
| 57 #include "SkGr.h" | 57 #include "SkGr.h" |
| 58 | 58 |
| 59 #include "gl/GrGLProcessor.h" | 59 #include "gl/GrGLFragmentProcessor.h" |
| 60 #include "gl/builders/GrGLProgramBuilder.h" | 60 #include "gl/builders/GrGLProgramBuilder.h" |
| 61 | 61 |
| 62 class AlphaThresholdEffect : public GrFragmentProcessor { | 62 class AlphaThresholdEffect : public GrFragmentProcessor { |
| 63 | 63 |
| 64 public: | 64 public: |
| 65 static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager, | 65 static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager, |
| 66 GrTexture* texture, | 66 GrTexture* texture, |
| 67 GrTexture* maskTexture, | 67 GrTexture* maskTexture, |
| 68 float innerThreshold, | 68 float innerThreshold, |
| 69 float outerThreshold) { | 69 float outerThreshold) { |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 } | 384 } |
| 385 | 385 |
| 386 #ifndef SK_IGNORE_TO_STRING | 386 #ifndef SK_IGNORE_TO_STRING |
| 387 void SkAlphaThresholdFilterImpl::toString(SkString* str) const { | 387 void SkAlphaThresholdFilterImpl::toString(SkString* str) const { |
| 388 str->appendf("SkAlphaThresholdImageFilter: ("); | 388 str->appendf("SkAlphaThresholdImageFilter: ("); |
| 389 str->appendf("inner: %f outer: %f", fInnerThreshold, fOuterThreshold); | 389 str->appendf("inner: %f outer: %f", fInnerThreshold, fOuterThreshold); |
| 390 str->append(")"); | 390 str->append(")"); |
| 391 } | 391 } |
| 392 #endif | 392 #endif |
| 393 | 393 |
| OLD | NEW |