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

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

Issue 98703002: Fix compilation with SK_ENABLE_INST_COUNT=1 (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « src/core/SkTypeface.cpp ('k') | src/doc/SkDocument.cpp » ('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"
11 #include "SkXfermode_proccoeff.h" 11 #include "SkXfermode_proccoeff.h"
12 #include "SkColorPriv.h" 12 #include "SkColorPriv.h"
13 #include "SkFlattenableBuffers.h" 13 #include "SkFlattenableBuffers.h"
14 #include "SkMathPriv.h" 14 #include "SkMathPriv.h"
15 #include "SkString.h" 15 #include "SkString.h"
16 #include "SkUtilsArm.h" 16 #include "SkUtilsArm.h"
17 17
18 #if !SK_ARM_NEON_IS_NONE 18 #if !SK_ARM_NEON_IS_NONE
19 #include "SkXfermode_opts_arm_neon.h" 19 #include "SkXfermode_opts_arm_neon.h"
20 #endif 20 #endif
21 21
22 SK_DEFINE_INST_COUNT(SkXfermode)
23
24 #define SkAlphaMulAlpha(a, b) SkMulDiv255Round(a, b) 22 #define SkAlphaMulAlpha(a, b) SkMulDiv255Round(a, b)
25 23
26 #if 0 24 #if 0
27 // idea for higher precision blends in xfer procs (and slightly faster) 25 // idea for higher precision blends in xfer procs (and slightly faster)
28 // see DstATop as a probable caller 26 // see DstATop as a probable caller
29 static U8CPU mulmuldiv255round(U8CPU a, U8CPU b, U8CPU c, U8CPU d) { 27 static U8CPU mulmuldiv255round(U8CPU a, U8CPU b, U8CPU c, U8CPU d) {
30 SkASSERT(a <= 255); 28 SkASSERT(a <= 255);
31 SkASSERT(b <= 255); 29 SkASSERT(b <= 255);
32 SkASSERT(c <= 255); 30 SkASSERT(c <= 255);
33 SkASSERT(d <= 255); 31 SkASSERT(d <= 255);
(...skipping 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after
1963 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) 1961 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode)
1964 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) 1962 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode)
1965 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode) 1963 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode)
1966 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) 1964 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode)
1967 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) 1965 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode)
1968 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) 1966 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode)
1969 #if !SK_ARM_NEON_IS_NONE 1967 #if !SK_ARM_NEON_IS_NONE
1970 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode) 1968 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode)
1971 #endif 1969 #endif
1972 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1970 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « src/core/SkTypeface.cpp ('k') | src/doc/SkDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698