| 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 "SkGpuDevice.h" | 8 #include "SkGpuDevice.h" |
| 9 | 9 |
| 10 #include "GrBlurUtils.h" | 10 #include "GrBlurUtils.h" |
| 11 #include "GrCaps.h" | 11 #include "GrCaps.h" |
| 12 #include "GrDrawContext.h" | 12 #include "GrDrawContext.h" |
| 13 #include "GrStyle.h" | 13 #include "GrStrokeInfo.h" |
| 14 #include "GrTextureParamsAdjuster.h" | 14 #include "GrTextureParamsAdjuster.h" |
| 15 #include "SkDraw.h" | 15 #include "SkDraw.h" |
| 16 #include "SkGrPriv.h" | 16 #include "SkGrPriv.h" |
| 17 #include "SkMaskFilter.h" | 17 #include "SkMaskFilter.h" |
| 18 #include "effects/GrBicubicEffect.h" | 18 #include "effects/GrBicubicEffect.h" |
| 19 #include "effects/GrSimpleTextureEffect.h" | 19 #include "effects/GrSimpleTextureEffect.h" |
| 20 #include "effects/GrTextureDomain.h" | 20 #include "effects/GrTextureDomain.h" |
| 21 | 21 |
| 22 static inline bool use_shader(bool textureIsAlphaOnly, const SkPaint& paint) { | 22 static inline bool use_shader(bool textureIsAlphaOnly, const SkPaint& paint) { |
| 23 return textureIsAlphaOnly && paint.getShader(); | 23 return textureIsAlphaOnly && paint.getShader(); |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 clip, | 233 clip, |
| 234 viewMatrix, | 234 viewMatrix, |
| 235 rec, | 235 rec, |
| 236 rrect)) { | 236 rrect)) { |
| 237 return; | 237 return; |
| 238 } | 238 } |
| 239 SkPath rectPath; | 239 SkPath rectPath; |
| 240 rectPath.addRect(clippedDstRect); | 240 rectPath.addRect(clippedDstRect); |
| 241 rectPath.setIsVolatile(true); | 241 rectPath.setIsVolatile(true); |
| 242 GrBlurUtils::drawPathWithMaskFilter(this->context(), fDrawContext.get(), fCl
ip, | 242 GrBlurUtils::drawPathWithMaskFilter(this->context(), fDrawContext.get(), fCl
ip, |
| 243 rectPath, &grPaint, viewMatrix, mf, GrSt
yle::SimpleFill(), | 243 rectPath, &grPaint, viewMatrix, mf, pain
t.getPathEffect(), |
| 244 true); | 244 GrStrokeInfo::FillInfo(), true); |
| 245 } | 245 } |
| OLD | NEW |