OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2013 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef SkFlattenableUtils_DEFINED |
| 9 #define SkFlattenableUtils_DEFINED |
| 10 |
| 11 #include "SkFlattenable.h" |
| 12 |
| 13 namespace SkFlattenableUtils { |
| 14 |
| 15 /** Returns the factory function required to create the given type |
| 16 */ |
| 17 SkFlattenable::Factory TypeToFactory(SkFlattenable::Type type); |
| 18 |
| 19 /** Checks if typeA is a typeB |
| 20 * For example, if typeA is kSkImageFilter and typeB is kSkFlattenable, this wo
uld return true |
| 21 * Inversely, if typeA is kSkFlattenable and typeB is kSkImageFilter, this woul
d return false |
| 22 */ |
| 23 bool TypeIsA(SkFlattenable::Type typeA, SkFlattenable::Type typeB); |
| 24 |
| 25 }; |
| 26 |
| 27 #endif |
OLD | NEW |