OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkXfermode.h" | 8 #include "SkXfermode.h" |
9 #include "SkXfermode_proccoeff.h" | 9 #include "SkXfermode_proccoeff.h" |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 | 1413 |
1414 bool SkXfermode::IsOpaque(const SkXfermode* xfer, SrcColorOpacity opacityType) { | 1414 bool SkXfermode::IsOpaque(const SkXfermode* xfer, SrcColorOpacity opacityType) { |
1415 // if xfer is nullptr we treat it as srcOver which is opaque if our src is o
paque | 1415 // if xfer is nullptr we treat it as srcOver which is opaque if our src is o
paque |
1416 if (!xfer) { | 1416 if (!xfer) { |
1417 return SkXfermode::kOpaque_SrcColorOpacity == opacityType; | 1417 return SkXfermode::kOpaque_SrcColorOpacity == opacityType; |
1418 } | 1418 } |
1419 | 1419 |
1420 return xfer->isOpaque(opacityType); | 1420 return xfer->isOpaque(opacityType); |
1421 } | 1421 } |
1422 | 1422 |
1423 bool SkXfermode::appendStages(SkRasterPipeline* pipeline) const { | |
1424 return this->onAppendStages(pipeline); | |
1425 } | |
1426 | |
1427 bool SkXfermode::onAppendStages(SkRasterPipeline*) const { | |
1428 return false; | |
1429 } | |
1430 | |
1431 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) | 1423 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) |
1432 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) | 1424 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) |
1433 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 1425 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
OLD | NEW |