/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- *//* vim: set ts=8 sts=2 et sw=2 tw=80: *//* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */#ifndef MOZILLA_GFX_RENDERTEXTUREHOST_H#define MOZILLA_GFX_RENDERTEXTUREHOST_H#include"GLConsts.h"#include"nsISupportsImpl.h"#include"mozilla/gfx/2D.h"#include"mozilla/layers/LayersSurfaces.h"#include"mozilla/RefPtr.h"#include"mozilla/webrender/webrender_ffi.h" // for wr::ImageRenderingnamespacemozilla{namespacegl{classGLContext;}namespacewr{classRenderBufferTextureHost;classRenderTextureHostOGL;classRenderTextureHostWrapper;voidActivateBindAndTexParameteri(gl::GLContext*aGL,GLenumaActiveTexture,GLenumaBindTarget,GLuintaBindTexture,wr::ImageRenderingaRendering);classRenderTextureHost{NS_INLINE_DECL_THREADSAFE_REFCOUNTING(RenderTextureHost)public:RenderTextureHost();virtualwr::WrExternalImageLock(uint8_taChannelIndex,gl::GLContext*aGL,wr::ImageRenderingaRendering)=0;virtualvoidUnlock()=0;virtualvoidClearCachedResources(){}virtualRenderTextureHostWrapper*AsRenderTextureHostWrapper(){returnnullptr;}protected:virtual~RenderTextureHost();boolIsFilterUpdateNecessary(wr::ImageRenderingaRendering);wr::ImageRenderingmCachedRendering;};}// namespace wr}// namespace mozilla#endif // MOZILLA_GFX_RENDERTEXTUREHOST_H