зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1158120 - Replace gfxIntSize by mozilla::gfx::IntSize in gfx/layers. r=nical
This commit is contained in:
Родитель
d8f41cff5d
Коммит
7cade29011
|
@ -105,8 +105,7 @@ TextureClientMemoryDIB::AllocateForSurface(gfx::IntSize aSize, TextureAllocation
|
|||
MOZ_ASSERT(!IsAllocated());
|
||||
mSize = aSize;
|
||||
|
||||
mSurface = new gfxWindowsSurface(gfxIntSize(aSize.width, aSize.height),
|
||||
SurfaceFormatToImageFormat(mFormat));
|
||||
mSurface = new gfxWindowsSurface(aSize, SurfaceFormatToImageFormat(mFormat));
|
||||
if (!mSurface || mSurface->CairoStatus())
|
||||
{
|
||||
NS_WARNING("Could not create surface");
|
||||
|
|
|
@ -773,8 +773,8 @@ Transform3D(RefPtr<SourceSurface> aSource,
|
|||
|
||||
// Create a surface the size of the transformed object.
|
||||
nsRefPtr<gfxASurface> dest = aDest->CurrentSurface();
|
||||
nsRefPtr<gfxImageSurface> destImage = new gfxImageSurface(gfxIntSize(aDestRect.width,
|
||||
aDestRect.height),
|
||||
nsRefPtr<gfxImageSurface> destImage = new gfxImageSurface(IntSize(aDestRect.width,
|
||||
aDestRect.height),
|
||||
gfxImageFormat::ARGB32);
|
||||
gfxPoint offset = aDestRect.TopLeft();
|
||||
|
||||
|
|
|
@ -293,7 +293,7 @@ ContentClientRemoteBuffer::BuildTextureClients(SurfaceFormat aFormat,
|
|||
DestroyBuffers();
|
||||
|
||||
mSurfaceFormat = aFormat;
|
||||
mSize = gfx::IntSize(aRect.width, aRect.height);
|
||||
mSize = IntSize(aRect.width, aRect.height);
|
||||
mTextureFlags = TextureFlagsForRotatedContentBufferFlags(aFlags);
|
||||
|
||||
if (aFlags & BUFFER_COMPONENT_ALPHA) {
|
||||
|
|
|
@ -126,8 +126,7 @@ CompositorOGL::CreateContext()
|
|||
caps.bpp16 = gfxPlatform::GetPlatform()->GetOffscreenFormat() == gfxImageFormat::RGB16_565;
|
||||
|
||||
bool requireCompatProfile = true;
|
||||
context = GLContextProvider::CreateOffscreen(gfxIntSize(mSurfaceSize.width,
|
||||
mSurfaceSize.height),
|
||||
context = GLContextProvider::CreateOffscreen(mSurfaceSize,
|
||||
caps, requireCompatProfile);
|
||||
}
|
||||
|
||||
|
@ -1342,7 +1341,7 @@ CompositorOGL::EndFrameForExternalComposition(const gfx::Matrix& aTransform)
|
|||
}
|
||||
|
||||
void
|
||||
CompositorOGL::SetDestinationSurfaceSize(const gfx::IntSize& aSize)
|
||||
CompositorOGL::SetDestinationSurfaceSize(const IntSize& aSize)
|
||||
{
|
||||
mSurfaceSize.width = aSize.width;
|
||||
mSurfaceSize.height = aSize.height;
|
||||
|
|
Загрузка…
Ссылка в новой задаче