Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: pkg/barback/lib/src/graph/group_runner.dart

Issue 281383004: Fix a bug when loading secondary assets in barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/barback/CHANGELOG.md ('k') | pkg/barback/lib/src/graph/phase.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/lib/src/graph/group_runner.dart
diff --git a/pkg/barback/lib/src/graph/group_runner.dart b/pkg/barback/lib/src/graph/group_runner.dart
index ce58eda8bd8e0f15b9d9a4348a57062d2e68e81f..e609ba22bbe6fa30d09fd1e76ddf50af27002c98 100644
--- a/pkg/barback/lib/src/graph/group_runner.dart
+++ b/pkg/barback/lib/src/graph/group_runner.dart
@@ -50,8 +50,8 @@ class GroupRunner {
Stream<LogEntry> get onLog => _onLogPool.stream;
final _onLogPool = new StreamPool<LogEntry>.broadcast();
- GroupRunner(AssetCascade cascade, this._group, this._location) {
- _addPhase(new Phase(cascade, _location), []);
+ GroupRunner(Phase previous, this._group, this._location) {
+ _addPhase(previous.addPhase(_location), []);
for (var phase in _group.phases) {
_addPhase(_phases.last.addPhase(), phase);
}
@@ -78,11 +78,6 @@ class GroupRunner {
}
}
- /// Adds a new asset as an input for this group.
- void addInput(AssetNode node) {
- _phases.first.addInput(node);
- }
-
/// Removes this group and all sub-phases within it.
void remove() {
_onLogPool.close();
« no previous file with comments | « pkg/barback/CHANGELOG.md ('k') | pkg/barback/lib/src/graph/phase.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698