Skip to content

Commit

Permalink
WR - update ImageData type in wrench.
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryShih committed Mar 27, 2017
1 parent 2fc13a5 commit 6b57949
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions wrench/src/json_frame_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ impl webrender::ApiRecordingReceiver for JsonFrameWriter {
);
let bytes = match data {
&ImageData::Raw(ref v) => { (**v).clone() }
&ImageData::ExternalHandle(_) => { return; }
&ImageData::ExternalBuffer(_) => { return; }
&ImageData::External(_) => { return; }
&ImageData::Blob(_) => { return; }
};
self.images.insert(*key, CachedImage {
Expand Down
3 changes: 1 addition & 2 deletions wrench/src/yaml_frame_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -782,8 +782,7 @@ impl webrender::ApiRecordingReceiver for YamlFrameWriterReceiver {
);
let bytes = match data {
&ImageData::Raw(ref v) => { (**v).clone() }
&ImageData::ExternalHandle(_) => { return; }
&ImageData::ExternalBuffer(_) => { return; }
&ImageData::External(_) => { return; }
&ImageData::Blob(_) => { return; }
};
self.frame_writer.images.insert(*key, CachedImage {
Expand Down

0 comments on commit 6b57949

Please sign in to comment.