1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/layers/basic/TextureHostBasic.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 + 1.5 +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.6 +* This Source Code Form is subject to the terms of the Mozilla Public 1.7 +* License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef MOZILLA_GFX_TEXTUREHOSTBASIC_H_ 1.11 +#define MOZILLA_GFX_TEXTUREHOSTBASIC_H_ 1.12 + 1.13 +#include "CompositableHost.h" 1.14 +#include "mozilla/layers/LayersSurfaces.h" 1.15 +#include "mozilla/layers/TextureHost.h" 1.16 +#include "mozilla/gfx/2D.h" 1.17 + 1.18 +namespace mozilla { 1.19 +namespace layers { 1.20 + 1.21 +/** 1.22 + * A texture source interface that can be used by the software Compositor. 1.23 + */ 1.24 +class TextureSourceBasic 1.25 +{ 1.26 +public: 1.27 + virtual ~TextureSourceBasic() {} 1.28 + virtual gfx::SourceSurface* GetSurface(gfx::DrawTarget* aTarget) = 0; 1.29 +}; 1.30 + 1.31 +} // namespace layers 1.32 +} // namespace mozilla 1.33 + 1.34 +#endif // MOZILLA_GFX_TEXTUREHOSTBASIC_H_