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

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

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: New serialization method Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698