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

Side by Side Diff: include/core/SkMaskFilter.h

Issue 2201133002: Implement GPU occluded blur mask filter (Closed) Base URL: https://skia.googlesource.com/skia.git@occluded-blur
Patch Set: update to ToT Created 4 years, 4 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 | « gm/occludedrrectblur.cpp ('k') | include/core/SkPicture.h » ('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 #ifndef SkMaskFilter_DEFINED 10 #ifndef SkMaskFilter_DEFINED
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 /** 122 /**
123 * Try to directly render a rounded rect mask filter into the target. Retu rns 123 * Try to directly render a rounded rect mask filter into the target. Retu rns
124 * true if drawing was successful. 124 * true if drawing was successful.
125 */ 125 */
126 virtual bool directFilterRRectMaskGPU(GrContext*, 126 virtual bool directFilterRRectMaskGPU(GrContext*,
127 GrDrawContext* drawContext, 127 GrDrawContext* drawContext,
128 GrPaint* grp, 128 GrPaint* grp,
129 const GrClip&, 129 const GrClip&,
130 const SkMatrix& viewMatrix, 130 const SkMatrix& viewMatrix,
131 const SkStrokeRec& strokeRec, 131 const SkStrokeRec& strokeRec,
132 const SkRRect& rrect) const; 132 const SkRRect& rrect,
133 const SkRRect& devRRect) const;
133 134
134 /** 135 /**
135 * This function is used to implement filters that require an explicit src m ask. It should only 136 * This function is used to implement filters that require an explicit src m ask. It should only
136 * be called if canFilterMaskGPU returned true and the maskRect param should be the output from 137 * be called if canFilterMaskGPU returned true and the maskRect param should be the output from
137 * that call. 138 * that call.
138 * Implementations are free to get the GrContext from the src texture in ord er to create 139 * Implementations are free to get the GrContext from the src texture in ord er to create
139 * additional textures and perform multiple passes. 140 * additional textures and perform multiple passes.
140 */ 141 */
141 virtual bool filterMaskGPU(GrTexture* src, 142 virtual bool filterMaskGPU(GrTexture* src,
142 const SkMatrix& ctm, 143 const SkMatrix& ctm,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 mask and then call filterMask(). If this returns true, the specified blitte r will be called 234 mask and then call filterMask(). If this returns true, the specified blitte r will be called
234 to render that mask. Returns false if filterMask() returned false. 235 to render that mask. Returns false if filterMask() returned false.
235 */ 236 */
236 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste rClip&, 237 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste rClip&,
237 SkBlitter*) const; 238 SkBlitter*) const;
238 239
239 typedef SkFlattenable INHERITED; 240 typedef SkFlattenable INHERITED;
240 }; 241 };
241 242
242 #endif 243 #endif
OLDNEW
« no previous file with comments | « gm/occludedrrectblur.cpp ('k') | include/core/SkPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698