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

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

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 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/SkLumaColorFilter.h ('k') | include/effects/SkMatrixConvolutionImageFilter.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 8
9 #ifndef SkMagnifierImageFilter_DEFINED 9 #ifndef SkMagnifierImageFilter_DEFINED
10 #define SkMagnifierImageFilter_DEFINED 10 #define SkMagnifierImageFilter_DEFINED
11 11
12 #include "SkRect.h" 12 #include "SkRect.h"
13 #include "SkImageFilter.h" 13 #include "SkImageFilter.h"
14 14
15 class SK_API SkMagnifierImageFilter : public SkImageFilter { 15 class SK_API SkMagnifierImageFilter : public SkImageFilter {
16 public: 16 public:
17 static SkImageFilter* Create(const SkRect& src, SkScalar inset, SkImageFilte r* input = NULL); 17 static SkImageFilter* Create(const SkRect& src, SkScalar inset, SkImageFilte r* input = NULL);
18 18
19 SK_TO_STRING_OVERRIDE() 19 SK_TO_STRING_OVERRIDE()
20 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMagnifierImageFilter) 20 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMagnifierImageFilter)
21 21
22 protected: 22 protected:
23 SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset, SkImageFilter* input); 23 SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset, SkImageFilter* input);
24 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 24 void flatten(SkWriteBuffer&) const SK_OVERRIDE;
25 25
26 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, 26 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
27 SkBitmap* result, SkIPoint* offset) const SK_OVER RIDE; 27 SkBitmap* result, SkIPoint* offset) const SK_OVER RIDE;
28 #if SK_SUPPORT_GPU 28 #if SK_SUPPORT_GPU
29 virtual bool asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const Sk Matrix&, 29 virtual bool asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const Sk Matrix&,
30 const SkIRect& bounds) const SK_OVERRIDE; 30 const SkIRect& bounds) const SK_OVERRIDE;
31 #endif 31 #endif
32 32
33 private: 33 private:
34 SkRect fSrcRect; 34 SkRect fSrcRect;
35 SkScalar fInset; 35 SkScalar fInset;
36 typedef SkImageFilter INHERITED; 36 typedef SkImageFilter INHERITED;
37 }; 37 };
38 38
39 #endif 39 #endif
OLDNEW
« no previous file with comments | « include/effects/SkLumaColorFilter.h ('k') | include/effects/SkMatrixConvolutionImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698