michael@0: /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 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_LAYERSCOPE_H michael@0: #define GFX_LAYERSCOPE_H michael@0: michael@0: #include michael@0: michael@0: struct nsIntSize; michael@0: michael@0: namespace mozilla { michael@0: michael@0: namespace gl { class GLContext; } michael@0: michael@0: namespace layers { michael@0: michael@0: struct EffectChain; michael@0: michael@0: class LayerScope { michael@0: public: michael@0: static void CreateServerSocket(); michael@0: static void DestroyServerSocket(); michael@0: static void BeginFrame(gl::GLContext* aGLContext, int64_t aFrameStamp); michael@0: static void EndFrame(gl::GLContext* aGLContext); michael@0: static void SendEffectChain(gl::GLContext* aGLContext, michael@0: const EffectChain& aEffectChain, michael@0: int aWidth, int aHeight); michael@0: }; michael@0: michael@0: } /* layers */ michael@0: } /* mozilla */ michael@0: michael@0: #endif /* GFX_LAYERSCOPE_H */