OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |