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 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1351 setSatFunction); | 1351 setSatFunction); |
1352 | 1352 |
1353 } | 1353 } |
1354 | 1354 |
1355 typedef GrGLEffect INHERITED; | 1355 typedef GrGLEffect INHERITED; |
1356 }; | 1356 }; |
1357 | 1357 |
1358 GR_DECLARE_EFFECT_TEST; | 1358 GR_DECLARE_EFFECT_TEST; |
1359 | 1359 |
1360 private: | 1360 private: |
1361 XferEffect(SkXfermode::Mode mode) : fMode(mode) { this->setWillReadDst(); } | 1361 XferEffect(SkXfermode::Mode mode) : fMode(mode) { this->setWillReadDstColor(
); } |
1362 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE { return tru
e; } | 1362 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE { return tru
e; } |
1363 | 1363 |
1364 SkXfermode::Mode fMode; | 1364 SkXfermode::Mode fMode; |
1365 | 1365 |
1366 typedef GrEffect INHERITED; | 1366 typedef GrEffect INHERITED; |
1367 }; | 1367 }; |
1368 | 1368 |
1369 GR_DEFINE_EFFECT_TEST(XferEffect); | 1369 GR_DEFINE_EFFECT_TEST(XferEffect); |
1370 GrEffectRef* XferEffect::TestCreate(SkMWCRandom* rand, | 1370 GrEffectRef* XferEffect::TestCreate(SkMWCRandom* rand, |
1371 GrContext*, | 1371 GrContext*, |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1970 return proc16; | 1970 return proc16; |
1971 } | 1971 } |
1972 | 1972 |
1973 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) | 1973 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) |
1974 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) | 1974 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) |
1975 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode) | 1975 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode) |
1976 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) | 1976 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) |
1977 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) | 1977 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) |
1978 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) | 1978 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) |
1979 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 1979 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
OLD | NEW |