michael@0: michael@0: /* -*- Mode: C++; tab-width: 20; 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 MOZILLA_GFX_TEXTUREHOSTBASIC_H_ michael@0: #define MOZILLA_GFX_TEXTUREHOSTBASIC_H_ michael@0: michael@0: #include "CompositableHost.h" michael@0: #include "mozilla/layers/LayersSurfaces.h" michael@0: #include "mozilla/layers/TextureHost.h" michael@0: #include "mozilla/gfx/2D.h" michael@0: michael@0: namespace mozilla { michael@0: namespace layers { michael@0: michael@0: /** michael@0: * A texture source interface that can be used by the software Compositor. michael@0: */ michael@0: class TextureSourceBasic michael@0: { michael@0: public: michael@0: virtual ~TextureSourceBasic() {} michael@0: virtual gfx::SourceSurface* GetSurface(gfx::DrawTarget* aTarget) = 0; michael@0: }; michael@0: michael@0: } // namespace layers michael@0: } // namespace mozilla michael@0: michael@0: #endif // MOZILLA_GFX_TEXTUREHOSTBASIC_H_