mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1116473 - [3.2] Use RefPtr for AndroidSurfaceTexture references. r=snorp
This commit is contained in:
parent
b40f55b915
commit
eb51f3519d
@ -6,6 +6,7 @@
|
||||
#ifndef GFX_GLIMAGES_H
|
||||
#define GFX_GLIMAGES_H
|
||||
|
||||
#include "AndroidSurfaceTexture.h"
|
||||
#include "GLContextTypes.h"
|
||||
#include "GLTypes.h"
|
||||
#include "ImageContainer.h" // for Image
|
||||
@ -14,9 +15,6 @@
|
||||
#include "mozilla/gfx/Point.h" // for IntSize
|
||||
|
||||
namespace mozilla {
|
||||
namespace gl {
|
||||
class AndroidSurfaceTexture;
|
||||
} // namespace gl
|
||||
namespace layers {
|
||||
|
||||
class GLImage : public Image {
|
||||
@ -79,7 +77,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
gl::AndroidSurfaceTexture* mSurfaceTexture;
|
||||
RefPtr<gl::AndroidSurfaceTexture> mSurfaceTexture;
|
||||
gfx::IntSize mSize;
|
||||
gl::OriginPos mOriginPos;
|
||||
};
|
||||
|
@ -374,7 +374,7 @@ public:
|
||||
|
||||
protected:
|
||||
RefPtr<CompositorOGL> mCompositor;
|
||||
mozilla::gl::AndroidSurfaceTexture* const mSurfTex;
|
||||
RefPtr<gl::AndroidSurfaceTexture> const mSurfTex;
|
||||
const gfx::SurfaceFormat mFormat;
|
||||
const GLenum mTextureTarget;
|
||||
const GLenum mWrapMode;
|
||||
@ -419,7 +419,7 @@ public:
|
||||
virtual const char* Name() { return "SurfaceTextureHost"; }
|
||||
|
||||
protected:
|
||||
mozilla::gl::AndroidSurfaceTexture* const mSurfTex;
|
||||
RefPtr<gl::AndroidSurfaceTexture> const mSurfTex;
|
||||
const gfx::IntSize mSize;
|
||||
RefPtr<CompositorOGL> mCompositor;
|
||||
RefPtr<SurfaceTextureSource> mTextureSource;
|
||||
|
Loading…
Reference in New Issue
Block a user