Skip to content

Commit

Permalink
Bug 1292747 (Part 3) - Clean up some comments in imgFrame related to …
Browse files Browse the repository at this point in the history
…Optimize()'s behavior. r=edwin
  • Loading branch information
sethfowler committed Aug 8, 2016
1 parent 12327ad commit 74dc2ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions image/imgFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -786,11 +786,13 @@ imgFrame::UnlockImageData()
return NS_OK;
}

// Convert the data surface to a GPU surface or a single color if possible.
// This will also release mImageSurface if possible.
// Convert our data surface to a GPU surface if possible. We'll also try to
// release mImageSurface.
Optimize();

// Allow the OS to release our data surface.
// Allow the OS to release our data surface. Note that mImageSurface also
// keeps our volatile buffer alive, so this doesn't actually work unless we
// released mImageSurface in Optimize().
mVBufPtr = nullptr;
}

Expand Down

0 comments on commit 74dc2ba

Please sign in to comment.