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

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

Issue 936943002: Pass clip to context (Closed) Base URL: https://skia.googlesource.com/skia.git@pass_down_rendertarget
Patch Set: more cleanup Created 5 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 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 24 matching lines...) Expand all
35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkXfermodeImageFilter) 35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkXfermodeImageFilter)
36 36
37 virtual bool onFilterImage(Proxy* proxy, 37 virtual bool onFilterImage(Proxy* proxy,
38 const SkBitmap& src, 38 const SkBitmap& src,
39 const Context& ctx, 39 const Context& ctx,
40 SkBitmap* dst, 40 SkBitmap* dst,
41 SkIPoint* offset) const SK_OVERRIDE; 41 SkIPoint* offset) const SK_OVERRIDE;
42 #if SK_SUPPORT_GPU 42 #if SK_SUPPORT_GPU
43 bool canFilterImageGPU() const SK_OVERRIDE; 43 bool canFilterImageGPU() const SK_OVERRIDE;
44 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context & ctx, 44 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context & ctx,
45 SkBitmap* result, SkIPoint* offset) const SK_OVE RRIDE; 45 const GrClip&, SkBitmap* result,
46 SkIPoint* offset) const SK_OVERRIDE;
46 #endif 47 #endif
47 48
48 protected: 49 protected:
49 SkXfermodeImageFilter(SkXfermode* mode, SkImageFilter* inputs[2], 50 SkXfermodeImageFilter(SkXfermode* mode, SkImageFilter* inputs[2],
50 const CropRect* cropRect, uint32_t uniqueID); 51 const CropRect* cropRect, uint32_t uniqueID);
51 void flatten(SkWriteBuffer&) const SK_OVERRIDE; 52 void flatten(SkWriteBuffer&) const SK_OVERRIDE;
52 53
53 private: 54 private:
54 SkXfermode* fMode; 55 SkXfermode* fMode;
55 typedef SkImageFilter INHERITED; 56 typedef SkImageFilter INHERITED;
56 }; 57 };
57 58
58 #endif 59 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698