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

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

Issue 1245183002: Misc cleanup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address gcc complaint Created 5 years, 5 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
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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 return false; 308 return false;
309 } 309 }
310 310
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(GrTextureProvider* texProvider,
319 GrDrawContext* drawContext,
319 GrRenderTarget* rt, 320 GrRenderTarget* rt,
320 GrPaint* grp, 321 GrPaint* grp,
321 const GrClip&, 322 const GrClip&,
322 const SkMatrix& viewMatrix, 323 const SkMatrix& viewMatrix,
323 const SkStrokeRec& strokeRec, 324 const SkStrokeRec& strokeRec,
324 const SkPath& path) const { 325 const SkPath& path) const {
325 return false; 326 return false;
326 } 327 }
327 328
328 329
329 bool SkMaskFilter::directFilterRRectMaskGPU(GrContext* context, 330 bool SkMaskFilter::directFilterRRectMaskGPU(GrTextureProvider* texProvider,
331 GrDrawContext* drawContext,
330 GrRenderTarget* rt, 332 GrRenderTarget* rt,
331 GrPaint* grp, 333 GrPaint* grp,
332 const GrClip&, 334 const GrClip&,
333 const SkMatrix& viewMatrix, 335 const SkMatrix& viewMatrix,
334 const SkStrokeRec& strokeRec, 336 const SkStrokeRec& strokeRec,
335 const SkRRect& rrect) const { 337 const SkRRect& rrect) const {
336 return false; 338 return false;
337 } 339 }
338 340
339 bool SkMaskFilter::filterMaskGPU(GrTexture* src, 341 bool SkMaskFilter::filterMaskGPU(GrTexture* src,
(...skipping 13 matching lines...) Expand all
353 srcM.fRowBytes = 0; 355 srcM.fRowBytes = 0;
354 srcM.fFormat = SkMask::kA8_Format; 356 srcM.fFormat = SkMask::kA8_Format;
355 357
356 SkIPoint margin; // ignored 358 SkIPoint margin; // ignored
357 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { 359 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) {
358 dst->set(dstM.fBounds); 360 dst->set(dstM.fBounds);
359 } else { 361 } else {
360 dst->set(srcM.fBounds); 362 dst->set(srcM.fBounds);
361 } 363 }
362 } 364 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698