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

Side by Side Diff: src/core/SkMaskFilter.cpp

Issue 956083002: Revert of Pass clip to context (Closed) Base URL: https://skia.googlesource.com/skia.git@pass_down_rendertarget
Patch Set: Created 5 years, 9 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/core/SkImageFilter.cpp ('k') | src/effects/SkAlphaThresholdFilter.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkMaskFilter.h" 10 #include "SkMaskFilter.h"
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 bool SkMaskFilter::canFilterMaskGPU(const SkRect& devBounds, 311 bool SkMaskFilter::canFilterMaskGPU(const SkRect& devBounds,
312 const SkIRect& clipBounds, 312 const SkIRect& clipBounds,
313 const SkMatrix& ctm, 313 const SkMatrix& ctm,
314 SkRect* maskRect) const { 314 SkRect* maskRect) const {
315 return false; 315 return false;
316 } 316 }
317 317
318 bool SkMaskFilter::directFilterMaskGPU(GrContext* context, 318 bool SkMaskFilter::directFilterMaskGPU(GrContext* context,
319 GrRenderTarget* rt, 319 GrRenderTarget* rt,
320 GrPaint* grp, 320 GrPaint* grp,
321 const GrClip&,
322 const SkMatrix& viewMatrix, 321 const SkMatrix& viewMatrix,
323 const SkStrokeRec& strokeRec, 322 const SkStrokeRec& strokeRec,
324 const SkPath& path) const { 323 const SkPath& path) const {
325 return false; 324 return false;
326 } 325 }
327 326
328 327
329 bool SkMaskFilter::directFilterRRectMaskGPU(GrContext* context, 328 bool SkMaskFilter::directFilterRRectMaskGPU(GrContext* context,
330 GrRenderTarget* rt, 329 GrRenderTarget* rt,
331 GrPaint* grp, 330 GrPaint* grp,
332 const GrClip&,
333 const SkMatrix& viewMatrix, 331 const SkMatrix& viewMatrix,
334 const SkStrokeRec& strokeRec, 332 const SkStrokeRec& strokeRec,
335 const SkRRect& rrect) const { 333 const SkRRect& rrect) const {
336 return false; 334 return false;
337 } 335 }
338 336
339 bool SkMaskFilter::filterMaskGPU(GrTexture* src, 337 bool SkMaskFilter::filterMaskGPU(GrTexture* src,
340 const SkMatrix& ctm, 338 const SkMatrix& ctm,
341 const SkRect& maskRect, 339 const SkRect& maskRect,
342 GrTexture** result, 340 GrTexture** result,
(...skipping 10 matching lines...) Expand all
353 srcM.fRowBytes = 0; 351 srcM.fRowBytes = 0;
354 srcM.fFormat = SkMask::kA8_Format; 352 srcM.fFormat = SkMask::kA8_Format;
355 353
356 SkIPoint margin; // ignored 354 SkIPoint margin; // ignored
357 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { 355 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) {
358 dst->set(dstM.fBounds); 356 dst->set(dstM.fBounds);
359 } else { 357 } else {
360 dst->set(srcM.fBounds); 358 dst->set(srcM.fBounds);
361 } 359 }
362 } 360 }
OLDNEW
« no previous file with comments | « src/core/SkImageFilter.cpp ('k') | src/effects/SkAlphaThresholdFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698