Home | History | Annotate | Download | only in skqp
      1 /*
      2  * Copyright 2017 Google Inc.
      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 skqp_asset_manager_DEFINED
      8 #define skqp_asset_manager_DEFINED
      9 
     10 #include <memory>
     11 
     12 class SkStreamAsset;
     13 
     14 namespace skqp {
     15 class AssetManager {
     16 public:
     17     virtual ~AssetManager() {}
     18     virtual std::unique_ptr<SkStreamAsset> open(const char* path) = 0;
     19 };
     20 }  // namespace skqp
     21 #endif  // skqp_asset_manager_DEFINED
     22