| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkBitmapProcShader_DEFINED | 10 #ifndef SkBitmapProcShader_DEFINED |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 static bool CanDo(const SkBitmap&, TileMode tx, TileMode ty); | 30 static bool CanDo(const SkBitmap&, TileMode tx, TileMode ty); |
| 31 | 31 |
| 32 SK_DEVELOPER_TO_STRING() | 32 SK_DEVELOPER_TO_STRING() |
| 33 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBitmapProcShader) | 33 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBitmapProcShader) |
| 34 | 34 |
| 35 #if SK_SUPPORT_GPU | 35 #if SK_SUPPORT_GPU |
| 36 GrEffectRef* asNewEffect(GrContext*, const SkPaint&) const SK_OVERRIDE; | 36 GrEffectRef* asNewEffect(GrContext*, const SkPaint&) const SK_OVERRIDE; |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 protected: | 39 protected: |
| 40 SkBitmapProcShader(SkFlattenableReadBuffer& ); | 40 SkBitmapProcShader(SkReadBuffer& ); |
| 41 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; | 41 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 42 | 42 |
| 43 SkBitmap fRawBitmap; // experimental for RLE encoding | 43 SkBitmap fRawBitmap; // experimental for RLE encoding |
| 44 SkBitmapProcState fState; | 44 SkBitmapProcState fState; |
| 45 uint32_t fFlags; | 45 uint32_t fFlags; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 typedef SkShader INHERITED; | 48 typedef SkShader INHERITED; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 #endif | 51 #endif |
| OLD | NEW |