OLD | NEW |
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 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1327 typedef GrEffect INHERITED; | 1327 typedef GrEffect INHERITED; |
1328 }; | 1328 }; |
1329 | 1329 |
1330 GR_DEFINE_EFFECT_TEST(XferEffect); | 1330 GR_DEFINE_EFFECT_TEST(XferEffect); |
1331 GrEffectRef* XferEffect::TestCreate(SkRandom* rand, | 1331 GrEffectRef* XferEffect::TestCreate(SkRandom* rand, |
1332 GrContext*, | 1332 GrContext*, |
1333 const GrDrawTargetCaps&, | 1333 const GrDrawTargetCaps&, |
1334 GrTexture*[]) { | 1334 GrTexture*[]) { |
1335 int mode = rand->nextRangeU(SkXfermode::kLastCoeffMode + 1, SkXfermode::kLas
tSeparableMode); | 1335 int mode = rand->nextRangeU(SkXfermode::kLastCoeffMode + 1, SkXfermode::kLas
tSeparableMode); |
1336 | 1336 |
1337 static AutoEffectUnref gEffect(SkNEW_ARGS(XferEffect, (static_cast<SkXfermod
e::Mode>(mode), NULL))); | 1337 AutoEffectUnref gEffect(SkNEW_ARGS(XferEffect, (static_cast<SkXfermode::Mode
>(mode), NULL))); |
1338 return CreateEffectRef(gEffect); | 1338 return CreateEffectRef(gEffect); |
1339 } | 1339 } |
1340 | 1340 |
1341 #endif | 1341 #endif |
1342 | 1342 |
1343 /////////////////////////////////////////////////////////////////////////////// | 1343 /////////////////////////////////////////////////////////////////////////////// |
1344 /////////////////////////////////////////////////////////////////////////////// | 1344 /////////////////////////////////////////////////////////////////////////////// |
1345 | 1345 |
1346 bool SkProcCoeffXfermode::asMode(Mode* mode) const { | 1346 bool SkProcCoeffXfermode::asMode(Mode* mode) const { |
1347 if (mode) { | 1347 if (mode) { |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1947 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) | 1947 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) |
1948 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) | 1948 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) |
1949 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode) | 1949 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode) |
1950 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) | 1950 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) |
1951 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) | 1951 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) |
1952 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) | 1952 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) |
1953 #if !SK_ARM_NEON_IS_NONE | 1953 #if !SK_ARM_NEON_IS_NONE |
1954 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode) | 1954 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode) |
1955 #endif | 1955 #endif |
1956 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 1956 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
OLD | NEW |