зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1013784 - Implement ClearRect for BasicCompositor. r=Cwiiis
This commit is contained in:
Родитель
405762e159
Коммит
04cefd196a
|
@ -311,7 +311,7 @@ public:
|
||||||
/*
|
/*
|
||||||
* Clear aRect on current render target.
|
* 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.
|
* Start a new frame.
|
||||||
|
|
|
@ -373,6 +373,12 @@ BasicCompositor::DrawQuad(const gfx::Rect& aRect,
|
||||||
buffer->PopClip();
|
buffer->PopClip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
BasicCompositor::ClearRect(const gfx::Rect& aRect)
|
||||||
|
{
|
||||||
|
mRenderTarget->mDrawTarget->ClearRect(aRect);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
BasicCompositor::BeginFrame(const nsIntRegion& aInvalidRegion,
|
BasicCompositor::BeginFrame(const nsIntRegion& aInvalidRegion,
|
||||||
const gfx::Rect *aClipRectIn,
|
const gfx::Rect *aClipRectIn,
|
||||||
|
|
|
@ -84,6 +84,8 @@ public:
|
||||||
gfx::Float aOpacity,
|
gfx::Float aOpacity,
|
||||||
const gfx::Matrix4x4 &aTransform) MOZ_OVERRIDE;
|
const gfx::Matrix4x4 &aTransform) MOZ_OVERRIDE;
|
||||||
|
|
||||||
|
virtual void ClearRect(const gfx::Rect& aRect) MOZ_OVERRIDE;
|
||||||
|
|
||||||
virtual void BeginFrame(const nsIntRegion& aInvalidRegion,
|
virtual void BeginFrame(const nsIntRegion& aInvalidRegion,
|
||||||
const gfx::Rect *aClipRectIn,
|
const gfx::Rect *aClipRectIn,
|
||||||
const gfx::Matrix& aTransform,
|
const gfx::Matrix& aTransform,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче