| Index: chrome/common/security_filter_peer.cc
|
| diff --git a/chrome/common/security_filter_peer.cc b/chrome/common/security_filter_peer.cc
|
| old mode 100644
|
| new mode 100755
|
| index 58db3ee11a68f6b484ef7429321fe80a2bacde78..e984bc4d82153ca686618b5f3464a4fac329571b
|
| --- a/chrome/common/security_filter_peer.cc
|
| +++ b/chrome/common/security_filter_peer.cc
|
| @@ -298,13 +298,8 @@ bool ImageFilterPeer::DataReady() {
|
|
|
| // Now encode it to a PNG.
|
| std::vector<unsigned char> output;
|
| - unsigned char* input =
|
| - static_cast<unsigned char*>(canvas.getDevice()->accessBitmap(false).
|
| - getPixels());
|
| - if (!PNGEncoder::Encode(input,
|
| - PNGEncoder::FORMAT_BGRA,
|
| - image.width(), image.height(),
|
| - image.width() * 4, false, &output)) {
|
| + if (!PNGEncoder::EncodeBGRASkBitmap(canvas.getDevice()->accessBitmap(false),
|
| + false, &output)) {
|
| return false;
|
| }
|
|
|
|
|