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 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1352 fBackgroundAccess.getTexture() == s.fBackgroundAccess.getTexture(
); | 1352 fBackgroundAccess.getTexture() == s.fBackgroundAccess.getTexture(
); |
1353 } | 1353 } |
1354 | 1354 |
1355 SkXfermode::Mode fMode; | 1355 SkXfermode::Mode fMode; |
1356 GrTextureAccess fBackgroundAccess; | 1356 GrTextureAccess fBackgroundAccess; |
1357 | 1357 |
1358 typedef GrEffect INHERITED; | 1358 typedef GrEffect INHERITED; |
1359 }; | 1359 }; |
1360 | 1360 |
1361 GR_DEFINE_EFFECT_TEST(XferEffect); | 1361 GR_DEFINE_EFFECT_TEST(XferEffect); |
1362 GrEffectRef* XferEffect::TestCreate(SkMWCRandom* rand, | 1362 GrEffectRef* XferEffect::TestCreate(SkRandom* rand, |
1363 GrContext*, | 1363 GrContext*, |
1364 const GrDrawTargetCaps&, | 1364 const GrDrawTargetCaps&, |
1365 GrTexture*[]) { | 1365 GrTexture*[]) { |
1366 int mode = rand->nextRangeU(SkXfermode::kLastCoeffMode + 1, SkXfermode::kLas
tSeparableMode); | 1366 int mode = rand->nextRangeU(SkXfermode::kLastCoeffMode + 1, SkXfermode::kLas
tSeparableMode); |
1367 | 1367 |
1368 static AutoEffectUnref gEffect(SkNEW_ARGS(XferEffect, (static_cast<SkXfermod
e::Mode>(mode), NULL))); | 1368 static AutoEffectUnref gEffect(SkNEW_ARGS(XferEffect, (static_cast<SkXfermod
e::Mode>(mode), NULL))); |
1369 return CreateEffectRef(gEffect); | 1369 return CreateEffectRef(gEffect); |
1370 } | 1370 } |
1371 | 1371 |
1372 #endif | 1372 #endif |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1963 return proc16; | 1963 return proc16; |
1964 } | 1964 } |
1965 | 1965 |
1966 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) | 1966 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) |
1967 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) | 1967 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) |
1968 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode) | 1968 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode) |
1969 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) | 1969 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) |
1970 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) | 1970 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) |
1971 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) | 1971 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) |
1972 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 1972 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
OLD | NEW |