OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
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 | 8 |
9 #ifndef SkShader_DEFINED | 9 #ifndef SkShader_DEFINED |
10 #define SkShader_DEFINED | 10 #define SkShader_DEFINED |
11 | 11 |
12 #include "SkBitmap.h" | 12 #include "SkBitmap.h" |
13 #include "SkFlattenable.h" | 13 #include "SkFlattenable.h" |
14 #include "SkMask.h" | 14 #include "SkMask.h" |
15 #include "SkMatrix.h" | 15 #include "SkMatrix.h" |
16 #include "SkPaint.h" | 16 #include "SkPaint.h" |
17 | 17 |
18 class SkPath; | 18 class SkPath; |
19 class SkPicture; | 19 class SkPicture; |
20 class SkXfermode; | 20 class SkXfermode; |
21 class GrContext; | 21 class GrContext; |
22 class GrEffectRef; | 22 class GrEffectRef; |
23 | 23 |
| 24 #ifdef SK_SUPPORT_LEGACY_DEADUNITMAPPERTYPE |
| 25 class SkDeadUnitMapperType; |
| 26 #endif |
| 27 |
24 /** \class SkShader | 28 /** \class SkShader |
25 * | 29 * |
26 * Shaders specify the source color(s) for what is being drawn. If a paint | 30 * Shaders specify the source color(s) for what is being drawn. If a paint |
27 * has no shader, then the paint's color is used. If the paint has a | 31 * has no shader, then the paint's color is used. If the paint has a |
28 * shader, then the shader's color(s) are use instead, but they are | 32 * shader, then the shader's color(s) are use instead, but they are |
29 * modulated by the paint's alpha. This makes it easy to create a shader | 33 * modulated by the paint's alpha. This makes it easy to create a shader |
30 * once (e.g. bitmap tiling or gradient) and then change its transparency | 34 * once (e.g. bitmap tiling or gradient) and then change its transparency |
31 * w/o having to modify the original shader... only the paint's alpha needs | 35 * w/o having to modify the original shader... only the paint's alpha needs |
32 * to be modified. | 36 * to be modified. |
33 */ | 37 */ |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 */ | 465 */ |
462 virtual Context* onCreateContext(const ContextRec&, void* storage) const; | 466 virtual Context* onCreateContext(const ContextRec&, void* storage) const; |
463 | 467 |
464 private: | 468 private: |
465 SkMatrix fLocalMatrix; | 469 SkMatrix fLocalMatrix; |
466 | 470 |
467 typedef SkFlattenable INHERITED; | 471 typedef SkFlattenable INHERITED; |
468 }; | 472 }; |
469 | 473 |
470 #endif | 474 #endif |
OLD | NEW |