mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1013784 - Implement ClearRect for BasicCompositor. r=Cwiiis
This commit is contained in:
parent
212cd95ad4
commit
37b1f0f705
@ -311,7 +311,7 @@ public:
|
||||
/*
|
||||
* Clear aRect on current render target.
|
||||
*/
|
||||
virtual void ClearRect(const gfx::Rect& aRect) { }
|
||||
virtual void ClearRect(const gfx::Rect& aRect) = 0;
|
||||
|
||||
/**
|
||||
* Start a new frame.
|
||||
|
@ -373,6 +373,12 @@ BasicCompositor::DrawQuad(const gfx::Rect& aRect,
|
||||
buffer->PopClip();
|
||||
}
|
||||
|
||||
void
|
||||
BasicCompositor::ClearRect(const gfx::Rect& aRect)
|
||||
{
|
||||
mRenderTarget->mDrawTarget->ClearRect(aRect);
|
||||
}
|
||||
|
||||
void
|
||||
BasicCompositor::BeginFrame(const nsIntRegion& aInvalidRegion,
|
||||
const gfx::Rect *aClipRectIn,
|
||||
|
@ -84,6 +84,8 @@ public:
|
||||
gfx::Float aOpacity,
|
||||
const gfx::Matrix4x4 &aTransform) MOZ_OVERRIDE;
|
||||
|
||||
virtual void ClearRect(const gfx::Rect& aRect) MOZ_OVERRIDE;
|
||||
|
||||
virtual void BeginFrame(const nsIntRegion& aInvalidRegion,
|
||||
const gfx::Rect *aClipRectIn,
|
||||
const gfx::Matrix& aTransform,
|
||||
|
Loading…
Reference in New Issue
Block a user