Chromium Code Reviews| Index: dm/DMSrcSink.cpp |
| diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
| index 1e323cbdee5208b668302b70070a2adbc2aaf678..1573f9ac66b5dbf74480604c98541dbdaa4dea59 100644 |
| --- a/dm/DMSrcSink.cpp |
| +++ b/dm/DMSrcSink.cpp |
| @@ -271,7 +271,7 @@ CodecSrc::CodecSrc(Path path, Mode mode, DstColorType dstColorType, SkAlphaType |
| bool CodecSrc::veto(SinkFlags flags) const { |
| // Test CodecImageGenerator on 8888, 565, and gpu |
| if (kGen_Mode == fMode) { |
| - return flags.type != SinkFlags::kRaster || flags.type != SinkFlags::kGPU || |
| + return (flags.type != SinkFlags::kRaster && flags.type != SinkFlags::kGPU) || |
|
djsollen
2016/02/10 14:10:54
put a comment here that we only want to test Direc
msarett
2016/02/10 14:14:41
Done.
|
| flags.approach != SinkFlags::kDirect; |
| } |