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

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

Issue 277323002: Make GrGLConfigConversionEffect work for Imagination and some other GPUs. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add new pair of highp shader which brings no side effect to others Created 6 years, 5 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 2012 Google Inc. 2 * Copyright 2012 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 GrConfigConversionEffect_DEFINED 8 #ifndef GrConfigConversionEffect_DEFINED
9 #define GrConfigConversionEffect_DEFINED 9 #define GrConfigConversionEffect_DEFINED
10 10
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 /** 24 /**
25 * The PM->UPM or UPM->PM conversions to apply. 25 * The PM->UPM or UPM->PM conversions to apply.
26 */ 26 */
27 enum PMConversion { 27 enum PMConversion {
28 kNone_PMConversion = 0, 28 kNone_PMConversion = 0,
29 kMulByAlpha_RoundUp_PMConversion, 29 kMulByAlpha_RoundUp_PMConversion,
30 kMulByAlpha_RoundDown_PMConversion, 30 kMulByAlpha_RoundDown_PMConversion,
31 kDivByAlpha_RoundUp_PMConversion, 31 kDivByAlpha_RoundUp_PMConversion,
32 kDivByAlpha_RoundDown_PMConversion, 32 kDivByAlpha_RoundDown_PMConversion,
33 kMulByAlpha_RoundUp_PMConversion_HIGHP,
bsalomon 2014/07/07 13:21:39 To match our style, this should be something like
changjun.yang 2014/07/08 02:33:59 Done.
34 kMulByAlpha_RoundDown_PMConversion_HIGHP,
35 kDivByAlpha_RoundUp_PMConversion_HIGHP,
36 kDivByAlpha_RoundDown_PMConversion_HIGHP,
33 37
34 kPMConversionCnt 38 kPMConversionCnt
35 }; 39 };
36 40
37 // Installs an effect in the GrEffectStage to perform a config conversion. 41 // Installs an effect in the GrEffectStage to perform a config conversion.
38 static const GrEffectRef* Create(GrTexture*, 42 static const GrEffectRef* Create(GrTexture*,
39 bool swapRedAndBlue, 43 bool swapRedAndBlue,
40 PMConversion pmConversion, 44 PMConversion pmConversion,
41 const SkMatrix& matrix); 45 const SkMatrix& matrix);
42 46
(...skipping 26 matching lines...) Expand all
69 73
70 bool fSwapRedAndBlue; 74 bool fSwapRedAndBlue;
71 PMConversion fPMConversion; 75 PMConversion fPMConversion;
72 76
73 GR_DECLARE_EFFECT_TEST; 77 GR_DECLARE_EFFECT_TEST;
74 78
75 typedef GrSingleTextureEffect INHERITED; 79 typedef GrSingleTextureEffect INHERITED;
76 }; 80 };
77 81
78 #endif 82 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/effects/GrConfigConversionEffect.cpp » ('j') | src/gpu/effects/GrConfigConversionEffect.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698