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

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

Issue 148883011: Make SkImageFilter methods const. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More fixes to gm/ 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
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 11 matching lines...) Expand all
22 const CropRect* cropRect = NULL); 22 const CropRect* cropRect = NULL);
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) const SK_OVERRID E;
33 private: 33 private:
34 uint8_t* fModes; // SkXfermode::Mode 34 uint8_t* fModes; // SkXfermode::Mode
35 35
36 // private storage, to avoid dynamically allocating storage for our copy 36 // private storage, to avoid dynamically allocating storage for our copy
37 // 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).
38 intptr_t fStorage[16]; 38 intptr_t fStorage[16];
39 39
40 void initAllocModes(); 40 void initAllocModes();
41 void initModes(const SkXfermode::Mode []); 41 void initModes(const SkXfermode::Mode []);
42 42
43 typedef SkImageFilter INHERITED; 43 typedef SkImageFilter INHERITED;
44 }; 44 };
45 45
46 #endif 46 #endif
OLDNEW
« no previous file with comments | « include/effects/SkMatrixConvolutionImageFilter.h ('k') | include/effects/SkMorphologyImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698