blob: f7ef29d7d350c1d6f023d4a065db77343129e38b [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();
mtklein36352bf2015-03-25 18:17:31 -070019 bool add() override;
20 SkShader* getShader() 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