aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skqp/skqp_asset_manager.h
blob: b9bd4d6c81bfa0c04ee023be6ed45fb071293be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright 2017 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#ifndef skqp_asset_manager_DEFINED
#define skqp_asset_manager_DEFINED

#include <memory>

class SkStreamAsset;

namespace skqp {
class AssetManager {
public:
    virtual ~AssetManager() {}
    virtual std::unique_ptr<SkStreamAsset> open(const char* path) = 0;
};
}  // namespace skqp
#endif  // skqp_asset_manager_DEFINED