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

Side by Side Diff: src/gpu/effects/GrCustomXfermodePriv.h

Issue 1132093004: Move DstCoordTexture to GrXP, rename and remove the word "copy" from dstcopytexture names. (Closed) Base URL: https://skia.googlesource.com/skia.git@copy
Patch Set: remove asserts Created 5 years, 6 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 | « src/gpu/effects/GrCustomXfermode.cpp ('k') | src/gpu/effects/GrDisableColorXP.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 2015 Google Inc. 2 * Copyright 2015 Google Inc.
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 GrCustomXfermodePriv_DEFINED 8 #ifndef GrCustomXfermodePriv_DEFINED
9 #define GrCustomXfermodePriv_DEFINED 9 #define GrCustomXfermodePriv_DEFINED
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 return true; 64 return true;
65 } 65 }
66 66
67 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI, 67 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI,
68 GrXPFactory::InvariantOutput*) const override; 68 GrXPFactory::InvariantOutput*) const override;
69 69
70 private: 70 private:
71 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, 71 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps,
72 const GrProcOptInfo& colorPOI, 72 const GrProcOptInfo& colorPOI,
73 const GrProcOptInfo& coveragePOI, 73 const GrProcOptInfo& coveragePOI,
74 const GrDeviceCoordTexture* dstCopy) const override; 74 const DstTexture*) const override;
75 75
76 bool willReadDstColor(const GrCaps& caps, 76 bool willReadDstColor(const GrCaps& caps,
77 const GrProcOptInfo& colorPOI, 77 const GrProcOptInfo& colorPOI,
78 const GrProcOptInfo& coveragePOI) const override; 78 const GrProcOptInfo& coveragePOI) const override;
79 79
80 bool onIsEqual(const GrXPFactory& xpfBase) const override { 80 bool onIsEqual(const GrXPFactory& xpfBase) const override {
81 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>(); 81 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>();
82 return fMode == xpf.fMode; 82 return fMode == xpf.fMode;
83 } 83 }
84 84
85 GR_DECLARE_XP_FACTORY_TEST; 85 GR_DECLARE_XP_FACTORY_TEST;
86 86
87 SkXfermode::Mode fMode; 87 SkXfermode::Mode fMode;
88 88
89 typedef GrXPFactory INHERITED; 89 typedef GrXPFactory INHERITED;
90 }; 90 };
91 #endif 91 #endif
92 92
OLDNEW
« no previous file with comments | « src/gpu/effects/GrCustomXfermode.cpp ('k') | src/gpu/effects/GrDisableColorXP.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698