| 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 | |
| 28 /** \class SkShader | 24 /** \class SkShader |
| 29 * | 25 * |
| 30 * Shaders specify the source color(s) for what is being drawn. If a paint | 26 * Shaders specify the source color(s) for what is being drawn. If a paint |
| 31 * has no shader, then the paint's color is used. If the paint has a | 27 * has no shader, then the paint's color is used. If the paint has a |
| 32 * shader, then the shader's color(s) are use instead, but they are | 28 * shader, then the shader's color(s) are use instead, but they are |
| 33 * modulated by the paint's alpha. This makes it easy to create a shader | 29 * modulated by the paint's alpha. This makes it easy to create a shader |
| 34 * once (e.g. bitmap tiling or gradient) and then change its transparency | 30 * once (e.g. bitmap tiling or gradient) and then change its transparency |
| 35 * w/o having to modify the original shader... only the paint's alpha needs | 31 * w/o having to modify the original shader... only the paint's alpha needs |
| 36 * to be modified. | 32 * to be modified. |
| 37 */ | 33 */ |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 */ | 461 */ |
| 466 virtual Context* onCreateContext(const ContextRec&, void* storage) const; | 462 virtual Context* onCreateContext(const ContextRec&, void* storage) const; |
| 467 | 463 |
| 468 private: | 464 private: |
| 469 SkMatrix fLocalMatrix; | 465 SkMatrix fLocalMatrix; |
| 470 | 466 |
| 471 typedef SkFlattenable INHERITED; | 467 typedef SkFlattenable INHERITED; |
| 472 }; | 468 }; |
| 473 | 469 |
| 474 #endif | 470 #endif |
| OLD | NEW |