epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2006 The Android Open Source Project |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 8 | #ifndef SkDrawShader_DEFINED |
| 9 | #define SkDrawShader_DEFINED |
| 10 | |
reed@google.com | 8d4dc71 | 2014-04-18 15:14:25 +0000 | [diff] [blame] | 11 | #include "SkPaintPart.h" |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 12 | #include "SkShader.h" |
| 13 | |
| 14 | class SkBaseBitmap; |
| 15 | |
| 16 | class SkDrawBitmapShader : public SkDrawShader { |
| 17 | DECLARE_DRAW_MEMBER_INFO(BitmapShader); |
| 18 | SkDrawBitmapShader(); |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 19 | bool add() override; |
| 20 | SkShader* getShader() override; |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 21 | protected: |
| 22 | SkBool filterBitmap; |
| 23 | SkBaseBitmap* image; |
| 24 | private: |
| 25 | typedef SkDrawShader INHERITED; |
| 26 | }; |
| 27 | |
| 28 | #endif // SkDrawShader_DEFINED |