Fix API changes of CopyFromBackingStore
This commit is contained in:
parent
757df39941
commit
8e2fdc178b
2 changed files with 6 additions and 5 deletions
|
@ -780,11 +780,11 @@ void NativeWindow::NotifyWindowUnresponsive() {
|
|||
}
|
||||
|
||||
void NativeWindow::OnCapturePageDone(const CapturePageCallback& callback,
|
||||
bool succeed,
|
||||
const SkBitmap& bitmap) {
|
||||
const SkBitmap& bitmap,
|
||||
content::ReadbackResponse response) {
|
||||
SkAutoLockPixels screen_capture_lock(bitmap);
|
||||
std::vector<unsigned char> data;
|
||||
if (succeed)
|
||||
if (response == content::READBACK_SUCCESS)
|
||||
gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, true, &data);
|
||||
callback.Run(data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue