OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2013 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 SkFloodImageFilter_DEFINED |
| 9 #define SkFloodImageFilter_DEFINED |
| 10 |
| 11 #include "SkImageFilter.h" |
| 12 #include "SkColor.h" |
| 13 |
| 14 class SkFloodImageFilter : public SkImageFilter { |
| 15 typedef SkImageFilter INHERITED; |
| 16 |
| 17 public: |
| 18 SkFloodImageFilter(const SkColor& color, const SkIRect* cropRect) |
| 19 : INHERITED(0, 0, cropRect), fColor(color) {} |
| 20 |
| 21 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkFloodImageFilter) |
| 22 |
| 23 SkFloodImageFilter(SkFlattenableReadBuffer& buffer); |
| 24 |
| 25 virtual void flatten(SkFlattenableWriteBuffer& buffer) const SK_OVERRIDE; |
| 26 |
| 27 virtual bool onFilterImage(Proxy* proxy, const SkBitmap& src, const SkMatrix
& ctm, |
| 28 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE; |
| 29 private: |
| 30 SkColor fColor; |
| 31 }; |
| 32 |
| 33 #endif |
OLD | NEW |