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

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

Issue 1215643006: more threading of GrShaderDataManager (Closed) Base URL: https://skia.googlesource.com/skia.git@GrShaderDataManager3
Patch Set: tweaks Created 5 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
« no previous file with comments | « include/gpu/effects/GrCustomXfermode.h ('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_opts_SSE2.h" 10 #include "SkXfermode_opts_SSE2.h"
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 { color_modeproc, CANNOT_USE_COEFF, CANNOT_USE_COEFF }, 651 { color_modeproc, CANNOT_USE_COEFF, CANNOT_USE_COEFF },
652 { luminosity_modeproc, CANNOT_USE_COEFF, CANNOT_USE_COEFF }, 652 { luminosity_modeproc, CANNOT_USE_COEFF, CANNOT_USE_COEFF },
653 }; 653 };
654 654
655 /////////////////////////////////////////////////////////////////////////////// 655 ///////////////////////////////////////////////////////////////////////////////
656 656
657 bool SkXfermode::asMode(Mode* mode) const { 657 bool SkXfermode::asMode(Mode* mode) const {
658 return false; 658 return false;
659 } 659 }
660 660
661 bool SkXfermode::asFragmentProcessor(GrFragmentProcessor**, GrTexture*) const { 661 bool SkXfermode::asFragmentProcessor(GrFragmentProcessor**, GrShaderDataManager* ,
662 GrTexture*) const {
662 return false; 663 return false;
663 } 664 }
664 665
665 bool SkXfermode::asXPFactory(GrXPFactory**) const { 666 bool SkXfermode::asXPFactory(GrXPFactory**) const {
666 return false; 667 return false;
667 } 668 }
668 669
669 670
670 #if SK_SUPPORT_GPU 671 #if SK_SUPPORT_GPU
671 #include "effects/GrPorterDuffXferProcessor.h" 672 #include "effects/GrPorterDuffXferProcessor.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 } 922 }
922 } 923 }
923 } 924 }
924 } 925 }
925 } 926 }
926 927
927 #if SK_SUPPORT_GPU 928 #if SK_SUPPORT_GPU
928 #include "effects/GrCustomXfermode.h" 929 #include "effects/GrCustomXfermode.h"
929 930
930 bool SkProcCoeffXfermode::asFragmentProcessor(GrFragmentProcessor** fp, 931 bool SkProcCoeffXfermode::asFragmentProcessor(GrFragmentProcessor** fp,
932 GrShaderDataManager* shaderDataMan ager,
931 GrTexture* background) const { 933 GrTexture* background) const {
932 if (GrCustomXfermode::IsSupportedMode(fMode)) { 934 if (GrCustomXfermode::IsSupportedMode(fMode)) {
933 if (fp) { 935 if (fp) {
934 *fp = GrCustomXfermode::CreateFP(fMode, background); 936 SkASSERT(shaderDataManager);
937 *fp = GrCustomXfermode::CreateFP(shaderDataManager, fMode, backgroun d);
935 SkASSERT(*fp); 938 SkASSERT(*fp);
936 } 939 }
937 return true; 940 return true;
938 } 941 }
939 return false; 942 return false;
940 } 943 }
941 944
942 bool SkProcCoeffXfermode::asXPFactory(GrXPFactory** xp) const { 945 bool SkProcCoeffXfermode::asXPFactory(GrXPFactory** xp) const {
943 if (CANNOT_USE_COEFF != fSrcCoeff) { 946 if (CANNOT_USE_COEFF != fSrcCoeff) {
944 if (xp) { 947 if (xp) {
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 } else { 1533 } else {
1531 proc16 = rec.fProc16_General; 1534 proc16 = rec.fProc16_General;
1532 } 1535 }
1533 } 1536 }
1534 return proc16; 1537 return proc16;
1535 } 1538 }
1536 1539
1537 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) 1540 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode)
1538 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) 1541 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode)
1539 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1542 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « include/gpu/effects/GrCustomXfermode.h ('k') | src/core/SkXfermode_proccoeff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698