OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 SkImageFilter_DEFINED | 8 #ifndef SkImageFilter_DEFINED |
9 #define SkImageFilter_DEFINED | 9 #define SkImageFilter_DEFINED |
10 | 10 |
| 11 #include "../private/SkTArray.h" |
11 #include "../private/SkTemplates.h" | 12 #include "../private/SkTemplates.h" |
12 #include "../private/SkMutex.h" | 13 #include "../private/SkMutex.h" |
13 #include "SkFilterQuality.h" | 14 #include "SkFilterQuality.h" |
14 #include "SkFlattenable.h" | 15 #include "SkFlattenable.h" |
15 #include "SkMatrix.h" | 16 #include "SkMatrix.h" |
16 #include "SkRect.h" | 17 #include "SkRect.h" |
17 #include "SkSurfaceProps.h" | 18 #include "SkSurfaceProps.h" |
18 #include "SkTArray.h" | |
19 | 19 |
20 class GrFragmentProcessor; | 20 class GrFragmentProcessor; |
21 class GrTexture; | 21 class GrTexture; |
22 class SkBaseDevice; | 22 class SkBaseDevice; |
23 class SkBitmap; | 23 class SkBitmap; |
24 class SkColorFilter; | 24 class SkColorFilter; |
25 struct SkIPoint; | 25 struct SkIPoint; |
26 | 26 |
27 /** | 27 /** |
28 * Base class for image filters. If one is installed in the paint, then | 28 * Base class for image filters. If one is installed in the paint, then |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 */ | 460 */ |
461 #define SK_IMAGEFILTER_UNFLATTEN_COMMON(localVar, expectedCount) \ | 461 #define SK_IMAGEFILTER_UNFLATTEN_COMMON(localVar, expectedCount) \ |
462 Common localVar; \ | 462 Common localVar; \ |
463 do { \ | 463 do { \ |
464 if (!localVar.unflatten(buffer, expectedCount)) { \ | 464 if (!localVar.unflatten(buffer, expectedCount)) { \ |
465 return NULL; \ | 465 return NULL; \ |
466 } \ | 466 } \ |
467 } while (0) | 467 } while (0) |
468 | 468 |
469 #endif | 469 #endif |
OLD | NEW |