aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkErrorInternals.h
blob: 65ff231821d2f825ae2bab7c115e4bf64ac5e6e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

/*
 * Copyright 2013 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkErrorInternals_DEFINED
#define SkErrorInternals_DEFINED

#include "SkError.h"

class SkErrorInternals {

public:
    static void ClearError();
    static void SetError(SkError code, const char *fmt, ...);
    static SkError GetLastError();
    static const char *GetLastErrorString();
    static void SetErrorCallback(SkErrorCallbackFunction cb, void *context);
    static void DefaultErrorCallback(SkError code, void *context);
};



#endif /* SkErrorInternals_DEFINED */