mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1264142 - Add ImageLayerComposite::GetFullyRenderedRegion() r=mattwoodrow
This commit is contained in:
parent
8897dad51c
commit
91dd2137b1
@ -168,6 +168,23 @@ ImageLayerComposite::IsOpaque()
|
||||
return false;
|
||||
}
|
||||
|
||||
nsIntRegion
|
||||
ImageLayerComposite::GetFullyRenderedRegion()
|
||||
{
|
||||
if (!mImageHost ||
|
||||
!mImageHost->IsAttached()) {
|
||||
return GetShadowVisibleRegion().ToUnknownRegion();
|
||||
}
|
||||
|
||||
if (mScaleMode == ScaleMode::STRETCH) {
|
||||
nsIntRegion shadowVisibleRegion;
|
||||
shadowVisibleRegion.And(GetShadowVisibleRegion().ToUnknownRegion(), nsIntRegion(gfx::IntRect(0, 0, mScaleToSize.width, mScaleToSize.height)));
|
||||
return shadowVisibleRegion;
|
||||
}
|
||||
|
||||
return GetShadowVisibleRegion().ToUnknownRegion();
|
||||
}
|
||||
|
||||
CompositableHost*
|
||||
ImageLayerComposite::GetCompositableHost()
|
||||
{
|
||||
|
@ -61,6 +61,8 @@ public:
|
||||
|
||||
virtual bool IsOpaque() override;
|
||||
|
||||
virtual nsIntRegion GetFullyRenderedRegion() override;
|
||||
|
||||
protected:
|
||||
virtual void PrintInfo(std::stringstream& aStream, const char* aPrefix) override;
|
||||
|
||||
|
@ -527,7 +527,7 @@ public:
|
||||
* While progressive drawing is in progress this region will be
|
||||
* a subset of the shadow visible region.
|
||||
*/
|
||||
nsIntRegion GetFullyRenderedRegion();
|
||||
virtual nsIntRegion GetFullyRenderedRegion();
|
||||
|
||||
protected:
|
||||
gfx::Matrix4x4 mShadowTransform;
|
||||
|
Loading…
Reference in New Issue
Block a user