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

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

Issue 1388113002: Bye bye processor data manager (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove files Created 5 years, 2 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/effects/gradients/SkTwoPointConicalGradient_gpu.cpp ('k') | src/gpu/GrClipMaskManager.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 "GrBlurUtils.h" 8 #include "GrBlurUtils.h"
9 #include "GrDrawContext.h" 9 #include "GrDrawContext.h"
10 #include "GrCaps.h" 10 #include "GrCaps.h"
(...skipping 18 matching lines...) Expand all
29 GrRenderTarget* rt, 29 GrRenderTarget* rt,
30 const GrClip& clip, 30 const GrClip& clip,
31 const SkMatrix& viewMatrix, 31 const SkMatrix& viewMatrix,
32 const SkRect& maskRect, 32 const SkRect& maskRect,
33 GrPaint* grp, 33 GrPaint* grp,
34 GrTexture* mask) { 34 GrTexture* mask) {
35 SkMatrix matrix; 35 SkMatrix matrix;
36 matrix.setTranslate(-maskRect.fLeft, -maskRect.fTop); 36 matrix.setTranslate(-maskRect.fLeft, -maskRect.fTop);
37 matrix.postIDiv(mask->width(), mask->height()); 37 matrix.postIDiv(mask->width(), mask->height());
38 38
39 grp->addCoverageFragmentProcessor(GrSimpleTextureEffect::Create(grp->getProc essorDataManager(), 39 grp->addCoverageFragmentProcessor(GrSimpleTextureEffect::Create(mask, matrix ,
40 mask, matrix, 40 kDevice_GrCo ordSet))->unref();
41 kDevice_GrCoordSet)) ->unref();
42 41
43 SkMatrix inverse; 42 SkMatrix inverse;
44 if (!viewMatrix.invert(&inverse)) { 43 if (!viewMatrix.invert(&inverse)) {
45 return false; 44 return false;
46 } 45 }
47 drawContext->drawNonAARectWithLocalMatrix(rt, clip, *grp, SkMatrix::I(), mas kRect, inverse); 46 drawContext->drawNonAARectWithLocalMatrix(rt, clip, *grp, SkMatrix::I(), mas kRect, inverse);
48 return true; 47 return true;
49 } 48 }
50 49
51 static bool draw_with_mask_filter(GrDrawContext* drawContext, 50 static bool draw_with_mask_filter(GrDrawContext* drawContext,
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 SkPaint::kFill_Sty le; 291 SkPaint::kFill_Sty le;
293 draw_with_mask_filter(drawContext, context->textureProvider(), renderTar get, 292 draw_with_mask_filter(drawContext, context->textureProvider(), renderTar get,
294 clip, viewMatrix, *devPathPtr, 293 clip, viewMatrix, *devPathPtr,
295 paint.getMaskFilter(), clipBounds, &grPaint, style ); 294 paint.getMaskFilter(), clipBounds, &grPaint, style );
296 return; 295 return;
297 } 296 }
298 297
299 drawContext->drawPath(renderTarget, clip, grPaint, viewMatrix, *pathPtr, str okeInfo); 298 drawContext->drawPath(renderTarget, clip, grPaint, viewMatrix, *pathPtr, str okeInfo);
300 } 299 }
301 300
OLDNEW
« no previous file with comments | « src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp ('k') | src/gpu/GrClipMaskManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698