diff options
Diffstat (limited to 'tools/skqp/skqp_asset_manager.h')
-rw-r--r-- | tools/skqp/skqp_asset_manager.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/skqp/skqp_asset_manager.h b/tools/skqp/skqp_asset_manager.h new file mode 100644 index 0000000000..b9bd4d6c81 --- /dev/null +++ b/tools/skqp/skqp_asset_manager.h @@ -0,0 +1,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 |