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/GrConfigConversionEffect.h

Issue 739673002: Create GrOptDrawState before recording draw in GrInOrderDrawBuffer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove unused function in pendingprogramelement Created 6 years, 1 month 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/GrProgramElement.cpp ('k') | src/gpu/gl/GrGLProcessor.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 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 17 matching lines...) Expand all
28 enum PMConversion { 28 enum PMConversion {
29 kNone_PMConversion = 0, 29 kNone_PMConversion = 0,
30 kMulByAlpha_RoundUp_PMConversion, 30 kMulByAlpha_RoundUp_PMConversion,
31 kMulByAlpha_RoundDown_PMConversion, 31 kMulByAlpha_RoundDown_PMConversion,
32 kDivByAlpha_RoundUp_PMConversion, 32 kDivByAlpha_RoundUp_PMConversion,
33 kDivByAlpha_RoundDown_PMConversion, 33 kDivByAlpha_RoundDown_PMConversion,
34 34
35 kPMConversionCnt 35 kPMConversionCnt
36 }; 36 };
37 37
38 // Installs an effect in the GrProcessorStage to perform a config conversion .
39 static const GrFragmentProcessor* Create(GrTexture*, bool swapRedAndBlue, PM Conversion, 38 static const GrFragmentProcessor* Create(GrTexture*, bool swapRedAndBlue, PM Conversion,
40 const SkMatrix&); 39 const SkMatrix&);
41 40
42 static const char* Name() { return "Config Conversion"; } 41 static const char* Name() { return "Config Conversion"; }
43 typedef GrGLConfigConversionEffect GLProcessor; 42 typedef GrGLConfigConversionEffect GLProcessor;
44 43
45 virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERR IDE; 44 virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERR IDE;
46 45
47 bool swapsRedAndBlue() const { return fSwapRedAndBlue; } 46 bool swapsRedAndBlue() const { return fSwapRedAndBlue; }
48 PMConversion pmConversion() const { return fPMConversion; } 47 PMConversion pmConversion() const { return fPMConversion; }
(...skipping 19 matching lines...) Expand all
68 67
69 bool fSwapRedAndBlue; 68 bool fSwapRedAndBlue;
70 PMConversion fPMConversion; 69 PMConversion fPMConversion;
71 70
72 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 71 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
73 72
74 typedef GrSingleTextureEffect INHERITED; 73 typedef GrSingleTextureEffect INHERITED;
75 }; 74 };
76 75
77 #endif 76 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrProgramElement.cpp ('k') | src/gpu/gl/GrGLProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698