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

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

Issue 26009004: Implement crop rect support for SkRectShaderImageFilter (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Updated to new CropRect API Created 7 years, 2 months 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 | « no previous file | src/effects/SkRectShaderImageFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkRectShaderImageFilter_DEFINED 8 #ifndef SkRectShaderImageFilter_DEFINED
9 #define SkRectShaderImageFilter_DEFINED 9 #define SkRectShaderImageFilter_DEFINED
10 10
(...skipping 15 matching lines...) Expand all
26 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkRectShaderImageFilter) 26 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkRectShaderImageFilter)
27 27
28 protected: 28 protected:
29 SkRectShaderImageFilter(SkFlattenableReadBuffer& buffer); 29 SkRectShaderImageFilter(SkFlattenableReadBuffer& buffer);
30 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 30 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
31 31
32 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 32 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
33 SkBitmap* result, SkIPoint* loc) SK_OVERRIDE; 33 SkBitmap* result, SkIPoint* loc) SK_OVERRIDE;
34 34
35 private: 35 private:
36 SkRectShaderImageFilter(SkShader* s, const SkRect& rect); 36 SkRectShaderImageFilter(SkShader* s, const CropRect* rect);
37 SkShader* fShader; 37 SkShader* fShader;
38 SkRect fRect;
39 38
40 typedef SkImageFilter INHERITED; 39 typedef SkImageFilter INHERITED;
41 }; 40 };
42 41
43 #endif 42 #endif
OLDNEW
« no previous file with comments | « no previous file | src/effects/SkRectShaderImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698