| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 #ifndef GrCircleBlurFragmentProcessor_DEFINED | 8 #ifndef GrCircleBlurFragmentProcessor_DEFINED |
| 9 #define GrCircleBlurFragmentProcessor_DEFINED | 9 #define GrCircleBlurFragmentProcessor_DEFINED |
| 10 | 10 |
| 11 #include "SkString.h" | 11 #include "SkString.h" |
| 12 #include "SkTypes.h" | 12 #include "SkTypes.h" |
| 13 | 13 |
| 14 #if SK_SUPPORT_GPU | 14 #if SK_SUPPORT_GPU |
| 15 | 15 |
| 16 #include "GrFragmentProcessor.h" | 16 #include "GrFragmentProcessor.h" |
| 17 #include "GrProcessorUnitTest.h" | 17 #include "GrProcessorUnitTest.h" |
| 18 | 18 |
| 19 class GrTextureProvider; | 19 class GrTextureProvider; |
| 20 | 20 |
| 21 // This FP handles the special case of a blurred circle. It uses a 1D | 21 // This FP handles the special case of a blurred circle. It uses a 1D |
| 22 // profile that is just rotated about the origin of the circle. | 22 // profile that is just rotated about the origin of the circle. |
| 23 class GrCircleBlurFragmentProcessor : public GrFragmentProcessor { | 23 class GrCircleBlurFragmentProcessor : public GrFragmentProcessor { |
| 24 public: | 24 public: |
| 25 ~GrCircleBlurFragmentProcessor() override {}; | 25 ~GrCircleBlurFragmentProcessor() override {}; |
| 26 | 26 |
| 27 const char* name() const override { return "CircleBlur"; } | 27 const char* name() const override { return "CircleBlur"; } |
| 28 | 28 |
| 29 SkString dumpInfo() const override { | 29 SkString dumpInfo() const override { |
| 30 SkString str; | 30 SkString str; |
| 31 str.appendf("Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f], Sigma %.2f, Offs
et: %.2f", | 31 str.appendf("Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f], Sigma %.2f, Offs
et: %.2f", |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 float fOffset; | 78 float fOffset; |
| 79 GrTextureAccess fBlurProfileAccess; | 79 GrTextureAccess fBlurProfileAccess; |
| 80 | 80 |
| 81 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; | 81 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
| 82 | 82 |
| 83 typedef GrFragmentProcessor INHERITED; | 83 typedef GrFragmentProcessor INHERITED; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 #endif | 86 #endif |
| 87 #endif | 87 #endif |
| OLD | NEW |