Chromium Code Reviews| 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 SkPictureImageFilter_DEFINED | |
| 9 #define SkPictureImageFilter_DEFINED | |
| 10 | |
| 11 #include "SkImageFilter.h" | |
| 12 #include "SkPicture.h" | |
| 13 | |
| 14 class SK_API SkPictureImageFilter : public SkImageFilter { | |
| 15 public: | |
| 16 // Refs the passed-in picture. | |
| 17 explicit SkPictureImageFilter(SkPicture* picture); | |
| 18 | |
| 19 // Refs the passed-in picture. rect can be used to crop or expand the destin ation rect when | |
|
reed1
2013/12/12 21:51:54
nit for the future -- when we document public head
Stephen White
2013/12/12 21:56:45
Done.
| |
| 20 // the picture is drawn. (No scaling is implied by the dest rect; only the C TM is applied.) | |
| 21 SkPictureImageFilter(SkPicture* picture, const SkRect& rect); | |
| 22 | |
| 23 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureImageFilter) | |
| 24 | |
| 25 protected: | |
| 26 virtual ~SkPictureImageFilter(); | |
| 27 explicit SkPictureImageFilter(SkFlattenableReadBuffer& buffer); | |
| 28 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; | |
| 29 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, | |
| 30 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE; | |
| 31 | |
| 32 private: | |
| 33 SkPicture* fPicture; | |
| 34 SkRect fRect; | |
| 35 typedef SkImageFilter INHERITED; | |
| 36 }; | |
| 37 | |
| 38 #endif | |
| OLD | NEW |