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

Side by Side Diff: tools/sk_tool_utils.h

Issue 2214033002: Add new GM for occluded blurmask filter draws (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Appease compilers 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') | tools/sk_tool_utils.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 2014 Google Inc. 2 * Copyright 2014 Google Inc.
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 sk_tool_utils_DEFINED 8 #ifndef sk_tool_utils_DEFINED
9 #define sk_tool_utils_DEFINED 9 #define sk_tool_utils_DEFINED
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst); 126 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst);
127 127
128 void make_big_path(SkPath& path); 128 void make_big_path(SkPath& path);
129 129
130 // Return a blurred version of 'src'. This doesn't use a separable filter 130 // Return a blurred version of 'src'. This doesn't use a separable filter
131 // so it is slow! 131 // so it is slow!
132 SkBitmap slow_blur(const SkBitmap& src, float sigma); 132 SkBitmap slow_blur(const SkBitmap& src, float sigma);
133 133
134 SkRect compute_central_occluder(const SkRRect& rr); 134 SkRect compute_central_occluder(const SkRRect& rr);
135 SkRect compute_widest_occluder(const SkRRect& rr);
136 SkRect compute_tallest_occluder(const SkRRect& rr);
135 137
136 // A helper object to test the topological sorting code (TopoSortBench.cpp & TopoSortTest.cpp) 138 // A helper object to test the topological sorting code (TopoSortBench.cpp & TopoSortTest.cpp)
137 class TopoTestNode { 139 class TopoTestNode {
138 public: 140 public:
139 TopoTestNode(int id) : fID(id), fOutputPos(-1), fTempMark(false) { } 141 TopoTestNode(int id) : fID(id), fOutputPos(-1), fTempMark(false) { }
140 142
141 void dependsOn(TopoTestNode* src) { 143 void dependsOn(TopoTestNode* src) {
142 *fDependencies.append() = src; 144 *fDependencies.append() = src;
143 } 145 }
144 146
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 int fID; 221 int fID;
220 int fOutputPos; 222 int fOutputPos;
221 bool fTempMark; 223 bool fTempMark;
222 224
223 SkTDArray<TopoTestNode*> fDependencies; 225 SkTDArray<TopoTestNode*> fDependencies;
224 }; 226 };
225 227
226 } // namespace sk_tool_utils 228 } // namespace sk_tool_utils
227 229
228 #endif // sk_tool_utils_DEFINED 230 #endif // sk_tool_utils_DEFINED
OLDNEW
« no previous file with comments | « gm/occludedrrectblur.cpp ('k') | tools/sk_tool_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698