mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
Merge mozilla-central and b2g-inbound
This commit is contained in:
commit
7e518b8b1e
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"revision": "eb59735156986ce7a697063021ad74f1fca0bc12",
|
"revision": "c51f09ca8ebb043a7574334706116a971258a27b",
|
||||||
"repo_path": "/integration/gaia-central"
|
"repo_path": "/integration/gaia-central"
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ BEGIN_BLUETOOTH_NAMESPACE
|
|||||||
|
|
||||||
// Major device class = 0x4, Audio/Video
|
// Major device class = 0x4, Audio/Video
|
||||||
// Minor device class = 0x1, Wearable Headset device
|
// Minor device class = 0x1, Wearable Headset device
|
||||||
#define IS_HEADSET(cod) ((GET_MAJOR_SERVICE_CLASS(cod) == 0x4) && \
|
#define IS_HEADSET(cod) ((GET_MAJOR_DEVICE_CLASS(cod) == 0x4) && \
|
||||||
(GET_MINOR_DEVICE_CLASS(cod) == 0x1))
|
(GET_MINOR_DEVICE_CLASS(cod) == 0x1))
|
||||||
|
|
||||||
class BluetoothProfileManagerBase;
|
class BluetoothProfileManagerBase;
|
||||||
|
@ -55,6 +55,7 @@ CompositableHost::AddTextureHost(TextureHost* aTexture)
|
|||||||
RefPtr<TextureHost> second = mFirstTexture;
|
RefPtr<TextureHost> second = mFirstTexture;
|
||||||
mFirstTexture = aTexture;
|
mFirstTexture = aTexture;
|
||||||
aTexture->SetNextSibling(second);
|
aTexture->SetNextSibling(second);
|
||||||
|
aTexture->SetCompositableQuirks(GetCompositableQuirks());
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -243,7 +243,6 @@ CompositableParentManager::ReceiveCompositableUpdate(const CompositableOperation
|
|||||||
// on gonk, create EGLImage if possible.
|
// on gonk, create EGLImage if possible.
|
||||||
// create EGLImage during buffer swap could reduce the graphic driver's task
|
// create EGLImage during buffer swap could reduce the graphic driver's task
|
||||||
// during rendering.
|
// during rendering.
|
||||||
tex->SetCompositableQuirks(compositable->GetCompositableQuirks());
|
|
||||||
compositable->AddTextureHost(tex);
|
compositable->AddTextureHost(tex);
|
||||||
MOZ_ASSERT(compositable->GetTextureHost(op.textureID()) == tex.get());
|
MOZ_ASSERT(compositable->GetTextureHost(op.textureID()) == tex.get());
|
||||||
break;
|
break;
|
||||||
|
@ -117,8 +117,7 @@ void GrallocTextureSourceOGL::BindTexture(GLenum aTextureUnit)
|
|||||||
MOZ_ASSERT(gl());
|
MOZ_ASSERT(gl());
|
||||||
gl()->MakeCurrent();
|
gl()->MakeCurrent();
|
||||||
|
|
||||||
mQuirks->SetCompositor(mCompositor);
|
GLuint tex = GetGLTexture();
|
||||||
GLuint tex = static_cast<CompositableQuirksGonkOGL*>(mQuirks.get())->GetTexture();
|
|
||||||
GLuint textureTarget = GetTextureTarget();
|
GLuint textureTarget = GetTextureTarget();
|
||||||
|
|
||||||
gl()->fActiveTexture(aTextureUnit);
|
gl()->fActiveTexture(aTextureUnit);
|
||||||
@ -179,8 +178,7 @@ GrallocTextureSourceOGL::SetCompositableQuirks(CompositableQuirks* aQuirks)
|
|||||||
DeallocateDeviceData();
|
DeallocateDeviceData();
|
||||||
|
|
||||||
gl()->MakeCurrent();
|
gl()->MakeCurrent();
|
||||||
mQuirks->SetCompositor(mCompositor);
|
GLuint tex = GetGLTexture();
|
||||||
GLuint tex = static_cast<CompositableQuirksGonkOGL*>(mQuirks.get())->GetTexture();
|
|
||||||
GLuint textureTarget = GetTextureTarget();
|
GLuint textureTarget = GetTextureTarget();
|
||||||
|
|
||||||
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
||||||
@ -310,8 +308,7 @@ GrallocTextureSourceOGL::GetAsSurface() {
|
|||||||
MOZ_ASSERT(gl());
|
MOZ_ASSERT(gl());
|
||||||
gl()->MakeCurrent();
|
gl()->MakeCurrent();
|
||||||
|
|
||||||
mQuirks->SetCompositor(mCompositor);
|
GLuint tex = GetGLTexture();
|
||||||
GLuint tex = static_cast<CompositableQuirksGonkOGL*>(mQuirks.get())->GetTexture();
|
|
||||||
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
||||||
gl()->fBindTexture(GetTextureTarget(), tex);
|
gl()->fBindTexture(GetTextureTarget(), tex);
|
||||||
if (!mEGLImage) {
|
if (!mEGLImage) {
|
||||||
@ -326,6 +323,13 @@ GrallocTextureSourceOGL::GetAsSurface() {
|
|||||||
return surf.forget();
|
return surf.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GLuint
|
||||||
|
GrallocTextureSourceOGL::GetGLTexture()
|
||||||
|
{
|
||||||
|
mQuirks->SetCompositor(mCompositor);
|
||||||
|
return static_cast<CompositableQuirksGonkOGL*>(mQuirks.get())->GetTexture();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
GrallocTextureHostOGL::SetCompositableQuirks(CompositableQuirks* aQuirks)
|
GrallocTextureHostOGL::SetCompositableQuirks(CompositableQuirks* aQuirks)
|
||||||
{
|
{
|
||||||
|
@ -62,6 +62,8 @@ public:
|
|||||||
|
|
||||||
already_AddRefed<gfxImageSurface> GetAsSurface();
|
already_AddRefed<gfxImageSurface> GetAsSurface();
|
||||||
|
|
||||||
|
GLuint GetGLTexture();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
CompositorOGL* mCompositor;
|
CompositorOGL* mCompositor;
|
||||||
android::sp<android::GraphicBuffer> mGraphicBuffer;
|
android::sp<android::GraphicBuffer> mGraphicBuffer;
|
||||||
|
@ -1123,11 +1123,10 @@ GrallocDeprecatedTextureHostOGL::SwapTexturesImpl(const SurfaceDescriptor& aImag
|
|||||||
mIsRBSwapped);
|
mIsRBSwapped);
|
||||||
|
|
||||||
mTextureTarget = TextureTargetForAndroidPixelFormat(mGraphicBuffer->getPixelFormat());
|
mTextureTarget = TextureTargetForAndroidPixelFormat(mGraphicBuffer->getPixelFormat());
|
||||||
mQuirks->SetCompositor(mCompositor);
|
GLuint tex = GetGLTexture();
|
||||||
GLuint tex = static_cast<CompositableQuirksGonkOGL*>(mQuirks.get())->GetTexture();
|
|
||||||
// delete old EGLImage
|
// delete old EGLImage
|
||||||
DeleteTextures();
|
DeleteTextures();
|
||||||
#if 1
|
|
||||||
gl()->MakeCurrent();
|
gl()->MakeCurrent();
|
||||||
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
||||||
gl()->fBindTexture(mTextureTarget, tex);
|
gl()->fBindTexture(mTextureTarget, tex);
|
||||||
@ -1136,7 +1135,6 @@ GrallocDeprecatedTextureHostOGL::SwapTexturesImpl(const SurfaceDescriptor& aImag
|
|||||||
// during rendering.
|
// during rendering.
|
||||||
mEGLImage = gl()->CreateEGLImageForNativeBuffer(mGraphicBuffer->getNativeBuffer());
|
mEGLImage = gl()->CreateEGLImageForNativeBuffer(mGraphicBuffer->getNativeBuffer());
|
||||||
gl()->fEGLImageTargetTexture2D(mTextureTarget, mEGLImage);
|
gl()->fEGLImageTargetTexture2D(mTextureTarget, mEGLImage);
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1163,8 +1161,7 @@ void GrallocDeprecatedTextureHostOGL::BindTexture(GLenum aTextureUnit)
|
|||||||
MOZ_ASSERT(gl());
|
MOZ_ASSERT(gl());
|
||||||
gl()->MakeCurrent();
|
gl()->MakeCurrent();
|
||||||
|
|
||||||
mQuirks->SetCompositor(mCompositor);
|
GLuint tex = GetGLTexture();
|
||||||
GLuint tex = static_cast<CompositableQuirksGonkOGL*>(mQuirks.get())->GetTexture();
|
|
||||||
|
|
||||||
gl()->fActiveTexture(aTextureUnit);
|
gl()->fActiveTexture(aTextureUnit);
|
||||||
gl()->fBindTexture(mTextureTarget, tex);
|
gl()->fBindTexture(mTextureTarget, tex);
|
||||||
@ -1243,6 +1240,14 @@ GrallocDeprecatedTextureHostOGL::GetRenderState()
|
|||||||
|
|
||||||
return LayerRenderState();
|
return LayerRenderState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GLuint
|
||||||
|
GrallocDeprecatedTextureHostOGL::GetGLTexture()
|
||||||
|
{
|
||||||
|
mQuirks->SetCompositor(mCompositor);
|
||||||
|
return static_cast<CompositableQuirksGonkOGL*>(mQuirks.get())->GetTexture();
|
||||||
|
}
|
||||||
|
|
||||||
#endif // MOZ_WIDGET_GONK
|
#endif // MOZ_WIDGET_GONK
|
||||||
|
|
||||||
already_AddRefed<gfxImageSurface>
|
already_AddRefed<gfxImageSurface>
|
||||||
@ -1300,8 +1305,7 @@ already_AddRefed<gfxImageSurface>
|
|||||||
GrallocDeprecatedTextureHostOGL::GetAsSurface() {
|
GrallocDeprecatedTextureHostOGL::GetAsSurface() {
|
||||||
gl()->MakeCurrent();
|
gl()->MakeCurrent();
|
||||||
|
|
||||||
mQuirks->SetCompositor(mCompositor);
|
GLuint tex = GetGLTexture();
|
||||||
GLuint tex = static_cast<CompositableQuirksGonkOGL*>(mQuirks.get())->GetTexture();
|
|
||||||
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
||||||
gl()->fBindTexture(mTextureTarget, tex);
|
gl()->fBindTexture(mTextureTarget, tex);
|
||||||
if (!mEGLImage) {
|
if (!mEGLImage) {
|
||||||
|
@ -920,6 +920,8 @@ public:
|
|||||||
|
|
||||||
virtual LayerRenderState GetRenderState() MOZ_OVERRIDE;
|
virtual LayerRenderState GetRenderState() MOZ_OVERRIDE;
|
||||||
|
|
||||||
|
GLuint GetGLTexture();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
gl::GLContext* gl() const;
|
gl::GLContext* gl() const;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Extensions we recognize for DeviceStorage storage areas
|
# Extensions we recognize for DeviceStorage storage areas
|
||||||
pictures=*.jpe; *.jpg; *.jpeg; *.gif; *.png; *.bmp;
|
pictures=*.jpe; *.jpg; *.jpeg; *.gif; *.png; *.bmp;
|
||||||
music=*.mp3; *.ogg; *.m4a; *.m4b; *.m4p; *.m4r; *.3gp; *.mp4; *.m3u; *.pls; *.opus; *.amr; *.wav; *.lcka;
|
music=*.mp3; *.oga; *.ogg; *.m4a; *.m4b; *.m4p; *.m4r; *.3gp; *.mp4; *.m3u; *.pls; *.opus; *.amr; *.wav; *.lcka;
|
||||||
videos=*.mp4; *.mpeg; *.mpg; *.ogv; *.ogx; *.webm; *.3gp; *.ogg; *.m4v;
|
videos=*.mp4; *.mpeg; *.mpg; *.ogv; *.ogx; *.webm; *.3gp; *.ogg; *.m4v;
|
||||||
|
Loading…
Reference in New Issue
Block a user