blob: 32c8fd56d89868b9923420c054a122a1b735d0e5 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001/*
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.com8a1c16f2008-12-17 15:59:43 +00008#ifndef SkDrawShader_DEFINED
9#define SkDrawShader_DEFINED
10
reed@google.com8d4dc712014-04-18 15:14:25 +000011#include "SkPaintPart.h"
reed@android.com8a1c16f2008-12-17 15:59:43 +000012#include "SkShader.h"
13
14class SkBaseBitmap;
15
16class SkDrawBitmapShader : public SkDrawShader {
17 DECLARE_DRAW_MEMBER_INFO(BitmapShader);
18 SkDrawBitmapShader();
mtklein72c9faa2015-01-09 10:06:39 -080019 bool add() SK_OVERRIDE;
20 SkShader* getShader() SK_OVERRIDE;
reed@android.com8a1c16f2008-12-17 15:59:43 +000021protected:
22 SkBool filterBitmap;
23 SkBaseBitmap* image;
24private:
25 typedef SkDrawShader INHERITED;
26};
27
28#endif // SkDrawShader_DEFINED