mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1146214 - Remove unused set fence functions. r=nical
This commit is contained in:
parent
68e4b54c22
commit
9e06a72495
@ -229,14 +229,6 @@ public:
|
||||
virtual const nsIntRegion& GetValidLowPrecisionRegion() const = 0;
|
||||
|
||||
virtual const nsIntRegion& GetValidRegion() const = 0;
|
||||
|
||||
#if defined(MOZ_WIDGET_GONK) && ANDROID_VERSION >= 17
|
||||
/**
|
||||
* Store a fence that will signal when the current buffer is no longer being read.
|
||||
* Similar to android's GLConsumer::setReleaseFence()
|
||||
*/
|
||||
virtual void SetReleaseFence(const android::sp<android::Fence>& aReleaseFence) = 0;
|
||||
#endif
|
||||
};
|
||||
|
||||
// Normal integer division truncates towards zero,
|
||||
|
@ -225,23 +225,6 @@ TiledLayerBufferComposite::SetCompositor(Compositor* aCompositor)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(MOZ_WIDGET_GONK) && ANDROID_VERSION >= 17
|
||||
void
|
||||
TiledLayerBufferComposite::SetReleaseFence(const android::sp<android::Fence>& aReleaseFence)
|
||||
{
|
||||
for (size_t i = 0; i < mRetainedTiles.Length(); i++) {
|
||||
if (!mRetainedTiles[i].mTextureHost) {
|
||||
continue;
|
||||
}
|
||||
TextureHostOGL* texture = mRetainedTiles[i].mTextureHost->AsHostOGL();
|
||||
if (!texture) {
|
||||
continue;
|
||||
}
|
||||
texture->SetReleaseFence(new android::Fence(aReleaseFence->dup()));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
TiledContentHost::TiledContentHost(const TextureInfo& aTextureInfo)
|
||||
: ContentHost(aTextureInfo)
|
||||
, mTiledBuffer(TiledLayerBufferComposite())
|
||||
|
@ -158,10 +158,6 @@ public:
|
||||
|
||||
bool IsValid() const { return mIsValid; }
|
||||
|
||||
#if defined(MOZ_WIDGET_GONK) && ANDROID_VERSION >= 17
|
||||
virtual void SetReleaseFence(const android::sp<android::Fence>& aReleaseFence);
|
||||
#endif
|
||||
|
||||
// Recycle callback for TextureHost.
|
||||
// Used when TiledContentClient is present in client side.
|
||||
static void RecycleCallback(TextureHost* textureHost, void* aClosure);
|
||||
@ -275,18 +271,6 @@ public:
|
||||
|
||||
virtual void PrintInfo(std::stringstream& aStream, const char* aPrefix) override;
|
||||
|
||||
#if defined(MOZ_WIDGET_GONK) && ANDROID_VERSION >= 17
|
||||
/**
|
||||
* Store a fence that will signal when the current buffer is no longer being read.
|
||||
* Similar to android's GLConsumer::setReleaseFence()
|
||||
*/
|
||||
virtual void SetReleaseFence(const android::sp<android::Fence>& aReleaseFence)
|
||||
{
|
||||
mTiledBuffer.SetReleaseFence(aReleaseFence);
|
||||
mLowPrecisionTiledBuffer.SetReleaseFence(aReleaseFence);
|
||||
}
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
||||
void RenderLayerBuffer(TiledLayerBufferComposite& aLayerBuffer,
|
||||
|
Loading…
Reference in New Issue
Block a user