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

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

Issue 26627004: ARM Skia NEON patches - 30 - Xfermode: NEON modeprocs (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Add a workaround for gcc4.6 Created 7 years, 2 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 | Annotate | Revision Log
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"
17
18 #if !SK_ARM_NEON_IS_NONE
19 #include "SkXfermode_opts_arm_neon.h"
20 #endif
16 21
17 SK_DEFINE_INST_COUNT(SkXfermode) 22 SK_DEFINE_INST_COUNT(SkXfermode)
18 23
19 #define SkAlphaMulAlpha(a, b) SkMulDiv255Round(a, b) 24 #define SkAlphaMulAlpha(a, b) SkMulDiv255Round(a, b)
20 25
21 #if 0 26 #if 0
22 // idea for higher precision blends in xfer procs (and slightly faster) 27 // idea for higher precision blends in xfer procs (and slightly faster)
23 // see DstATop as a probable caller 28 // see DstATop as a probable caller
24 static U8CPU mulmuldiv255round(U8CPU a, U8CPU b, U8CPU c, U8CPU d) { 29 static U8CPU mulmuldiv255round(U8CPU a, U8CPU b, U8CPU c, U8CPU d) {
25 SkASSERT(a <= 255); 30 SkASSERT(a <= 255);
(...skipping 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after
1943 } 1948 }
1944 return proc16; 1949 return proc16;
1945 } 1950 }
1946 1951
1947 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) 1952 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode)
1948 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) 1953 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode)
1949 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode) 1954 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode)
1950 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) 1955 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode)
1951 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) 1956 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode)
1952 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) 1957 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode)
1958 #if !SK_ARM_NEON_IS_NONE
1959 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode)
1960 #endif
1953 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1961 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698