Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(979)

Side by Side Diff: include/effects/SkPictureImageFilter.h

Issue 114263002: Implement an SkPicture image filter source. This is required for the external-SVG reference feature… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Add comments; fix destructor virtuality / privacy Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gyp/gmslides.gypi ('k') | src/effects/SkPictureImageFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « gyp/gmslides.gypi ('k') | src/effects/SkPictureImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698