1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/src/core/SkErrorInternals.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 + 1.5 +/* 1.6 + * Copyright 2013 Google Inc. 1.7 + * 1.8 + * Use of this source code is governed by a BSD-style license that can be 1.9 + * found in the LICENSE file. 1.10 + */ 1.11 + 1.12 +#ifndef SkErrorInternals_DEFINED 1.13 +#define SkErrorInternals_DEFINED 1.14 + 1.15 +#include "SkError.h" 1.16 + 1.17 +class SkErrorInternals { 1.18 + 1.19 +public: 1.20 + static void ClearError(); 1.21 + static void SetError(SkError code, const char *fmt, ...); 1.22 + static SkError GetLastError(); 1.23 + static const char *GetLastErrorString(); 1.24 + static void SetErrorCallback(SkErrorCallbackFunction cb, void *context); 1.25 + static void DefaultErrorCallback(SkError code, void *context); 1.26 +}; 1.27 + 1.28 + 1.29 + 1.30 +#endif /* SkErrorInternals_DEFINED */