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

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

Issue 23011012: Implement correct clipping for image filters. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Add morphology to the list of ignored tests Created 6 years, 10 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 | « include/effects/SkDropShadowImageFilter.h ('k') | include/effects/SkMorphologyImageFilter.h » ('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 2012 The Android Open Source Project 2 * Copyright 2012 The Android Open Source Project
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 SkMergeImageFilter_DEFINED 8 #ifndef SkMergeImageFilter_DEFINED
9 #define SkMergeImageFilter_DEFINED 9 #define SkMergeImageFilter_DEFINED
10 10
(...skipping 12 matching lines...) Expand all
23 virtual ~SkMergeImageFilter(); 23 virtual ~SkMergeImageFilter();
24 24
25 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMergeImageFilter) 25 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMergeImageFilter)
26 26
27 protected: 27 protected:
28 SkMergeImageFilter(SkReadBuffer& buffer); 28 SkMergeImageFilter(SkReadBuffer& buffer);
29 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 29 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
30 30
31 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 31 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
32 SkBitmap* result, SkIPoint* loc) SK_OVERRIDE; 32 SkBitmap* result, SkIPoint* loc) SK_OVERRIDE;
33 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) SK_OV ERRIDE;
34
35 private: 33 private:
36 uint8_t* fModes; // SkXfermode::Mode 34 uint8_t* fModes; // SkXfermode::Mode
37 35
38 // private storage, to avoid dynamically allocating storage for our copy 36 // private storage, to avoid dynamically allocating storage for our copy
39 // of the modes (unless the count is so large we can't fit). 37 // of the modes (unless the count is so large we can't fit).
40 intptr_t fStorage[16]; 38 intptr_t fStorage[16];
41 39
42 void initAllocModes(); 40 void initAllocModes();
43 void initModes(const SkXfermode::Mode []); 41 void initModes(const SkXfermode::Mode []);
44 42
45 typedef SkImageFilter INHERITED; 43 typedef SkImageFilter INHERITED;
46 }; 44 };
47 45
48 #endif 46 #endif
OLDNEW
« no previous file with comments | « include/effects/SkDropShadowImageFilter.h ('k') | include/effects/SkMorphologyImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698