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 #include "SkBitmapProcShader.h" | 8 #include "SkBitmapProcShader.h" |
9 #include "SkBitmapProvider.h" | 9 #include "SkBitmapProvider.h" |
10 #include "SkImage_Base.h" | 10 #include "SkImage_Base.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 SkAutoTUnref<GrFragmentProcessor> inner; | 131 SkAutoTUnref<GrFragmentProcessor> inner; |
132 if (doBicubic) { | 132 if (doBicubic) { |
133 inner.reset(GrBicubicEffect::Create(mgr, texture, matrix, tm)); | 133 inner.reset(GrBicubicEffect::Create(mgr, texture, matrix, tm)); |
134 } else { | 134 } else { |
135 inner.reset(GrSimpleTextureEffect::Create(mgr, texture, matrix, params))
; | 135 inner.reset(GrSimpleTextureEffect::Create(mgr, texture, matrix, params))
; |
136 } | 136 } |
137 | 137 |
138 if (GrPixelConfigIsAlphaOnly(texture->config())) { | 138 if (GrPixelConfigIsAlphaOnly(texture->config())) { |
139 return SkRef(inner.get()); | 139 return SkRef(inner.get()); |
140 } | 140 } |
141 return GrFragmentProcessor::MulOuputByInputAlpha(inner); | 141 return GrFragmentProcessor::MulOutputByInputAlpha(inner); |
142 } | 142 } |
143 | 143 |
144 #endif | 144 #endif |
OLD | NEW |