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

Side by Side Diff: include/effects/SkBlurMaskFilter.h

Issue 2222083004: Create blurred RRect mask on GPU (rather than uploading it) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: SkColor -> GrColor 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 | « include/core/SkMaskFilter.h ('k') | src/core/SkMaskFilter.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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 #ifndef SkBlurMaskFilter_DEFINED 8 #ifndef SkBlurMaskFilter_DEFINED
9 #define SkBlurMaskFilter_DEFINED 9 #define SkBlurMaskFilter_DEFINED
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 static SkMaskFilter* CreateEmboss(SkScalar blurSigma, const SkScalar directi on[3], 58 static SkMaskFilter* CreateEmboss(SkScalar blurSigma, const SkScalar directi on[3],
59 SkScalar ambient, SkScalar specular) { 59 SkScalar ambient, SkScalar specular) {
60 return MakeEmboss(blurSigma, direction, ambient, specular).release(); 60 return MakeEmboss(blurSigma, direction, ambient, specular).release();
61 } 61 }
62 SK_ATTR_DEPRECATED("use sigma version") 62 SK_ATTR_DEPRECATED("use sigma version")
63 static SkMaskFilter* CreateEmboss(const SkScalar direction[3], 63 static SkMaskFilter* CreateEmboss(const SkScalar direction[3],
64 SkScalar ambient, SkScalar specular, 64 SkScalar ambient, SkScalar specular,
65 SkScalar blurRadius); 65 SkScalar blurRadius);
66 #endif 66 #endif
67 67
68 static bool ComputeBlurredRRectParams(const SkRRect& rrect,
69 SkScalar sigma,
70 SkRRect* rrectToDraw,
71 SkISize* widthHeight,
72 SkScalar xs[4],
73 int* numXs,
74 SkScalar ys[4],
75 int* numYs);
76
77
68 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() 78 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
69 79
70 private: 80 private:
71 SkBlurMaskFilter(); // can't be instantiated 81 SkBlurMaskFilter(); // can't be instantiated
72 }; 82 };
73 83
74 #endif 84 #endif
OLDNEW
« no previous file with comments | « include/core/SkMaskFilter.h ('k') | src/core/SkMaskFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698