aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2017-08-16 10:53:04 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-16 15:37:54 +0000
commitb4aab9ae6d27c446af8302b79d15b832c816c633 (patch)
tree27e7f87a7a5e3d61990bc2742d9b9f167d26e0c3 /include/gpu
parentedf3dc094b0fc55bfc932539da1127484051b474 (diff)
Replace SkFAIL with SK_ABORT.
SkFAIL is a legacy macro which is just SK_ABORT. This CL mechanically changes uses of SkFAIL to SK_ABORT in preparation for its removal. The related sk_throw macro will be changed independently, due to needing to actually clean up its users. Change-Id: Id70b5c111a02d2458dc60c8933f444df27d9cebb Reviewed-on: https://skia-review.googlesource.com/35284 Reviewed-by: Derek Sollenberger <djsollen@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrTypes.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index 9b683aa7ad..7401fa49ee 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -365,7 +365,7 @@ static inline bool GrPixelConfigIs8888Unorm(GrPixelConfig config) {
case kRGBA_half_GrPixelConfig:
return false;
}
- SkFAIL("Invalid pixel config");
+ SK_ABORT("Invalid pixel config");
return false;
}
@@ -390,7 +390,7 @@ static inline bool GrPixelConfigIsSRGB(GrPixelConfig config) {
case kRGBA_half_GrPixelConfig:
return false;
}
- SkFAIL("Invalid pixel config");
+ SK_ABORT("Invalid pixel config");
return false;
}
@@ -418,7 +418,7 @@ static inline GrPixelConfig GrPixelConfigSwapRAndB(GrPixelConfig config) {
case kRGBA_half_GrPixelConfig:
return kUnknown_GrPixelConfig;
}
- SkFAIL("Invalid pixel config");
+ SK_ABORT("Invalid pixel config");
return kUnknown_GrPixelConfig;
}
@@ -446,7 +446,7 @@ static inline size_t GrBytesPerPixel(GrPixelConfig config) {
case kUnknown_GrPixelConfig:
return 0;
}
- SkFAIL("Invalid pixel config");
+ SK_ABORT("Invalid pixel config");
return 0;
}
@@ -469,7 +469,7 @@ static inline bool GrPixelConfigIsOpaque(GrPixelConfig config) {
case kUnknown_GrPixelConfig:
return false;
}
- SkFAIL("Invalid pixel config");
+ SK_ABORT("Invalid pixel config");
return false;
}
@@ -492,7 +492,7 @@ static inline bool GrPixelConfigIsAlphaOnly(GrPixelConfig config) {
case kRGBA_half_GrPixelConfig:
return false;
}
- SkFAIL("Invalid pixel config.");
+ SK_ABORT("Invalid pixel config.");
return false;
}
@@ -515,7 +515,7 @@ static inline bool GrPixelConfigIsFloatingPoint(GrPixelConfig config) {
case kRGBA_8888_sint_GrPixelConfig:
return false;
}
- SkFAIL("Invalid pixel config");
+ SK_ABORT("Invalid pixel config");
return false;
}
@@ -542,7 +542,7 @@ static inline bool GrPixelConfigIsUnorm(GrPixelConfig config) {
case kRGBA_half_GrPixelConfig:
return false;
}
- SkFAIL("Invalid pixel config.");
+ SK_ABORT("Invalid pixel config.");
return false;
}