Skip to content

Instantly share code, notes, and snippets.

@abarth
Created June 15, 2015 23:13
Show Gist options
  • Save abarth/775f9a03b966a7813899 to your computer and use it in GitHub Desktop.
Save abarth/775f9a03b966a7813899 to your computer and use it in GitHub Desktop.
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module assets;
interface AssetManager {
FetchAssetBundle(string asset_bundle_url, AssetBundle& bundle);
}
interface AssetWatcher {
OnAssetUpdated(string asset_name);
}
interface AssetBundle {
Load(string asset_name) => (handle<data_pipe_consumer>);
Watch(string asset_name, AssetWatcher watcher);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment