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

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

Issue 2357273002: Add output format properties to SkImageFilter::Context (Closed)
Patch Set: Spelling Created 4 years, 3 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/core/SkImageFilter.h ('k') | src/core/SkBitmapDevice.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 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 protected: 56 protected:
57 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 57 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
58 SkIPoint* offset) const override; 58 SkIPoint* offset) const override;
59 59
60 #if SK_SUPPORT_GPU 60 #if SK_SUPPORT_GPU
61 sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source, 61 sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source,
62 sk_sp<SkSpecialImage> background, 62 sk_sp<SkSpecialImage> background,
63 const SkIPoint& backgroundOffset, 63 const SkIPoint& backgroundOffset,
64 sk_sp<SkSpecialImage> foreground, 64 sk_sp<SkSpecialImage> foreground,
65 const SkIPoint& foregroundOffset, 65 const SkIPoint& foregroundOffset,
66 const SkIRect& bounds) const; 66 const SkIRect& bounds,
67 const OutputProperties& outputPropertie s) const;
67 #endif 68 #endif
68 69
69 SkXfermodeImageFilter(sk_sp<SkXfermode> mode, sk_sp<SkImageFilter> inputs[2] , 70 SkXfermodeImageFilter(sk_sp<SkXfermode> mode, sk_sp<SkImageFilter> inputs[2] ,
70 const CropRect* cropRect); 71 const CropRect* cropRect);
71 void flatten(SkWriteBuffer&) const override; 72 void flatten(SkWriteBuffer&) const override;
72 73
73 private: 74 private:
74 sk_sp<SkXfermode> fMode; 75 sk_sp<SkXfermode> fMode;
75 typedef SkImageFilter INHERITED; 76 typedef SkImageFilter INHERITED;
76 }; 77 };
77 78
78 #endif 79 #endif
OLDNEW
« no previous file with comments | « include/core/SkImageFilter.h ('k') | src/core/SkBitmapDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698