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

Side by Side Diff: src/core/SkXfermode.cpp

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 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/core/SkShader.cpp ('k') | src/core/SkXfermode_proccoeff.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkXfermode.h" 9 #include "SkXfermode.h"
10 #include "SkXfermode_proccoeff.h" 10 #include "SkXfermode_proccoeff.h"
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 { luminosity_modeproc, CANNOT_USE_COEFF, CANNOT_USE_COEFF }, 645 { luminosity_modeproc, CANNOT_USE_COEFF, CANNOT_USE_COEFF },
646 }; 646 };
647 647
648 /////////////////////////////////////////////////////////////////////////////// 648 ///////////////////////////////////////////////////////////////////////////////
649 649
650 bool SkXfermode::asMode(Mode* mode) const { 650 bool SkXfermode::asMode(Mode* mode) const {
651 return false; 651 return false;
652 } 652 }
653 653
654 bool SkXfermode::asFragmentProcessor(const GrFragmentProcessor**, 654 bool SkXfermode::asFragmentProcessor(const GrFragmentProcessor**,
655 const GrFragmentProcessor*) const { 655 const GrFragmentProcessor*, GrRenderTarget* dst) const {
656 return false; 656 return false;
657 } 657 }
658 658
659 bool SkXfermode::asXPFactory(GrXPFactory**) const { 659 bool SkXfermode::asXPFactory(GrXPFactory**) const {
660 return false; 660 return false;
661 } 661 }
662 662
663 663
664 #if SK_SUPPORT_GPU 664 #if SK_SUPPORT_GPU
665 #include "effects/GrPorterDuffXferProcessor.h" 665 #include "effects/GrPorterDuffXferProcessor.h"
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 } 916 }
917 } 917 }
918 } 918 }
919 } 919 }
920 920
921 #if SK_SUPPORT_GPU 921 #if SK_SUPPORT_GPU
922 #include "effects/GrCustomXfermode.h" 922 #include "effects/GrCustomXfermode.h"
923 #include "effects/GrXfermodeFragmentProcessor.h" 923 #include "effects/GrXfermodeFragmentProcessor.h"
924 924
925 bool SkProcCoeffXfermode::asFragmentProcessor(const GrFragmentProcessor** fp, 925 bool SkProcCoeffXfermode::asFragmentProcessor(const GrFragmentProcessor** fp,
926 const GrFragmentProcessor* dst) co nst { 926 const GrFragmentProcessor* dst,
927 GrRenderTarget* dstRT) const {
927 if (fp) { 928 if (fp) {
928 SkASSERT(dst); 929 SkASSERT(dst);
929 *fp = GrXfermodeFragmentProcessor::CreateFromDstProcessor(dst, fMode); 930 *fp = GrXfermodeFragmentProcessor::CreateFromDstProcessor(dst, fMode);
930 SkASSERT(*fp || kSrc_Mode == fMode); 931 SkASSERT(*fp || kSrc_Mode == fMode);
931 } 932 }
932 return true; 933 return true;
933 } 934 }
934 935
935 bool SkProcCoeffXfermode::asXPFactory(GrXPFactory** xp) const { 936 bool SkProcCoeffXfermode::asXPFactory(GrXPFactory** xp) const {
936 if (CANNOT_USE_COEFF != fSrcCoeff) { 937 if (CANNOT_USE_COEFF != fSrcCoeff) {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 if (!xfer) { 1084 if (!xfer) {
1084 return SkXfermode::kOpaque_SrcColorOpacity == opacityType; 1085 return SkXfermode::kOpaque_SrcColorOpacity == opacityType;
1085 } 1086 }
1086 1087
1087 return xfer->isOpaque(opacityType); 1088 return xfer->isOpaque(opacityType);
1088 } 1089 }
1089 1090
1090 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) 1091 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode)
1091 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) 1092 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode)
1092 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1093 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « src/core/SkShader.cpp ('k') | src/core/SkXfermode_proccoeff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698