blob: 10dd3c4d69442c085926f2e83e40d0a3fb979b98 [file] [log] [blame]
reed@android.com8a1c16f2008-12-17 15:59:43 +00001/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00002 * Copyright 2008 The Android Open Source Project
reed@android.com8a1c16f2008-12-17 15:59:43 +00003 *
epoger@google.comec3ed6a2011-07-28 14:26:00 +00004 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
reed@android.com8a1c16f2008-12-17 15:59:43 +00006 */
7
8#ifndef SkPaintFlagsDrawFilter_DEFINED
9#define SkPaintFlagsDrawFilter_DEFINED
10
11#include "SkDrawFilter.h"
12
tfarina@chromium.org6806fe82012-10-12 14:41:39 +000013class SK_API SkPaintFlagsDrawFilter : public SkDrawFilter {
reed@android.com8a1c16f2008-12-17 15:59:43 +000014public:
15 SkPaintFlagsDrawFilter(uint32_t clearFlags, uint32_t setFlags);
rmistry@google.comfbfcd562012-08-23 18:09:54 +000016
mtklein36352bf2015-03-25 18:17:31 -070017 bool filter(SkPaint*, Type) override;
rmistry@google.comfbfcd562012-08-23 18:09:54 +000018
reed@android.com8a1c16f2008-12-17 15:59:43 +000019private:
reed@android.com8a1c16f2008-12-17 15:59:43 +000020 uint16_t fClearFlags; // user specified
21 uint16_t fSetFlags; // user specified
22};
23
24#endif