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

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

Issue 372053003: Revert of Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*. (Closed) Base URL: https://skia.googlesource.com/skia.git@no_ref
Patch Set: 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
« 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 9
10 #include "SkXfermode.h" 10 #include "SkXfermode.h"
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 /////////////////////////////////////////////////////////////////////////////// 669 ///////////////////////////////////////////////////////////////////////////////
670 670
671 bool SkXfermode::asCoeff(Coeff* src, Coeff* dst) const { 671 bool SkXfermode::asCoeff(Coeff* src, Coeff* dst) const {
672 return false; 672 return false;
673 } 673 }
674 674
675 bool SkXfermode::asMode(Mode* mode) const { 675 bool SkXfermode::asMode(Mode* mode) const {
676 return false; 676 return false;
677 } 677 }
678 678
679 bool SkXfermode::asNewEffect(GrEffect** effect, GrTexture* background) const { 679 bool SkXfermode::asNewEffect(GrEffectRef** effect, GrTexture* background) const {
680 return false; 680 return false;
681 } 681 }
682 682
683 bool SkXfermode::AsNewEffectOrCoeff(SkXfermode* xfermode, 683 bool SkXfermode::AsNewEffectOrCoeff(SkXfermode* xfermode,
684 GrEffect** effect, 684 GrEffectRef** effect,
685 Coeff* src, 685 Coeff* src,
686 Coeff* dst, 686 Coeff* dst,
687 GrTexture* background) { 687 GrTexture* background) {
688 if (NULL == xfermode) { 688 if (NULL == xfermode) {
689 return ModeAsCoeff(kSrcOver_Mode, src, dst); 689 return ModeAsCoeff(kSrcOver_Mode, src, dst);
690 } else if (xfermode->asCoeff(src, dst)) { 690 } else if (xfermode->asCoeff(src, dst)) {
691 return true; 691 return true;
692 } else { 692 } else {
693 return xfermode->asNewEffect(effect, background); 693 return xfermode->asNewEffect(effect, background);
694 } 694 }
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1956 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) 1956 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode)
1957 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) 1957 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode)
1958 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) 1958 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode)
1959 #if !SK_ARM_NEON_IS_NONE 1959 #if !SK_ARM_NEON_IS_NONE
1960 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode) 1960 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode)
1961 #endif 1961 #endif
1962 #if defined(SK_CPU_X86) && !defined(SK_BUILD_FOR_IOS) 1962 #if defined(SK_CPU_X86) && !defined(SK_BUILD_FOR_IOS)
1963 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSSE2ProcCoeffXfermode) 1963 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSSE2ProcCoeffXfermode)
1964 #endif 1964 #endif
1965 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1965 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