1 2 /* 3 * Copyright 2008 The Android Open Source Project 4 * 5 * Use of this source code is governed by a BSD-style license that can be 6 * found in the LICENSE file. 7 */ 8 9 10 #ifndef SkPaintFlagsDrawFilter_DEFINED 11 #define SkPaintFlagsDrawFilter_DEFINED 12 13 #include "SkDrawFilter.h" 14 15 class SkPaintFlagsDrawFilter : public SkDrawFilter { 16 public: 17 SkPaintFlagsDrawFilter(uint32_t clearFlags, uint32_t setFlags); 18 19 // overrides 20 virtual void filter(SkPaint*, Type); 21 22 private: 23 uint32_t fPrevFlags; // local cache for filter/restore 24 uint16_t fClearFlags; // user specified 25 uint16_t fSetFlags; // user specified 26 }; 27 28 #endif 29 30