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 |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 SkScalar fRadius[2]; //!< Type specific, see above. | 352 SkScalar fRadius[2]; //!< Type specific, see above. |
353 TileMode fTileMode; //!< The tile mode used. | 353 TileMode fTileMode; //!< The tile mode used. |
354 uint32_t fGradientFlags; //!< see SkGradientShader::Flags | 354 uint32_t fGradientFlags; //!< see SkGradientShader::Flags |
355 }; | 355 }; |
356 | 356 |
357 virtual GradientType asAGradient(GradientInfo* info) const; | 357 virtual GradientType asAGradient(GradientInfo* info) const; |
358 | 358 |
359 /** | 359 /** |
360 * If the shader subclass is composed of two shaders, return true, and if r
ec is not NULL, | 360 * If the shader subclass is composed of two shaders, return true, and if r
ec is not NULL, |
361 * fill it out with info about the shader. | 361 * fill it out with info about the shader. |
| 362 * |
| 363 * These are bare pointers; the ownership and reference count are unchanged
. |
362 */ | 364 */ |
363 | 365 |
364 struct ComposeRec { | 366 struct ComposeRec { |
365 const SkShader* fShaderA; | 367 const SkShader* fShaderA; |
366 const SkShader* fShaderB; | 368 const SkShader* fShaderB; |
367 const SkXfermode* fMode; | 369 const SkXfermode* fMode; |
368 }; | 370 }; |
369 | 371 |
370 virtual bool asACompose(ComposeRec* rec) const { return false; } | 372 virtual bool asACompose(ComposeRec* rec) const { return false; } |
371 | 373 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 */ | 461 */ |
460 virtual Context* onCreateContext(const ContextRec&, void* storage) const; | 462 virtual Context* onCreateContext(const ContextRec&, void* storage) const; |
461 | 463 |
462 private: | 464 private: |
463 SkMatrix fLocalMatrix; | 465 SkMatrix fLocalMatrix; |
464 | 466 |
465 typedef SkFlattenable INHERITED; | 467 typedef SkFlattenable INHERITED; |
466 }; | 468 }; |
467 | 469 |
468 #endif | 470 #endif |
OLD | NEW |