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

Side by Side Diff: include/effects/SkXfermodeImageFilter.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
« no previous file with comments | « include/effects/SkTileImageFilter.h ('k') | include/gpu/SkGpuDevice.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 2013 The Android Open Source Project 2 * Copyright 2013 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 SkXfermodeImageFilter_DEFINED 8 #ifndef SkXfermodeImageFilter_DEFINED
9 #define SkXfermodeImageFilter_DEFINED 9 #define SkXfermodeImageFilter_DEFINED
10 10
(...skipping 14 matching lines...) Expand all
25 SkImageFilter* foreground = NULL, const CropRect* crop Rect = NULL); 25 SkImageFilter* foreground = NULL, const CropRect* crop Rect = NULL);
26 26
27 virtual ~SkXfermodeImageFilter(); 27 virtual ~SkXfermodeImageFilter();
28 28
29 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkXfermodeImageFilter) 29 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkXfermodeImageFilter)
30 30
31 virtual bool onFilterImage(Proxy* proxy, 31 virtual bool onFilterImage(Proxy* proxy,
32 const SkBitmap& src, 32 const SkBitmap& src,
33 const SkMatrix& ctm, 33 const SkMatrix& ctm,
34 SkBitmap* dst, 34 SkBitmap* dst,
35 SkIPoint* offset) SK_OVERRIDE; 35 SkIPoint* offset) const SK_OVERRIDE;
36 #if SK_SUPPORT_GPU 36 #if SK_SUPPORT_GPU
37 virtual bool canFilterImageGPU() const SK_OVERRIDE { return !cropRectIsSet() ; } 37 virtual bool canFilterImageGPU() const SK_OVERRIDE { return !cropRectIsSet() ; }
38 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatri x& ctm, 38 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatri x& ctm,
39 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE; 39 SkBitmap* result, SkIPoint* offset) const SK_OVE RRIDE;
40 #endif 40 #endif
41 41
42 protected: 42 protected:
43 explicit SkXfermodeImageFilter(SkReadBuffer& buffer); 43 explicit SkXfermodeImageFilter(SkReadBuffer& buffer);
44 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 44 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
45 45
46 private: 46 private:
47 SkXfermode* fMode; 47 SkXfermode* fMode;
48 typedef SkImageFilter INHERITED; 48 typedef SkImageFilter INHERITED;
49 }; 49 };
50 50
51 #endif 51 #endif
OLDNEW
« no previous file with comments | « include/effects/SkTileImageFilter.h ('k') | include/gpu/SkGpuDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698