mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix debug assertion in CefImageImpl::AddBitmap.
This commit is contained in:
@ -329,7 +329,12 @@ gfx::ImageSkia CefImageImpl::GetForced1xScaleRepresentation(
|
|||||||
|
|
||||||
bool CefImageImpl::AddBitmap(float scale_factor,
|
bool CefImageImpl::AddBitmap(float scale_factor,
|
||||||
const SkBitmap& bitmap) {
|
const SkBitmap& bitmap) {
|
||||||
|
#if DCHECK_IS_ON()
|
||||||
|
{
|
||||||
|
SkAutoLockPixels bitmap_lock(bitmap);
|
||||||
DCHECK(bitmap.readyToDraw());
|
DCHECK(bitmap.readyToDraw());
|
||||||
|
}
|
||||||
|
#endif
|
||||||
DCHECK(bitmap.colorType() == kBGRA_8888_SkColorType ||
|
DCHECK(bitmap.colorType() == kBGRA_8888_SkColorType ||
|
||||||
bitmap.colorType() == kRGBA_8888_SkColorType);
|
bitmap.colorType() == kRGBA_8888_SkColorType);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user