1 /* 2 * Copyright 2008 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 8 #ifndef SkPaintFlagsDrawFilter_DEFINED 9 #define SkPaintFlagsDrawFilter_DEFINED 10 11 #include "SkDrawFilter.h" 12 13 class SK_API SkPaintFlagsDrawFilter : public SkDrawFilter { 14 public: 15 SkPaintFlagsDrawFilter(uint32_t clearFlags, uint32_t setFlags); 16 17 virtual bool filter(SkPaint*, Type) SK_OVERRIDE; 18 19 private: 20 uint16_t fClearFlags; // user specified 21 uint16_t fSetFlags; // user specified 22 }; 23 24 #endif 25