Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: src/gpu/SkGpuDevice_drawTexture.cpp

Issue 1967513002: Revert of Replace GrStrokeInfo with GrStyle. (Closed) Base URL: https://chromium.googlesource.com/skia.git@resscale
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | src/gpu/batches/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | src/gpu/batches/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698