зеркало из https://github.com/mozilla/gecko-dev.git
Bug 846360 - Fix build error on older clang versions on mac. r=jrmuizel
This commit is contained in:
Родитель
646b0e56b9
Коммит
66e9b8f518
|
@ -387,8 +387,8 @@ gfxPlatformMac::CreateThebesSurfaceAliasForDrawTarget_hack(mozilla::gfx::DrawTar
|
|||
size_t stride = CGBitmapContextGetBytesPerRow(cg);
|
||||
gfxIntSize size(aTarget->GetSize().width, aTarget->GetSize().height);
|
||||
nsRefPtr<gfxImageSurface> imageSurface = new gfxImageSurface(data, size, stride, bpp == 2
|
||||
? gfxImageFormat::ImageFormatRGB16_565
|
||||
: gfxImageFormat::ImageFormatARGB32);
|
||||
? gfxASurface::ImageFormatRGB16_565
|
||||
: gfxASurface::ImageFormatARGB32);
|
||||
// Here we should return a gfxQuartzImageSurface but quartz will assumes that image surfaces
|
||||
// don't change which wont create a proper alias to the draw target, therefore we have to
|
||||
// return a plain image surface.
|
||||
|
|
Загрузка…
Ссылка в новой задаче