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

Side by Side Diff: include/effects/SkPictureSource.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: 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/SkPictureSource.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 SkPictureSource_DEFINED
9 #define SkPictureSource_DEFINED
10
11 #include "SkImageFilter.h"
12 #include "SkPicture.h"
13
14 class SK_API SkPictureSource : public SkImageFilter {
reed1 2013/12/12 19:31:53 Name looks a little too general... how about SkPic
15 public:
16 explicit SkPictureSource(const SkPicture& picture);
reed1 2013/12/12 19:31:53 dox: - do you 'ref' the picture argument? I know
17 SkPictureSource(const SkPicture& picture, const SkRect& rect);
reed1 2013/12/12 19:31:53 dox: - is rect a crop rect, or is it resizing the
18
19 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureSource)
20
21 protected:
22 explicit SkPictureSource(SkFlattenableReadBuffer& buffer);
23 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
24 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
25 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
26
27 private:
28 SkPicture fPicture;
29 SkRect fRect;
30 typedef SkImageFilter INHERITED;
31 };
32
33 #endif
OLDNEW
« no previous file with comments | « gyp/gmslides.gypi ('k') | src/effects/SkPictureSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698