fixes buffer size and adds pixel size to paint event
This commit is contained in:
parent
230943d425
commit
50485a28d3
7 changed files with 20 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue