michael@0: michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef GFX_GRADIENT_CACHE_H michael@0: #define GFX_GRADIENT_CACHE_H michael@0: michael@0: #include "nsTArray.h" michael@0: #include "gfxPattern.h" michael@0: #include "mozilla/gfx/2D.h" michael@0: michael@0: namespace mozilla { michael@0: namespace gfx { michael@0: michael@0: class gfxGradientCache { michael@0: public: michael@0: static gfx::GradientStops *GetGradientStops(gfx::DrawTarget *aDT, michael@0: nsTArray& aStops, michael@0: gfx::ExtendMode aExtend); michael@0: static gfx::GradientStops *GetOrCreateGradientStops(gfx::DrawTarget *aDT, michael@0: nsTArray& aStops, michael@0: gfx::ExtendMode aExtend); michael@0: michael@0: static void Shutdown(); michael@0: }; michael@0: michael@0: } michael@0: } michael@0: michael@0: #endif