mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset a23a23055e13 (bug 863498) for compilation failures on a CLOSED TREE
This commit is contained in:
parent
e61ede7e17
commit
8a04bf8e38
@ -263,6 +263,7 @@ SharedTextureHostOGL::SwapTexturesImpl(const SurfaceDescriptor& aImage,
|
||||
mTextureTarget = handleDetails.mTarget;
|
||||
mShaderProgram = handleDetails.mProgramType;
|
||||
mFormat = FormatFromShaderType(mShaderProgram);
|
||||
mTextureTransform = handleDetails.mTextureTransform;
|
||||
}
|
||||
}
|
||||
|
||||
@ -288,20 +289,6 @@ SharedTextureHostOGL::Unlock()
|
||||
mGL->fBindTexture(LOCAL_GL_TEXTURE_2D, 0);
|
||||
}
|
||||
|
||||
|
||||
gfx3DMatrix
|
||||
SharedTextureHostOGL::GetTextureTransform() MOZ_OVERRIDE
|
||||
{
|
||||
GLContext::SharedHandleDetails handleDetails;
|
||||
// GetSharedHandleDetails can call into Java which we'd
|
||||
// rather not do from the compositor
|
||||
if (mSharedHandle) {
|
||||
mGL->GetSharedHandleDetails(mShareType, mSharedHandle, handleDetails);
|
||||
}
|
||||
return handleDetails.mTextureTransform;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SurfaceStreamHostOGL::SetCompositor(Compositor* aCompositor)
|
||||
{
|
||||
|
@ -51,7 +51,7 @@ public:
|
||||
// TODO: Noone's implementing this anymore, should see if we need this.
|
||||
virtual GLenum GetTextureTarget() const { return LOCAL_GL_TEXTURE_2D; }
|
||||
virtual GLenum GetWrapMode() const = 0;// { return LOCAL_GL_CLAMP_TO_EDGE; } // default
|
||||
virtual gfx3DMatrix GetTextureTransform() { return gfx3DMatrix(); }
|
||||
virtual gfx3DMatrix GetTextureTransform() const { return gfx3DMatrix(); }
|
||||
};
|
||||
|
||||
inline gl::ShaderProgramType
|
||||
@ -360,7 +360,10 @@ public:
|
||||
gfxASurface::CONTENT_COLOR;
|
||||
}
|
||||
|
||||
virtual gfx3DMatrix GetTextureTransform() MOZ_OVERRIDE;
|
||||
virtual gfx3DMatrix GetTextureTransform() const MOZ_OVERRIDE
|
||||
{
|
||||
return mTextureTransform;
|
||||
}
|
||||
|
||||
#ifdef MOZ_LAYERS_HAVE_LOG
|
||||
virtual const char* Name() { return "SharedTextureHostOGL"; }
|
||||
@ -377,6 +380,7 @@ protected:
|
||||
gl::SharedTextureHandle mSharedHandle;
|
||||
gl::ShaderProgramType mShaderProgram;
|
||||
gl::GLContext::SharedTextureShareType mShareType;
|
||||
gfx3DMatrix mTextureTransform;
|
||||
};
|
||||
|
||||
class SurfaceStreamHostOGL : public TextureHost
|
||||
|
Loading…
Reference in New Issue
Block a user