mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 959154 - Part 4: Deprecate thebes version of GLTextureImage::DirectUpdate. r=nical
This commit is contained in:
parent
78c073378b
commit
7969de45f2
@ -97,7 +97,7 @@ TextureImage::UpdateFromDataSource(gfx::DataSourceSurface *aSurface,
|
|||||||
ThebesIntSize(aSurface->GetSize()),
|
ThebesIntSize(aSurface->GetSize()),
|
||||||
aSurface->Stride(),
|
aSurface->Stride(),
|
||||||
SurfaceFormatToImageFormat(aSurface->GetFormat()));
|
SurfaceFormatToImageFormat(aSurface->GetFormat()));
|
||||||
return DirectUpdate(thebesSurf, destRegion, thebesSrcPoint);
|
return DeprecatedDirectUpdate(thebesSurf, destRegion, thebesSrcPoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
gfx::IntRect TextureImage::GetTileRect() {
|
gfx::IntRect TextureImage::GetTileRect() {
|
||||||
@ -225,7 +225,7 @@ BasicTextureImage::FinishedSurfaceUpload()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
BasicTextureImage::DirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom /* = nsIntPoint(0, 0) */)
|
BasicTextureImage::DeprecatedDirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom /* = nsIntPoint(0, 0) */)
|
||||||
{
|
{
|
||||||
nsIntRect bounds = aRegion.GetBounds();
|
nsIntRect bounds = aRegion.GetBounds();
|
||||||
nsIntRegion region;
|
nsIntRegion region;
|
||||||
@ -360,7 +360,7 @@ TiledTextureImage::~TiledTextureImage()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
TiledTextureImage::DirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom /* = nsIntPoint(0, 0) */)
|
TiledTextureImage::DeprecatedDirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom /* = nsIntPoint(0, 0) */)
|
||||||
{
|
{
|
||||||
if (mSize.width == 0 || mSize.height == 0) {
|
if (mSize.width == 0 || mSize.height == 0) {
|
||||||
return true;
|
return true;
|
||||||
@ -398,7 +398,7 @@ TiledTextureImage::DirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion,
|
|||||||
}
|
}
|
||||||
|
|
||||||
result &= mImages[mCurrentImage]->
|
result &= mImages[mCurrentImage]->
|
||||||
DirectUpdate(aSurf, tileRegion, aFrom + nsIntPoint(xPos, yPos));
|
DeprecatedDirectUpdate(aSurf, tileRegion, aFrom + nsIntPoint(xPos, yPos));
|
||||||
|
|
||||||
if (mCurrentImage == mImages.Length() - 1) {
|
if (mCurrentImage == mImages.Length() - 1) {
|
||||||
// We know we're done, but we still need to ensure that the callback
|
// We know we're done, but we still need to ensure that the callback
|
||||||
|
@ -176,7 +176,7 @@ public:
|
|||||||
* aRegion - the region in this image to update
|
* aRegion - the region in this image to update
|
||||||
* aFrom - offset in the source to update from
|
* aFrom - offset in the source to update from
|
||||||
*/
|
*/
|
||||||
virtual bool DirectUpdate(gfxASurface *aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom = nsIntPoint(0,0)) = 0;
|
virtual bool DeprecatedDirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom = nsIntPoint(0,0)) = 0;
|
||||||
// Moz2D equivalent
|
// Moz2D equivalent
|
||||||
bool UpdateFromDataSource(gfx::DataSourceSurface *aSurf,
|
bool UpdateFromDataSource(gfx::DataSourceSurface *aSurf,
|
||||||
const nsIntRegion* aDstRegion = nullptr,
|
const nsIntRegion* aDstRegion = nullptr,
|
||||||
@ -282,7 +282,7 @@ public:
|
|||||||
virtual gfxASurface* BeginUpdate(nsIntRegion& aRegion);
|
virtual gfxASurface* BeginUpdate(nsIntRegion& aRegion);
|
||||||
virtual void GetUpdateRegion(nsIntRegion& aForRegion);
|
virtual void GetUpdateRegion(nsIntRegion& aForRegion);
|
||||||
virtual void EndUpdate();
|
virtual void EndUpdate();
|
||||||
virtual bool DirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom = nsIntPoint(0,0));
|
virtual bool DeprecatedDirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom = nsIntPoint(0,0));
|
||||||
virtual GLuint GetTextureID() { return mTexture; }
|
virtual GLuint GetTextureID() { return mTexture; }
|
||||||
// Returns a surface to draw into
|
// Returns a surface to draw into
|
||||||
virtual already_AddRefed<gfxASurface>
|
virtual already_AddRefed<gfxASurface>
|
||||||
@ -342,7 +342,7 @@ public:
|
|||||||
virtual GLuint GetTextureID() {
|
virtual GLuint GetTextureID() {
|
||||||
return mImages[mCurrentImage]->GetTextureID();
|
return mImages[mCurrentImage]->GetTextureID();
|
||||||
}
|
}
|
||||||
virtual bool DirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom = nsIntPoint(0,0));
|
virtual bool DeprecatedDirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom = nsIntPoint(0,0));
|
||||||
virtual bool InUpdate() const { return mInUpdate; }
|
virtual bool InUpdate() const { return mInUpdate; }
|
||||||
virtual void BindTexture(GLenum);
|
virtual void BindTexture(GLenum);
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ TextureImageEGL::EndUpdate()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
TextureImageEGL::DirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom /* = nsIntPoint(0, 0) */)
|
TextureImageEGL::DeprecatedDirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom /* = nsIntPoint(0, 0) */)
|
||||||
{
|
{
|
||||||
nsIntRect bounds = aRegion.GetBounds();
|
nsIntRect bounds = aRegion.GetBounds();
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ public:
|
|||||||
|
|
||||||
virtual void EndUpdate();
|
virtual void EndUpdate();
|
||||||
|
|
||||||
virtual bool DirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom /* = nsIntPoint(0, 0) */);
|
virtual bool DeprecatedDirectUpdate(gfxASurface* aSurf, const nsIntRegion& aRegion, const nsIntPoint& aFrom /* = nsIntPoint(0, 0) */);
|
||||||
|
|
||||||
virtual void BindTexture(GLenum aTextureUnit);
|
virtual void BindTexture(GLenum aTextureUnit);
|
||||||
|
|
||||||
|
@ -744,7 +744,7 @@ TextureImageDeprecatedTextureHostOGL::UpdateImpl(const SurfaceDescriptor& aImage
|
|||||||
if (aOffset) {
|
if (aOffset) {
|
||||||
offset = *aOffset;
|
offset = *aOffset;
|
||||||
}
|
}
|
||||||
mTexture->DirectUpdate(surf.Get(), updateRegion, offset);
|
mTexture->DeprecatedDirectUpdate(surf.Get(), updateRegion, offset);
|
||||||
mFormat = mTexture->GetTextureFormat();
|
mFormat = mTexture->GetTextureFormat();
|
||||||
|
|
||||||
if (mTexture->InUpdate()) {
|
if (mTexture->InUpdate()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user