mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 893301. Rename GetTextureHost to GetAsTextureHost. r=nical
This commit is contained in:
parent
98b1d13872
commit
fca47643ea
@ -132,7 +132,7 @@ CompositableHost::AddMaskEffect(EffectChain& aEffects,
|
||||
oldHost->Lock();
|
||||
source = oldHost;
|
||||
} else {
|
||||
RefPtr<TextureHost> host = GetTextureHost();
|
||||
RefPtr<TextureHost> host = GetAsTextureHost();
|
||||
if (host) {
|
||||
host->Lock();
|
||||
source = host->GetTextureSources();
|
||||
@ -159,7 +159,7 @@ CompositableHost::RemoveMaskEffect()
|
||||
if (oldHost) {
|
||||
oldHost->Unlock();
|
||||
} else {
|
||||
RefPtr<TextureHost> host = GetTextureHost();
|
||||
RefPtr<TextureHost> host = GetAsTextureHost();
|
||||
if (host) {
|
||||
host->Unlock();
|
||||
}
|
||||
|
@ -211,7 +211,7 @@ public:
|
||||
/**
|
||||
* Returns the front buffer.
|
||||
*/
|
||||
virtual TextureHost* GetTextureHost() { return nullptr; }
|
||||
virtual TextureHost* GetAsTextureHost() { return nullptr; }
|
||||
|
||||
virtual LayerRenderState GetRenderState() = 0;
|
||||
|
||||
|
@ -52,7 +52,7 @@ ImageHost::RemoveTextureHost(uint64_t aTextureID)
|
||||
}
|
||||
|
||||
TextureHost*
|
||||
ImageHost::GetTextureHost()
|
||||
ImageHost::GetAsTextureHost()
|
||||
{
|
||||
return mFrontBuffer;
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ public:
|
||||
|
||||
virtual void RemoveTextureHost(uint64_t aTextureID) MOZ_OVERRIDE;
|
||||
|
||||
virtual TextureHost* GetTextureHost() MOZ_OVERRIDE;
|
||||
virtual TextureHost* GetAsTextureHost() MOZ_OVERRIDE;
|
||||
|
||||
virtual void SetPictureRect(const nsIntRect& aPictureRect) MOZ_OVERRIDE
|
||||
{
|
||||
|
@ -116,10 +116,10 @@ ImageLayerComposite::ComputeEffectiveTransforms(const gfx3DMatrix& aTransformToS
|
||||
gfxRect sourceRect(0, 0, 0, 0);
|
||||
if (mImageHost &&
|
||||
mImageHost->IsAttached() &&
|
||||
(mImageHost->GetDeprecatedTextureHost() || mImageHost->GetTextureHost())) {
|
||||
(mImageHost->GetDeprecatedTextureHost() || mImageHost->GetAsTextureHost())) {
|
||||
IntSize size =
|
||||
mImageHost->GetTextureHost() ? mImageHost->GetTextureHost()->GetSize()
|
||||
: mImageHost->GetDeprecatedTextureHost()->GetSize();
|
||||
mImageHost->GetAsTextureHost() ? mImageHost->GetAsTextureHost()->GetSize()
|
||||
: mImageHost->GetDeprecatedTextureHost()->GetSize();
|
||||
sourceRect.SizeTo(size.width, size.height);
|
||||
if (mScaleMode != SCALE_NONE &&
|
||||
sourceRect.width != 0.0 && sourceRect.height != 0.0) {
|
||||
|
Loading…
Reference in New Issue
Block a user