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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 | 364 |
365 SkShader(SkReadBuffer& ); | 365 SkShader(SkReadBuffer& ); |
366 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 366 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
367 private: | 367 private: |
368 SkMatrix fLocalMatrix; | 368 SkMatrix fLocalMatrix; |
369 SkMatrix fTotalInverse; | 369 SkMatrix fTotalInverse; |
370 uint8_t fPaintAlpha; | 370 uint8_t fPaintAlpha; |
371 uint8_t fTotalInverseClass; | 371 uint8_t fTotalInverseClass; |
372 SkDEBUGCODE(SkBool8 fInSetContext;) | 372 SkDEBUGCODE(SkBool8 fInSetContext;) |
373 | 373 |
374 static SkShader* CreateBitmapShader(const SkBitmap& src, | |
375 TileMode, TileMode, | |
376 void* storage, size_t storageSize); | |
377 friend class SkAutoBitmapShaderInstall; | |
378 typedef SkFlattenable INHERITED; | 374 typedef SkFlattenable INHERITED; |
379 }; | 375 }; |
380 | 376 |
381 #endif | 377 #endif |
OLD | NEW |