Skip to content

Commit

Permalink
Update ImageData type in wrench.
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryShih committed Mar 30, 2017
1 parent dec3102 commit bbfefcc
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 bbfefcc

Please sign in to comment.