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

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

Issue 1109863004: Use GLSLCaps for creating processor keys and GLSL-specific programs (Closed) Base URL: https://chromium.googlesource.com/skia@master
Patch Set: Created 5 years, 7 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/GrDashingEffect.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 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 11 matching lines...) Expand all
22 class GrTexture; 22 class GrTexture;
23 23
24 /////////////////////////////////////////////////////////////////////////////// 24 ///////////////////////////////////////////////////////////////////////////////
25 // Fragment Processor 25 // Fragment Processor
26 /////////////////////////////////////////////////////////////////////////////// 26 ///////////////////////////////////////////////////////////////////////////////
27 27
28 class GrCustomXferFP : public GrFragmentProcessor { 28 class GrCustomXferFP : public GrFragmentProcessor {
29 public: 29 public:
30 GrCustomXferFP(SkXfermode::Mode mode, GrTexture* background); 30 GrCustomXferFP(SkXfermode::Mode mode, GrTexture* background);
31 31
32 void getGLProcessorKey(const GrGLCaps& caps, GrProcessorKeyBuilder* b) const override; 32 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override;
33 33
34 GrGLFragmentProcessor* createGLInstance() const override; 34 GrGLFragmentProcessor* createGLInstance() const override;
35 35
36 const char* name() const override { return "Custom Xfermode"; } 36 const char* name() const override { return "Custom Xfermode"; }
37 37
38 SkXfermode::Mode mode() const { return fMode; } 38 SkXfermode::Mode mode() const { return fMode; }
39 const GrTextureAccess& backgroundAccess() const { return fBackgroundAccess; } 39 const GrTextureAccess& backgroundAccess() const { return fBackgroundAccess; }
40 40
41 private: 41 private:
42 bool onIsEqual(const GrFragmentProcessor& other) const override; 42 bool onIsEqual(const GrFragmentProcessor& other) const override;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 90
91 GR_DECLARE_XP_FACTORY_TEST; 91 GR_DECLARE_XP_FACTORY_TEST;
92 92
93 SkXfermode::Mode fMode; 93 SkXfermode::Mode fMode;
94 94
95 typedef GrXPFactory INHERITED; 95 typedef GrXPFactory INHERITED;
96 }; 96 };
97 #endif 97 #endif
98 98
OLDNEW
« no previous file with comments | « src/gpu/effects/GrCustomXfermode.cpp ('k') | src/gpu/effects/GrDashingEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698