Chromium Code Reviews| 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); | |
|
mtklein
2013/09/24 22:52:18
I'm confused why we have both these two functions
sugoi1
2013/09/25 21:15:27
It's only a question of dependencies. I need to be
| |
| 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 |