Line data Source code
1 : /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 : * This Source Code Form is subject to the terms of the Mozilla Public
3 : * License, v. 2.0. If a copy of the MPL was not distributed with this
4 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 :
6 : #ifndef MOZILLA_GFX_RENDERTEXTUREHOSTOGL_H
7 : #define MOZILLA_GFX_RENDERTEXTUREHOSTOGL_H
8 :
9 : #include "RenderTextureHost.h"
10 :
11 : namespace mozilla {
12 : namespace wr {
13 :
14 : class RenderTextureHostOGL : public RenderTextureHost
15 : {
16 : public:
17 : RenderTextureHostOGL();
18 :
19 : virtual void SetGLContext(gl::GLContext* aContext) = 0;
20 :
21 : virtual gfx::IntSize GetSize(uint8_t aChannelIndex) const = 0;
22 : virtual GLuint GetGLHandle(uint8_t aChannelIndex) const = 0;
23 :
24 0 : virtual RenderTextureHostOGL* AsTextureHostOGL() override { return this; }
25 :
26 : protected:
27 : virtual ~RenderTextureHostOGL();
28 : };
29 :
30 : } // namespace wr
31 : } // namespace mozilla
32 :
33 : #endif // MOZILLA_GFX_RENDERTEXTUREHOSTOGL_H
|