| 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 #ifndef SkDrawShader_DEFINED | 8 #ifndef SkDrawShader_DEFINED |
| 9 #define SkDrawShader_DEFINED | 9 #define SkDrawShader_DEFINED |
| 10 | 10 |
| 11 #include "SkPaintPart.h" | 11 #include "SkPaintPart.h" |
| 12 #include "SkShader.h" | 12 #include "SkShader.h" |
| 13 | 13 |
| 14 class SkBaseBitmap; | 14 class SkBaseBitmap; |
| 15 | 15 |
| 16 class SkDrawBitmapShader : public SkDrawShader { | 16 class SkDrawBitmapShader : public SkDrawShader { |
| 17 DECLARE_DRAW_MEMBER_INFO(BitmapShader); | 17 DECLARE_DRAW_MEMBER_INFO(BitmapShader); |
| 18 SkDrawBitmapShader(); | 18 SkDrawBitmapShader(); |
| 19 virtual bool add() SK_OVERRIDE; | 19 bool add() SK_OVERRIDE; |
| 20 virtual SkShader* getShader() SK_OVERRIDE; | 20 SkShader* getShader() SK_OVERRIDE; |
| 21 protected: | 21 protected: |
| 22 SkBool filterBitmap; | 22 SkBool filterBitmap; |
| 23 SkBaseBitmap* image; | 23 SkBaseBitmap* image; |
| 24 private: | 24 private: |
| 25 typedef SkDrawShader INHERITED; | 25 typedef SkDrawShader INHERITED; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 #endif // SkDrawShader_DEFINED | 28 #endif // SkDrawShader_DEFINED |
| OLD | NEW |