2008-09-25 23:53:09 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2012-05-21 15:12:37 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2008-09-25 23:53:09 +04:00
|
|
|
|
|
|
|
#include "gfxBlur.h"
|
2013-10-08 03:15:59 +04:00
|
|
|
#include "gfxContext.h"
|
2013-10-02 08:20:47 +04:00
|
|
|
#include "gfxPlatform.h"
|
2008-09-25 23:53:09 +04:00
|
|
|
|
2011-11-18 13:19:24 +04:00
|
|
|
#include "mozilla/gfx/Blur.h"
|
2013-10-02 08:20:47 +04:00
|
|
|
#include "mozilla/gfx/2D.h"
|
2014-06-11 01:51:24 +04:00
|
|
|
#include "nsExpirationTracker.h"
|
|
|
|
#include "nsClassHashtable.h"
|
2008-09-25 23:53:09 +04:00
|
|
|
|
2014-06-11 01:51:24 +04:00
|
|
|
using namespace mozilla;
|
2011-11-18 13:19:24 +04:00
|
|
|
using namespace mozilla::gfx;
|
2008-09-25 23:53:09 +04:00
|
|
|
|
|
|
|
gfxAlphaBoxBlur::gfxAlphaBoxBlur()
|
2012-07-30 18:20:58 +04:00
|
|
|
: mBlur(nullptr)
|
2008-09-25 23:53:09 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
gfxAlphaBoxBlur::~gfxAlphaBoxBlur()
|
|
|
|
{
|
2012-09-26 13:27:40 +04:00
|
|
|
mContext = nullptr;
|
2011-11-18 13:19:24 +04:00
|
|
|
delete mBlur;
|
2008-09-25 23:53:09 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
gfxContext*
|
|
|
|
gfxAlphaBoxBlur::Init(const gfxRect& aRect,
|
2010-08-23 13:30:07 +04:00
|
|
|
const gfxIntSize& aSpreadRadius,
|
2008-12-06 21:54:36 +03:00
|
|
|
const gfxIntSize& aBlurRadius,
|
2010-04-18 07:13:10 +04:00
|
|
|
const gfxRect* aDirtyRect,
|
|
|
|
const gfxRect* aSkipRect)
|
2008-09-25 23:53:09 +04:00
|
|
|
{
|
2012-09-28 21:21:40 +04:00
|
|
|
mozilla::gfx::Rect rect(Float(aRect.x), Float(aRect.y),
|
|
|
|
Float(aRect.width), Float(aRect.height));
|
2011-11-18 13:19:24 +04:00
|
|
|
IntSize spreadRadius(aSpreadRadius.width, aSpreadRadius.height);
|
|
|
|
IntSize blurRadius(aBlurRadius.width, aBlurRadius.height);
|
2012-02-01 06:18:30 +04:00
|
|
|
nsAutoPtr<mozilla::gfx::Rect> dirtyRect;
|
2008-12-06 21:54:36 +03:00
|
|
|
if (aDirtyRect) {
|
2012-09-28 21:21:40 +04:00
|
|
|
dirtyRect = new mozilla::gfx::Rect(Float(aDirtyRect->x),
|
|
|
|
Float(aDirtyRect->y),
|
|
|
|
Float(aDirtyRect->width),
|
|
|
|
Float(aDirtyRect->height));
|
2010-04-18 07:13:10 +04:00
|
|
|
}
|
2012-02-01 06:18:30 +04:00
|
|
|
nsAutoPtr<mozilla::gfx::Rect> skipRect;
|
2011-11-17 22:01:11 +04:00
|
|
|
if (aSkipRect) {
|
2012-09-28 21:21:40 +04:00
|
|
|
skipRect = new mozilla::gfx::Rect(Float(aSkipRect->x),
|
|
|
|
Float(aSkipRect->y),
|
|
|
|
Float(aSkipRect->width),
|
|
|
|
Float(aSkipRect->height));
|
2011-11-17 22:01:11 +04:00
|
|
|
}
|
2011-11-14 08:29:28 +04:00
|
|
|
|
2011-11-18 13:19:24 +04:00
|
|
|
mBlur = new AlphaBoxBlur(rect, spreadRadius, blurRadius, dirtyRect, skipRect);
|
2013-04-19 14:13:18 +04:00
|
|
|
int32_t blurDataSize = mBlur->GetSurfaceAllocationSize();
|
|
|
|
if (blurDataSize <= 0)
|
|
|
|
return nullptr;
|
2011-11-18 13:19:24 +04:00
|
|
|
|
|
|
|
IntSize size = mBlur->GetSize();
|
2013-04-19 14:13:18 +04:00
|
|
|
|
2008-09-25 23:53:09 +04:00
|
|
|
// Make an alpha-only surface to draw on. We will play with the data after
|
|
|
|
// everything is drawn to create a blur effect.
|
2013-10-02 08:20:47 +04:00
|
|
|
mData = new unsigned char[blurDataSize];
|
|
|
|
memset(mData, 0, blurDataSize);
|
|
|
|
|
2013-12-01 06:21:03 +04:00
|
|
|
mozilla::RefPtr<DrawTarget> dt =
|
2013-10-02 08:20:47 +04:00
|
|
|
gfxPlatform::GetPlatform()->CreateDrawTargetForData(mData, size,
|
|
|
|
mBlur->GetStride(),
|
2014-01-10 23:06:16 +04:00
|
|
|
SurfaceFormat::A8);
|
2013-10-02 08:20:47 +04:00
|
|
|
if (!dt) {
|
2014-06-26 11:40:12 +04:00
|
|
|
return nullptr;
|
2013-10-02 08:20:47 +04:00
|
|
|
}
|
2008-09-25 23:53:09 +04:00
|
|
|
|
2011-11-18 13:19:24 +04:00
|
|
|
IntRect irect = mBlur->GetRect();
|
|
|
|
gfxPoint topleft(irect.TopLeft().x, irect.TopLeft().y);
|
|
|
|
|
2013-10-02 08:20:47 +04:00
|
|
|
mContext = new gfxContext(dt);
|
|
|
|
mContext->Translate(-topleft);
|
2008-09-25 23:53:09 +04:00
|
|
|
|
|
|
|
return mContext;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2014-06-11 01:51:24 +04:00
|
|
|
DrawBlur(gfxContext* aDestinationCtx,
|
|
|
|
SourceSurface* aBlur,
|
|
|
|
const IntPoint& aTopLeft,
|
|
|
|
const Rect* aDirtyRect)
|
2008-09-25 23:53:09 +04:00
|
|
|
{
|
2013-10-02 08:20:47 +04:00
|
|
|
DrawTarget *dest = aDestinationCtx->GetDrawTarget();
|
|
|
|
|
|
|
|
nsRefPtr<gfxPattern> thebesPat = aDestinationCtx->GetPattern();
|
|
|
|
Pattern* pat = thebesPat->GetPattern(dest, nullptr);
|
2008-09-25 23:53:09 +04:00
|
|
|
|
2013-10-02 08:20:47 +04:00
|
|
|
Matrix oldTransform = dest->GetTransform();
|
|
|
|
Matrix newTransform = oldTransform;
|
2014-06-11 01:51:24 +04:00
|
|
|
newTransform.Translate(aTopLeft.x, aTopLeft.y);
|
2008-09-25 23:53:09 +04:00
|
|
|
|
2008-12-06 21:54:36 +03:00
|
|
|
// Avoid a semi-expensive clip operation if we can, otherwise
|
|
|
|
// clip to the dirty rect
|
2014-06-11 01:51:24 +04:00
|
|
|
if (aDirtyRect) {
|
|
|
|
dest->PushClipRect(*aDirtyRect);
|
2013-10-02 08:20:47 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
dest->SetTransform(newTransform);
|
2014-06-11 01:51:24 +04:00
|
|
|
dest->MaskSurface(*pat, aBlur, Point(0, 0));
|
2013-10-02 08:20:47 +04:00
|
|
|
dest->SetTransform(oldTransform);
|
|
|
|
|
2014-06-11 01:51:24 +04:00
|
|
|
if (aDirtyRect) {
|
2013-10-02 08:20:47 +04:00
|
|
|
dest->PopClip();
|
2008-12-06 21:54:36 +03:00
|
|
|
}
|
2008-09-25 23:53:09 +04:00
|
|
|
}
|
|
|
|
|
2014-06-11 01:51:24 +04:00
|
|
|
TemporaryRef<SourceSurface>
|
|
|
|
gfxAlphaBoxBlur::DoBlur(DrawTarget* aDT, IntPoint* aTopLeft)
|
|
|
|
{
|
|
|
|
mBlur->Blur(mData);
|
|
|
|
|
|
|
|
*aTopLeft = mBlur->GetRect().TopLeft();
|
|
|
|
|
|
|
|
return aDT->CreateSourceSurfaceFromData(mData,
|
|
|
|
mBlur->GetSize(),
|
|
|
|
mBlur->GetStride(),
|
|
|
|
SurfaceFormat::A8);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gfxAlphaBoxBlur::Paint(gfxContext* aDestinationCtx)
|
|
|
|
{
|
|
|
|
if (!mContext)
|
|
|
|
return;
|
|
|
|
|
|
|
|
DrawTarget *dest = aDestinationCtx->GetDrawTarget();
|
|
|
|
if (!dest) {
|
|
|
|
NS_WARNING("Blurring not supported for Thebes contexts!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Rect* dirtyRect = mBlur->GetDirtyRect();
|
|
|
|
|
|
|
|
IntPoint topLeft;
|
|
|
|
RefPtr<SourceSurface> mask = DoBlur(dest, &topLeft);
|
|
|
|
if (!mask) {
|
|
|
|
NS_ERROR("Failed to create mask!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
DrawBlur(aDestinationCtx, mask, topLeft, dirtyRect);
|
|
|
|
}
|
|
|
|
|
2008-09-25 23:53:09 +04:00
|
|
|
gfxIntSize gfxAlphaBoxBlur::CalculateBlurRadius(const gfxPoint& aStd)
|
|
|
|
{
|
2012-09-28 21:21:40 +04:00
|
|
|
mozilla::gfx::Point std(Float(aStd.x), Float(aStd.y));
|
2011-11-18 13:19:24 +04:00
|
|
|
IntSize size = AlphaBoxBlur::CalculateBlurRadius(std);
|
|
|
|
return gfxIntSize(size.width, size.height);
|
2008-09-25 23:53:09 +04:00
|
|
|
}
|
2013-11-26 03:08:29 +04:00
|
|
|
|
2014-06-11 01:51:24 +04:00
|
|
|
struct BlurCacheKey : public PLDHashEntryHdr {
|
|
|
|
typedef const BlurCacheKey& KeyType;
|
|
|
|
typedef const BlurCacheKey* KeyTypePointer;
|
|
|
|
enum { ALLOW_MEMMOVE = true };
|
|
|
|
|
|
|
|
gfxRect mRect;
|
|
|
|
gfxIntSize mBlurRadius;
|
|
|
|
gfxRect mSkipRect;
|
|
|
|
BackendType mBackend;
|
|
|
|
|
|
|
|
BlurCacheKey(const gfxRect& aRect, const gfxIntSize &aBlurRadius, const gfxRect& aSkipRect, BackendType aBackend)
|
|
|
|
: mRect(aRect)
|
|
|
|
, mBlurRadius(aBlurRadius)
|
|
|
|
, mSkipRect(aSkipRect)
|
|
|
|
, mBackend(aBackend)
|
|
|
|
{ }
|
|
|
|
|
|
|
|
BlurCacheKey(const BlurCacheKey* aOther)
|
|
|
|
: mRect(aOther->mRect)
|
|
|
|
, mBlurRadius(aOther->mBlurRadius)
|
|
|
|
, mSkipRect(aOther->mSkipRect)
|
|
|
|
, mBackend(aOther->mBackend)
|
|
|
|
{ }
|
|
|
|
|
|
|
|
static PLDHashNumber
|
|
|
|
HashKey(const KeyTypePointer aKey)
|
|
|
|
{
|
|
|
|
PLDHashNumber hash = HashBytes(&aKey->mRect.x, 4 * sizeof(gfxFloat));
|
|
|
|
hash = AddToHash(hash, aKey->mBlurRadius.width, aKey->mBlurRadius.height);
|
|
|
|
hash = AddToHash(hash, HashBytes(&aKey->mSkipRect.x, 4 * sizeof(gfxFloat)));
|
|
|
|
hash = AddToHash(hash, (uint32_t)aKey->mBackend);
|
|
|
|
return hash;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool KeyEquals(KeyTypePointer aKey) const
|
|
|
|
{
|
|
|
|
if (aKey->mRect.IsEqualInterior(mRect) &&
|
|
|
|
aKey->mBlurRadius == mBlurRadius &&
|
|
|
|
aKey->mSkipRect.IsEqualInterior(mSkipRect) &&
|
|
|
|
aKey->mBackend == mBackend) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
static KeyTypePointer KeyToPointer(KeyType aKey)
|
|
|
|
{
|
|
|
|
return &aKey;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class is what is cached. It need to be allocated in an object separated
|
|
|
|
* to the cache entry to be able to be tracked by the nsExpirationTracker.
|
|
|
|
* */
|
|
|
|
struct BlurCacheData {
|
|
|
|
BlurCacheData(SourceSurface* aBlur, const IntPoint& aTopLeft, const gfxRect& aDirtyRect, const BlurCacheKey& aKey)
|
|
|
|
: mBlur(aBlur)
|
|
|
|
, mTopLeft(aTopLeft)
|
|
|
|
, mDirtyRect(aDirtyRect)
|
|
|
|
, mKey(aKey)
|
|
|
|
{}
|
|
|
|
|
|
|
|
BlurCacheData(const BlurCacheData& aOther)
|
|
|
|
: mBlur(aOther.mBlur)
|
|
|
|
, mTopLeft(aOther.mTopLeft)
|
|
|
|
, mDirtyRect(aOther.mDirtyRect)
|
|
|
|
, mKey(aOther.mKey)
|
|
|
|
{ }
|
|
|
|
|
|
|
|
nsExpirationState *GetExpirationState() {
|
|
|
|
return &mExpirationState;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsExpirationState mExpirationState;
|
|
|
|
RefPtr<SourceSurface> mBlur;
|
|
|
|
IntPoint mTopLeft;
|
|
|
|
gfxRect mDirtyRect;
|
|
|
|
BlurCacheKey mKey;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class implements a cache with no maximum size, that retains the
|
|
|
|
* SourceSurfaces used to draw the blurs.
|
|
|
|
*
|
|
|
|
* An entry stays in the cache as long as it is used often.
|
|
|
|
*/
|
|
|
|
class BlurCache MOZ_FINAL : public nsExpirationTracker<BlurCacheData,4>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
BlurCache()
|
|
|
|
: nsExpirationTracker<BlurCacheData, 4>(GENERATION_MS)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void NotifyExpired(BlurCacheData* aObject)
|
|
|
|
{
|
|
|
|
RemoveObject(aObject);
|
|
|
|
mHashEntries.Remove(aObject->mKey);
|
|
|
|
}
|
|
|
|
|
|
|
|
BlurCacheData* Lookup(const gfxRect& aRect,
|
|
|
|
const gfxIntSize& aBlurRadius,
|
|
|
|
const gfxRect& aSkipRect,
|
|
|
|
BackendType aBackendType,
|
|
|
|
const gfxRect* aDirtyRect)
|
|
|
|
{
|
|
|
|
BlurCacheData* blur =
|
|
|
|
mHashEntries.Get(BlurCacheKey(aRect, aBlurRadius, aSkipRect, aBackendType));
|
|
|
|
|
|
|
|
if (blur) {
|
|
|
|
if (aDirtyRect && !blur->mDirtyRect.Contains(*aDirtyRect)) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
MarkUsed(blur);
|
|
|
|
}
|
|
|
|
|
|
|
|
return blur;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Returns true if we successfully register the blur in the cache, false
|
|
|
|
// otherwise.
|
|
|
|
bool RegisterEntry(BlurCacheData* aValue)
|
|
|
|
{
|
|
|
|
nsresult rv = AddObject(aValue);
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
// We are OOM, and we cannot track this object. We don't want stall
|
|
|
|
// entries in the hash table (since the expiration tracker is responsible
|
|
|
|
// for removing the cache entries), so we avoid putting that entry in the
|
|
|
|
// table, which is a good things considering we are short on memory
|
|
|
|
// anyway, we probably don't want to retain things.
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
mHashEntries.Put(aValue->mKey, aValue);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static const uint32_t GENERATION_MS = 1000;
|
|
|
|
/**
|
|
|
|
* FIXME use nsTHashtable to avoid duplicating the BlurCacheKey.
|
|
|
|
* https://bugzilla.mozilla.org/show_bug.cgi?id=761393#c47
|
|
|
|
*/
|
|
|
|
nsClassHashtable<BlurCacheKey, BlurCacheData> mHashEntries;
|
|
|
|
};
|
|
|
|
|
|
|
|
static BlurCache* gBlurCache = nullptr;
|
|
|
|
|
|
|
|
SourceSurface*
|
|
|
|
GetCachedBlur(DrawTarget *aDT,
|
|
|
|
const gfxRect& aRect,
|
|
|
|
const gfxIntSize& aBlurRadius,
|
|
|
|
const gfxRect& aSkipRect,
|
|
|
|
const gfxRect& aDirtyRect,
|
|
|
|
IntPoint* aTopLeft)
|
|
|
|
{
|
|
|
|
if (!gBlurCache) {
|
|
|
|
gBlurCache = new BlurCache();
|
|
|
|
}
|
2014-06-20 00:35:33 +04:00
|
|
|
BlurCacheData* cached = gBlurCache->Lookup(aRect, aBlurRadius, aSkipRect,
|
|
|
|
aDT->GetBackendType(),
|
|
|
|
&aDirtyRect);
|
2014-06-11 01:51:24 +04:00
|
|
|
if (cached) {
|
|
|
|
*aTopLeft = cached->mTopLeft;
|
|
|
|
return cached->mBlur;
|
|
|
|
}
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
CacheBlur(DrawTarget *aDT,
|
|
|
|
const gfxRect& aRect,
|
|
|
|
const gfxIntSize& aBlurRadius,
|
|
|
|
const gfxRect& aSkipRect,
|
|
|
|
SourceSurface* aBlur,
|
|
|
|
const IntPoint& aTopLeft,
|
|
|
|
const gfxRect& aDirtyRect)
|
|
|
|
{
|
|
|
|
// If we already had a cached value with this key, but an incorrect dirty region then just update
|
|
|
|
// the existing entry
|
2014-06-20 00:35:33 +04:00
|
|
|
if (BlurCacheData* cached = gBlurCache->Lookup(aRect, aBlurRadius, aSkipRect,
|
|
|
|
aDT->GetBackendType(),
|
|
|
|
nullptr)) {
|
2014-06-11 01:51:24 +04:00
|
|
|
cached->mBlur = aBlur;
|
|
|
|
cached->mTopLeft = aTopLeft;
|
|
|
|
cached->mDirtyRect = aDirtyRect;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2014-06-20 00:35:33 +04:00
|
|
|
BlurCacheKey key(aRect, aBlurRadius, aSkipRect, aDT->GetBackendType());
|
2014-06-11 01:51:24 +04:00
|
|
|
BlurCacheData* data = new BlurCacheData(aBlur, aTopLeft, aDirtyRect, key);
|
|
|
|
if (!gBlurCache->RegisterEntry(data)) {
|
|
|
|
delete data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gfxAlphaBoxBlur::ShutdownBlurCache()
|
|
|
|
{
|
|
|
|
delete gBlurCache;
|
|
|
|
gBlurCache = nullptr;
|
|
|
|
}
|
|
|
|
|
2013-11-26 03:08:29 +04:00
|
|
|
/* static */ void
|
|
|
|
gfxAlphaBoxBlur::BlurRectangle(gfxContext *aDestinationCtx,
|
|
|
|
const gfxRect& aRect,
|
|
|
|
gfxCornerSizes* aCornerRadii,
|
2013-11-26 03:09:04 +04:00
|
|
|
const gfxPoint& aBlurStdDev,
|
2013-11-26 03:08:29 +04:00
|
|
|
const gfxRGBA& aShadowColor,
|
|
|
|
const gfxRect& aDirtyRect,
|
|
|
|
const gfxRect& aSkipRect)
|
|
|
|
{
|
2013-11-26 03:09:04 +04:00
|
|
|
gfxIntSize blurRadius = CalculateBlurRadius(aBlurStdDev);
|
2014-06-11 01:51:24 +04:00
|
|
|
|
|
|
|
DrawTarget *dt = aDestinationCtx->GetDrawTarget();
|
|
|
|
if (!dt) {
|
|
|
|
NS_WARNING("Blurring not supported for Thebes contexts!");
|
2013-11-26 03:08:29 +04:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2014-06-11 01:51:24 +04:00
|
|
|
IntPoint topLeft;
|
|
|
|
RefPtr<SourceSurface> surface = GetCachedBlur(dt, aRect, blurRadius, aSkipRect, aDirtyRect, &topLeft);
|
|
|
|
if (!surface) {
|
|
|
|
// Create the temporary surface for blurring
|
|
|
|
gfxAlphaBoxBlur blur;
|
|
|
|
gfxContext *dest = blur.Init(aRect, gfxIntSize(), blurRadius, &aDirtyRect, &aSkipRect);
|
|
|
|
|
|
|
|
if (!dest) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
gfxRect shadowGfxRect = aRect;
|
|
|
|
shadowGfxRect.Round();
|
2013-11-26 03:08:29 +04:00
|
|
|
|
2014-06-11 01:51:24 +04:00
|
|
|
dest->NewPath();
|
|
|
|
if (aCornerRadii) {
|
|
|
|
dest->RoundedRectangle(shadowGfxRect, *aCornerRadii);
|
|
|
|
} else {
|
|
|
|
dest->Rectangle(shadowGfxRect);
|
|
|
|
}
|
|
|
|
dest->Fill();
|
|
|
|
|
|
|
|
surface = blur.DoBlur(dt, &topLeft);
|
2014-06-18 05:36:30 +04:00
|
|
|
if (!surface) {
|
|
|
|
return;
|
|
|
|
}
|
2014-06-11 01:51:24 +04:00
|
|
|
CacheBlur(dt, aRect, blurRadius, aSkipRect, surface, topLeft, aDirtyRect);
|
2013-11-26 03:08:29 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
aDestinationCtx->SetColor(aShadowColor);
|
2014-06-11 01:51:24 +04:00
|
|
|
Rect dirtyRect(aDirtyRect.x, aDirtyRect.y, aDirtyRect.width, aDirtyRect.height);
|
|
|
|
DrawBlur(aDestinationCtx, surface, topLeft, &dirtyRect);
|
2013-11-26 03:08:29 +04:00
|
|
|
}
|
2014-06-11 01:51:24 +04:00
|
|
|
|