Bug 893301. Rename GetTextureHost to GetAsTextureHost. r=nical

This commit is contained in:
Nicholas Cameron 2013-11-28 10:16:33 +13:00
parent 98b1d13872
commit fca47643ea
5 changed files with 8 additions and 8 deletions

View File

@ -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();
}

View File

@ -211,7 +211,7 @@ public:
/**
* Returns the front buffer.
*/
virtual TextureHost* GetTextureHost() { return nullptr; }
virtual TextureHost* GetAsTextureHost() { return nullptr; }
virtual LayerRenderState GetRenderState() = 0;

View File

@ -52,7 +52,7 @@ ImageHost::RemoveTextureHost(uint64_t aTextureID)
}
TextureHost*
ImageHost::GetTextureHost()
ImageHost::GetAsTextureHost()
{
return mFrontBuffer;
}

View File

@ -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
{

View File

@ -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) {