mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 940811 - Enable the gradient cache for canvas. r=Bas
This commit is contained in:
parent
9f6b17cb86
commit
73c6c76ff1
@ -12,6 +12,7 @@
|
||||
#include "mozilla/dom/CanvasRenderingContext2D.h"
|
||||
#include "mozilla/gfx/2D.h"
|
||||
#include "nsWrapperCache.h"
|
||||
#include "gfxGradientCache.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
@ -41,7 +42,10 @@ public:
|
||||
return mStops;
|
||||
}
|
||||
|
||||
mStops = aRT->CreateGradientStops(mRawStops.Elements(), mRawStops.Length());
|
||||
mStops =
|
||||
gfx::gfxGradientCache::GetOrCreateGradientStops(aRT,
|
||||
mRawStops,
|
||||
gfx;:EXTEND_CLAMP);
|
||||
|
||||
return mStops;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user