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

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

Issue 1404823005: GrDrawContext now holds GrRenderTarget pointer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix overlength line 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/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 311
312 bool SkMaskFilter::canFilterMaskGPU(const SkRRect& devRRect, 312 bool SkMaskFilter::canFilterMaskGPU(const SkRRect& devRRect,
313 const SkIRect& clipBounds, 313 const SkIRect& clipBounds,
314 const SkMatrix& ctm, 314 const SkMatrix& ctm,
315 SkRect* maskRect) const { 315 SkRect* maskRect) const {
316 return false; 316 return false;
317 } 317 }
318 318
319 bool SkMaskFilter::directFilterMaskGPU(GrTextureProvider* texProvider, 319 bool SkMaskFilter::directFilterMaskGPU(GrTextureProvider* texProvider,
320 GrDrawContext* drawContext, 320 GrDrawContext* drawContext,
321 GrRenderTarget* rt,
322 GrPaint* grp, 321 GrPaint* grp,
323 const GrClip&, 322 const GrClip&,
324 const SkMatrix& viewMatrix, 323 const SkMatrix& viewMatrix,
325 const SkStrokeRec& strokeRec, 324 const SkStrokeRec& strokeRec,
326 const SkPath& path) const { 325 const SkPath& path) const {
327 return false; 326 return false;
328 } 327 }
329 328
330 329
331 bool SkMaskFilter::directFilterRRectMaskGPU(GrTextureProvider* texProvider, 330 bool SkMaskFilter::directFilterRRectMaskGPU(GrTextureProvider* texProvider,
332 GrDrawContext* drawContext, 331 GrDrawContext* drawContext,
333 GrRenderTarget* rt,
334 GrPaint* grp, 332 GrPaint* grp,
335 const GrClip&, 333 const GrClip&,
336 const SkMatrix& viewMatrix, 334 const SkMatrix& viewMatrix,
337 const SkStrokeRec& strokeRec, 335 const SkStrokeRec& strokeRec,
338 const SkRRect& rrect) const { 336 const SkRRect& rrect) const {
339 return false; 337 return false;
340 } 338 }
341 339
342 bool SkMaskFilter::filterMaskGPU(GrTexture* src, 340 bool SkMaskFilter::filterMaskGPU(GrTexture* src,
343 const SkMatrix& ctm, 341 const SkMatrix& ctm,
(...skipping 12 matching lines...) Expand all
356 srcM.fRowBytes = 0; 354 srcM.fRowBytes = 0;
357 srcM.fFormat = SkMask::kA8_Format; 355 srcM.fFormat = SkMask::kA8_Format;
358 356
359 SkIPoint margin; // ignored 357 SkIPoint margin; // ignored
360 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { 358 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) {
361 dst->set(dstM.fBounds); 359 dst->set(dstM.fBounds);
362 } else { 360 } else {
363 dst->set(srcM.fBounds); 361 dst->set(srcM.fBounds);
364 } 362 }
365 } 363 }
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