gfx/webrender_bindings/RenderTextureHostOGL.h
author Andreas Tolfsen <ato@sny.no>
Tue, 03 Oct 2017 16:21:25 +0100
changeset 432422 b817f99334fa42aa949d0c2da4a76bafb881dd4d
parent 422691 1299e43ad52839a253cb303e2d7b0b79c45af7b0
child 439782 5f74d262924171a8fa0b4483a64f4cac34c4c9b8
child 439859 40ec5550739449f1cb8ad7d030a40cc10f9653bc
permissions -rw-r--r--
Bug 1405325 - Use HTTPWireProtocol#url to build full URL. r=maja_zf Instead of using string concatentation for building the command URL, rely on self.url which internally uses urlparse.urljoin. MozReview-Commit-ID: DqakZJIgdJF

/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 * 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_RENDERTEXTUREHOSTOGL_H
#define MOZILLA_GFX_RENDERTEXTUREHOSTOGL_H

#include "RenderTextureHost.h"

namespace mozilla {

namespace gl {
class GLContext;
}

namespace wr {

class RenderTextureHostOGL : public RenderTextureHost
{
public:
  RenderTextureHostOGL();

  virtual void SetGLContext(gl::GLContext* aContext) = 0;

  virtual gfx::IntSize GetSize(uint8_t aChannelIndex) const = 0;
  virtual GLuint GetGLHandle(uint8_t aChannelIndex) const = 0;

  virtual RenderTextureHostOGL* AsTextureHostOGL()  override { return this; }

protected:
  virtual ~RenderTextureHostOGL();
};

} // namespace wr
} // namespace mozilla

#endif // MOZILLA_GFX_RENDERTEXTUREHOSTOGL_H