Debian Codegraph @

include/core/SkCPUContext.h

raw
1 /*
2 * Copyright 2025 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 #ifndef skcpu_Context_DEFINED
8 #define skcpu_Context_DEFINED
9
10 #include "include/private/base/SkAPI.h"
11
12 #include <memory>
13
14 namespace skcpu {
15 class Recorder;
16
17 class SK_API Context {
18 public:
19 struct Options {};
20
21 std::unique_ptr<Recorder> makeRecorder() const;
22
23 static std::unique_ptr<const Context> Make(const Options&);
24 static std::unique_ptr<const Context> Make();
25
26 protected:
27 Context() = default;
28 };
29 } // namespace skcpu
30
31 #endif