fixes buffer size and adds pixel size to paint event

This commit is contained in:
gellert 2016-08-03 13:28:19 +02:00
parent 230943d425
commit 50485a28d3
7 changed files with 20 additions and 8 deletions

View file

@ -87,7 +87,7 @@ void OffScreenOutputDevice::OnPaint(const gfx::Rect& damage_rect) {
SkAutoLockPixels bitmap_pixels_lock(*bitmap_);
callback_.Run(rect, gfx::Size(bitmap_->width(), bitmap_->height()),
bitmap_->getPixels());
bitmap_->bytesPerPixel(), bitmap_->getPixels());
}
} // namespace atom