mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision ff259bab (#488528)
This commit is contained in:
@ -62,13 +62,7 @@ bool PNGMethod(bool with_transparency,
|
||||
bool JPEGMethod(int quality,
|
||||
const SkBitmap& bitmap,
|
||||
std::vector<unsigned char>* compressed) {
|
||||
return gfx::JPEGCodec::Encode(
|
||||
reinterpret_cast<unsigned char*>(bitmap.getPixels()),
|
||||
bitmap.colorType() == kBGRA_8888_SkColorType
|
||||
? gfx::JPEGCodec::FORMAT_BGRA
|
||||
: gfx::JPEGCodec::FORMAT_RGBA,
|
||||
bitmap.width(), bitmap.height(), static_cast<int>(bitmap.rowBytes()),
|
||||
quality, compressed);
|
||||
return gfx::JPEGCodec::Encode(bitmap, quality, compressed);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user