Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: dm/DMSrcSink.cpp

Issue 1684713002: Disable indirect backends for image decode tests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMSrcSink.cpp
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
index dd994b609015e31d951df3eab3bc29cee631cafa..1e323cbdee5208b668302b70070a2adbc2aaf678 100644
--- a/dm/DMSrcSink.cpp
+++ b/dm/DMSrcSink.cpp
@@ -271,8 +271,8 @@ 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.approach != SinkFlags::kDirect) &&
- flags.type != SinkFlags::kGPU;
+ return flags.type != SinkFlags::kRaster || flags.type != SinkFlags::kGPU ||
+ flags.approach != SinkFlags::kDirect;
}
// Test all other modes to direct raster backends (8888 and 565).
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698