9#if defined(SK_BUILD_FOR_WIN)
13void SkTraceHR(
const char*
file,
unsigned long line, HRESULT hr,
const char* msg) {
19 LPSTR errorText =
nullptr;
20 FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
21 FORMAT_MESSAGE_FROM_SYSTEM |
22 FORMAT_MESSAGE_IGNORE_INSERTS,
25 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
31 if (
nullptr == errorText) {
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1