2013-08-09 08:23:46 -07:00
|
|
|
/* -*- 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/. */
|
|
|
|
|
|
|
|
#include "GLContext.h"
|
|
|
|
#include "gfxImageSurface.h"
|
|
|
|
#include "gfx2DGlue.h"
|
|
|
|
#include <ui/GraphicBuffer.h>
|
2013-09-12 02:40:26 -07:00
|
|
|
#include "GrallocImages.h" // for GrallocImage
|
2013-08-09 08:23:46 -07:00
|
|
|
#include "mozilla/layers/GrallocTextureHost.h"
|
|
|
|
#include "mozilla/layers/CompositorOGL.h"
|
2013-12-09 21:47:19 -08:00
|
|
|
#include "EGLImageHelpers.h"
|
2014-01-02 07:17:29 -08:00
|
|
|
#include "GLReadTexImageHelper.h"
|
2013-08-09 08:23:46 -07:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
using namespace android;
|
|
|
|
|
|
|
|
static gfx::SurfaceFormat
|
|
|
|
SurfaceFormatForAndroidPixelFormat(android::PixelFormat aFormat,
|
|
|
|
bool swapRB = false)
|
|
|
|
{
|
|
|
|
switch (aFormat) {
|
|
|
|
case android::PIXEL_FORMAT_BGRA_8888:
|
2014-01-10 11:06:16 -08:00
|
|
|
return swapRB ? gfx::SurfaceFormat::R8G8B8A8 : gfx::SurfaceFormat::B8G8R8A8;
|
2013-08-09 08:23:46 -07:00
|
|
|
case android::PIXEL_FORMAT_RGBA_8888:
|
2014-01-10 11:06:16 -08:00
|
|
|
return swapRB ? gfx::SurfaceFormat::B8G8R8A8 : gfx::SurfaceFormat::R8G8B8A8;
|
2013-08-09 08:23:46 -07:00
|
|
|
case android::PIXEL_FORMAT_RGBX_8888:
|
2014-01-10 11:06:16 -08:00
|
|
|
return swapRB ? gfx::SurfaceFormat::B8G8R8X8 : gfx::SurfaceFormat::R8G8B8X8;
|
2013-08-09 08:23:46 -07:00
|
|
|
case android::PIXEL_FORMAT_RGB_565:
|
2014-01-10 11:06:16 -08:00
|
|
|
return gfx::SurfaceFormat::R5G6B5;
|
2013-08-09 08:23:46 -07:00
|
|
|
case HAL_PIXEL_FORMAT_YCbCr_422_SP:
|
|
|
|
case HAL_PIXEL_FORMAT_YCrCb_420_SP:
|
|
|
|
case HAL_PIXEL_FORMAT_YCbCr_422_I:
|
2013-09-12 02:40:26 -07:00
|
|
|
case GrallocImage::HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED:
|
|
|
|
case GrallocImage::HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS:
|
2013-08-09 08:23:46 -07:00
|
|
|
case HAL_PIXEL_FORMAT_YV12:
|
2014-01-10 11:06:16 -08:00
|
|
|
return gfx::SurfaceFormat::B8G8R8A8; // yup, use SurfaceFormat::B8G8R8A8 even though it's a YUV texture. This is an external texture.
|
2013-08-09 08:23:46 -07:00
|
|
|
default:
|
|
|
|
if (aFormat >= 0x100 && aFormat <= 0x1FF) {
|
|
|
|
// Reserved range for HAL specific formats.
|
2014-01-10 11:06:16 -08:00
|
|
|
return gfx::SurfaceFormat::B8G8R8A8;
|
2013-08-09 08:23:46 -07:00
|
|
|
} else {
|
|
|
|
// This is not super-unreachable, there's a bunch of hypothetical pixel
|
|
|
|
// formats we don't deal with.
|
|
|
|
// We only want to abort in debug builds here, since if we crash here
|
|
|
|
// we'll take down the compositor process and thus the phone. This seems
|
|
|
|
// like undesirable behaviour. We'd rather have a subtle artifact.
|
|
|
|
printf_stderr(" xxxxx unknow android format %i\n", (int)aFormat);
|
|
|
|
MOZ_ASSERT(false, "Unknown Android pixel format.");
|
2014-01-10 11:06:16 -08:00
|
|
|
return gfx::SurfaceFormat::UNKNOWN;
|
2013-08-09 08:23:46 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static GLenum
|
|
|
|
TextureTargetForAndroidPixelFormat(android::PixelFormat aFormat)
|
|
|
|
{
|
|
|
|
switch (aFormat) {
|
|
|
|
case HAL_PIXEL_FORMAT_YCbCr_422_SP:
|
|
|
|
case HAL_PIXEL_FORMAT_YCrCb_420_SP:
|
|
|
|
case HAL_PIXEL_FORMAT_YCbCr_422_I:
|
2013-09-12 02:40:26 -07:00
|
|
|
case GrallocImage::HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED:
|
|
|
|
case GrallocImage::HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS:
|
2013-08-09 08:23:46 -07:00
|
|
|
case HAL_PIXEL_FORMAT_YV12:
|
|
|
|
return LOCAL_GL_TEXTURE_EXTERNAL;
|
|
|
|
case android::PIXEL_FORMAT_RGBA_8888:
|
|
|
|
case android::PIXEL_FORMAT_RGBX_8888:
|
|
|
|
case android::PIXEL_FORMAT_RGB_565:
|
|
|
|
return LOCAL_GL_TEXTURE_2D;
|
|
|
|
default:
|
|
|
|
if (aFormat >= 0x100 && aFormat <= 0x1FF) {
|
|
|
|
// Reserved range for HAL specific formats.
|
|
|
|
return LOCAL_GL_TEXTURE_EXTERNAL;
|
|
|
|
} else {
|
|
|
|
// This is not super-unreachable, there's a bunch of hypothetical pixel
|
|
|
|
// formats we don't deal with.
|
|
|
|
// We only want to abort in debug builds here, since if we crash here
|
|
|
|
// we'll take down the compositor process and thus the phone. This seems
|
|
|
|
// like undesirable behaviour. We'd rather have a subtle artifact.
|
|
|
|
MOZ_ASSERT(false, "Unknown Android pixel format.");
|
|
|
|
return LOCAL_GL_TEXTURE_EXTERNAL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
GrallocTextureSourceOGL::GrallocTextureSourceOGL(CompositorOGL* aCompositor,
|
|
|
|
android::GraphicBuffer* aGraphicBuffer,
|
|
|
|
gfx::SurfaceFormat aFormat)
|
|
|
|
: mCompositor(aCompositor)
|
|
|
|
, mGraphicBuffer(aGraphicBuffer)
|
|
|
|
, mEGLImage(0)
|
|
|
|
, mFormat(aFormat)
|
2013-12-11 17:44:45 -08:00
|
|
|
, mNeedsReset(true)
|
2013-08-09 08:23:46 -07:00
|
|
|
{
|
|
|
|
MOZ_ASSERT(mGraphicBuffer.get());
|
|
|
|
}
|
|
|
|
|
2013-09-12 19:39:26 -07:00
|
|
|
GrallocTextureSourceOGL::~GrallocTextureSourceOGL()
|
|
|
|
{
|
|
|
|
DeallocateDeviceData();
|
|
|
|
mCompositor = nullptr;
|
|
|
|
}
|
|
|
|
|
2013-08-09 08:23:46 -07:00
|
|
|
void GrallocTextureSourceOGL::BindTexture(GLenum aTextureUnit)
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* The job of this function is to ensure that the texture is tied to the
|
|
|
|
* android::GraphicBuffer, so that texturing will source the GraphicBuffer.
|
|
|
|
*
|
|
|
|
* To this effect we create an EGLImage wrapping this GraphicBuffer,
|
2013-12-09 21:47:19 -08:00
|
|
|
* using EGLImageCreateFromNativeBuffer, and then we tie this EGLImage to our
|
2013-08-09 08:23:46 -07:00
|
|
|
* texture using fEGLImageTargetTexture2D.
|
|
|
|
*/
|
|
|
|
MOZ_ASSERT(gl());
|
|
|
|
gl()->MakeCurrent();
|
|
|
|
|
2013-09-17 06:29:19 -07:00
|
|
|
GLuint tex = GetGLTexture();
|
2013-08-09 08:23:46 -07:00
|
|
|
GLuint textureTarget = GetTextureTarget();
|
|
|
|
|
|
|
|
gl()->fActiveTexture(aTextureUnit);
|
|
|
|
gl()->fBindTexture(textureTarget, tex);
|
2014-01-24 05:30:41 -08:00
|
|
|
if (!mEGLImage) {
|
|
|
|
mEGLImage = EGLImageCreateFromNativeBuffer(gl(), mGraphicBuffer->getNativeBuffer());
|
|
|
|
}
|
|
|
|
gl()->fEGLImageTargetTexture2D(textureTarget, mEGLImage);
|
2013-08-09 08:23:46 -07:00
|
|
|
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
GrallocTextureSourceOGL::IsValid() const
|
|
|
|
{
|
|
|
|
return !!gl() && !!mGraphicBuffer.get();
|
|
|
|
}
|
|
|
|
|
|
|
|
gl::GLContext*
|
|
|
|
GrallocTextureSourceOGL::gl() const
|
|
|
|
{
|
|
|
|
return mCompositor ? mCompositor->gl() : nullptr;
|
|
|
|
}
|
|
|
|
|
2013-09-12 19:39:26 -07:00
|
|
|
void
|
2014-01-08 11:25:52 -08:00
|
|
|
GrallocTextureSourceOGL::SetCompositor(Compositor* aCompositor)
|
2013-09-12 19:39:26 -07:00
|
|
|
{
|
|
|
|
if (mCompositor && !aCompositor) {
|
|
|
|
DeallocateDeviceData();
|
|
|
|
}
|
2014-01-08 11:25:52 -08:00
|
|
|
mCompositor = static_cast<CompositorOGL*>(aCompositor);
|
2013-09-12 19:39:26 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-08-09 08:23:46 -07:00
|
|
|
GLenum
|
|
|
|
GrallocTextureSourceOGL::GetTextureTarget() const
|
|
|
|
{
|
|
|
|
MOZ_ASSERT(mGraphicBuffer.get());
|
|
|
|
return TextureTargetForAndroidPixelFormat(mGraphicBuffer->getPixelFormat());
|
|
|
|
}
|
|
|
|
|
|
|
|
gfx::SurfaceFormat
|
2013-08-30 07:24:05 -07:00
|
|
|
GrallocTextureSourceOGL::GetFormat() const {
|
2013-08-09 08:23:46 -07:00
|
|
|
if (!mGraphicBuffer.get()) {
|
2014-01-10 11:06:16 -08:00
|
|
|
return gfx::SurfaceFormat::UNKNOWN;
|
2013-08-09 08:23:46 -07:00
|
|
|
}
|
|
|
|
if (GetTextureTarget() == LOCAL_GL_TEXTURE_EXTERNAL) {
|
2014-01-10 11:06:16 -08:00
|
|
|
return gfx::SurfaceFormat::R8G8B8A8;
|
2013-08-09 08:23:46 -07:00
|
|
|
}
|
|
|
|
return mFormat;
|
|
|
|
}
|
|
|
|
|
2013-09-12 19:39:26 -07:00
|
|
|
void
|
2013-09-30 05:14:38 -07:00
|
|
|
GrallocTextureSourceOGL::SetCompositableBackendSpecificData(CompositableBackendSpecificData* aBackendData)
|
2013-09-12 19:39:26 -07:00
|
|
|
{
|
2014-02-10 12:52:35 -08:00
|
|
|
if (!aBackendData) {
|
|
|
|
mCompositableBackendData = nullptr;
|
|
|
|
DeallocateDeviceData();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2013-12-11 17:44:45 -08:00
|
|
|
if (mCompositableBackendData != aBackendData) {
|
|
|
|
mNeedsReset = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!mNeedsReset) {
|
2014-01-24 05:30:41 -08:00
|
|
|
// Update binding to the EGLImage
|
|
|
|
gl()->MakeCurrent();
|
|
|
|
GLuint tex = GetGLTexture();
|
|
|
|
GLuint textureTarget = GetTextureTarget();
|
|
|
|
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
|
|
|
gl()->fBindTexture(textureTarget, tex);
|
|
|
|
gl()->fEGLImageTargetTexture2D(textureTarget, mEGLImage);
|
2013-12-11 17:44:45 -08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2013-09-30 05:14:38 -07:00
|
|
|
mCompositableBackendData = aBackendData;
|
2013-09-12 19:39:26 -07:00
|
|
|
|
|
|
|
if (!mCompositor) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// delete old EGLImage
|
|
|
|
DeallocateDeviceData();
|
|
|
|
|
|
|
|
gl()->MakeCurrent();
|
2013-09-17 06:29:19 -07:00
|
|
|
GLuint tex = GetGLTexture();
|
2013-09-12 19:39:26 -07:00
|
|
|
GLuint textureTarget = GetTextureTarget();
|
|
|
|
|
|
|
|
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
|
|
|
gl()->fBindTexture(textureTarget, tex);
|
|
|
|
// create new EGLImage
|
2013-12-09 21:47:19 -08:00
|
|
|
mEGLImage = EGLImageCreateFromNativeBuffer(gl(), mGraphicBuffer->getNativeBuffer());
|
2013-09-12 19:39:26 -07:00
|
|
|
gl()->fEGLImageTargetTexture2D(textureTarget, mEGLImage);
|
2013-12-11 17:44:45 -08:00
|
|
|
mNeedsReset = false;
|
2013-09-12 19:39:26 -07:00
|
|
|
}
|
|
|
|
|
2013-08-09 08:23:46 -07:00
|
|
|
gfx::IntSize
|
|
|
|
GrallocTextureSourceOGL::GetSize() const
|
|
|
|
{
|
|
|
|
if (!IsValid()) {
|
|
|
|
NS_WARNING("Trying to access the size of an invalid GrallocTextureSourceOGL");
|
|
|
|
return gfx::IntSize(0, 0);
|
|
|
|
}
|
|
|
|
return gfx::IntSize(mGraphicBuffer->getWidth(), mGraphicBuffer->getHeight());
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
GrallocTextureSourceOGL::DeallocateDeviceData()
|
|
|
|
{
|
|
|
|
if (mEGLImage) {
|
|
|
|
MOZ_ASSERT(gl());
|
|
|
|
gl()->MakeCurrent();
|
2013-12-09 21:47:19 -08:00
|
|
|
EGLImageDestroy(gl(), mEGLImage);
|
|
|
|
mEGLImage = EGL_NO_IMAGE;
|
2013-08-09 08:23:46 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-11 17:44:47 -08:00
|
|
|
GrallocTextureHostOGL::GrallocTextureHostOGL(TextureFlags aFlags,
|
2013-08-09 08:23:46 -07:00
|
|
|
const NewSurfaceDescriptorGralloc& aDescriptor)
|
2013-12-11 17:44:47 -08:00
|
|
|
: TextureHost(aFlags)
|
2013-08-09 08:23:46 -07:00
|
|
|
{
|
|
|
|
mGrallocActor =
|
|
|
|
static_cast<GrallocBufferActor*>(aDescriptor.bufferParent());
|
|
|
|
|
2014-02-06 17:32:29 -08:00
|
|
|
mGrallocActor->AddTextureHost(this);
|
|
|
|
|
2013-08-09 08:23:46 -07:00
|
|
|
android::GraphicBuffer* graphicBuffer = mGrallocActor->GetGraphicBuffer();
|
|
|
|
|
|
|
|
mSize = aDescriptor.size();
|
|
|
|
gfx::SurfaceFormat format =
|
|
|
|
SurfaceFormatForAndroidPixelFormat(graphicBuffer->getPixelFormat(),
|
|
|
|
aFlags & TEXTURE_RB_SWAPPED);
|
|
|
|
mTextureSource = new GrallocTextureSourceOGL(nullptr,
|
|
|
|
graphicBuffer,
|
|
|
|
format);
|
|
|
|
}
|
|
|
|
|
|
|
|
GrallocTextureHostOGL::~GrallocTextureHostOGL()
|
|
|
|
{
|
|
|
|
mTextureSource = nullptr;
|
2014-02-06 17:32:29 -08:00
|
|
|
if (mGrallocActor) {
|
|
|
|
mGrallocActor->RemoveTextureHost();
|
|
|
|
mGrallocActor = nullptr;
|
|
|
|
}
|
2013-08-09 08:23:46 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
GrallocTextureHostOGL::SetCompositor(Compositor* aCompositor)
|
|
|
|
{
|
|
|
|
mTextureSource->SetCompositor(static_cast<CompositorOGL*>(aCompositor));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
GrallocTextureHostOGL::Lock()
|
|
|
|
{
|
|
|
|
return IsValid();
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
GrallocTextureHostOGL::Unlock()
|
|
|
|
{
|
|
|
|
// Unlock is done internally by binding the texture to another gralloc buffer
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
GrallocTextureHostOGL::IsValid() const
|
|
|
|
{
|
|
|
|
return mTextureSource->IsValid();
|
|
|
|
}
|
|
|
|
|
|
|
|
gfx::SurfaceFormat
|
|
|
|
GrallocTextureHostOGL::GetFormat() const
|
|
|
|
{
|
|
|
|
return mTextureSource->GetFormat();
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
GrallocTextureHostOGL::DeallocateSharedData()
|
|
|
|
{
|
|
|
|
if (mTextureSource) {
|
|
|
|
mTextureSource->ForgetBuffer();
|
|
|
|
}
|
2014-02-06 17:32:29 -08:00
|
|
|
if (mGrallocActor) {
|
|
|
|
PGrallocBufferParent::Send__delete__(mGrallocActor);
|
|
|
|
}
|
2013-08-09 08:23:46 -07:00
|
|
|
}
|
|
|
|
|
2013-12-11 17:44:45 -08:00
|
|
|
void
|
|
|
|
GrallocTextureHostOGL::ForgetSharedData()
|
|
|
|
{
|
|
|
|
if (mTextureSource) {
|
|
|
|
mTextureSource->ForgetBuffer();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-09 08:23:46 -07:00
|
|
|
void
|
|
|
|
GrallocTextureHostOGL::DeallocateDeviceData()
|
|
|
|
{
|
|
|
|
mTextureSource->DeallocateDeviceData();
|
|
|
|
}
|
|
|
|
|
|
|
|
LayerRenderState
|
|
|
|
GrallocTextureHostOGL::GetRenderState()
|
|
|
|
{
|
|
|
|
if (IsValid()) {
|
|
|
|
uint32_t flags = 0;
|
|
|
|
if (mFlags & TEXTURE_NEEDS_Y_FLIP) {
|
|
|
|
flags |= LAYER_RENDER_STATE_Y_FLIPPED;
|
|
|
|
}
|
|
|
|
if (mFlags & TEXTURE_RB_SWAPPED) {
|
|
|
|
flags |= LAYER_RENDER_STATE_FORMAT_RB_SWAP;
|
|
|
|
}
|
|
|
|
return LayerRenderState(mTextureSource->mGraphicBuffer.get(),
|
|
|
|
gfx::ThebesIntSize(mSize),
|
2014-02-24 20:23:41 -08:00
|
|
|
flags,
|
|
|
|
this);
|
2013-08-09 08:23:46 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return LayerRenderState();
|
|
|
|
}
|
|
|
|
|
2013-11-27 01:59:01 -08:00
|
|
|
TemporaryRef<gfx::DataSourceSurface>
|
2013-08-09 08:23:46 -07:00
|
|
|
GrallocTextureHostOGL::GetAsSurface() {
|
|
|
|
return mTextureSource ? mTextureSource->GetAsSurface()
|
|
|
|
: nullptr;
|
|
|
|
}
|
|
|
|
|
2013-11-27 01:59:01 -08:00
|
|
|
TemporaryRef<gfx::DataSourceSurface>
|
2013-08-09 08:23:46 -07:00
|
|
|
GrallocTextureSourceOGL::GetAsSurface() {
|
|
|
|
MOZ_ASSERT(gl());
|
|
|
|
gl()->MakeCurrent();
|
|
|
|
|
2013-09-17 06:29:19 -07:00
|
|
|
GLuint tex = GetGLTexture();
|
2013-08-09 08:23:46 -07:00
|
|
|
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
|
|
|
gl()->fBindTexture(GetTextureTarget(), tex);
|
|
|
|
if (!mEGLImage) {
|
2013-12-09 21:47:19 -08:00
|
|
|
mEGLImage = EGLImageCreateFromNativeBuffer(gl(), mGraphicBuffer->getNativeBuffer());
|
2013-08-09 08:23:46 -07:00
|
|
|
}
|
|
|
|
gl()->fEGLImageTargetTexture2D(GetTextureTarget(), mEGLImage);
|
|
|
|
|
2013-11-27 01:59:01 -08:00
|
|
|
RefPtr<gfx::DataSourceSurface> surf =
|
|
|
|
IsValid() ? ReadBackSurface(gl(), tex, false, GetFormat())
|
|
|
|
: nullptr;
|
2013-08-09 08:23:46 -07:00
|
|
|
|
|
|
|
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
|
|
|
return surf.forget();
|
|
|
|
}
|
|
|
|
|
2013-09-17 06:29:19 -07:00
|
|
|
GLuint
|
|
|
|
GrallocTextureSourceOGL::GetGLTexture()
|
|
|
|
{
|
2013-09-30 05:14:38 -07:00
|
|
|
mCompositableBackendData->SetCompositor(mCompositor);
|
|
|
|
return static_cast<CompositableDataGonkOGL*>(mCompositableBackendData.get())->GetTexture();
|
2013-09-17 06:29:19 -07:00
|
|
|
}
|
|
|
|
|
2013-09-12 19:39:26 -07:00
|
|
|
void
|
2013-09-30 05:14:38 -07:00
|
|
|
GrallocTextureHostOGL::SetCompositableBackendSpecificData(CompositableBackendSpecificData* aBackendData)
|
2013-09-12 19:39:26 -07:00
|
|
|
{
|
2013-09-30 05:14:38 -07:00
|
|
|
mCompositableBackendData = aBackendData;
|
2013-09-12 19:39:26 -07:00
|
|
|
if (mTextureSource) {
|
2013-09-30 05:14:38 -07:00
|
|
|
mTextureSource->SetCompositableBackendSpecificData(aBackendData);
|
2013-09-12 19:39:26 -07:00
|
|
|
}
|
2014-02-24 20:23:41 -08:00
|
|
|
// Register this object to CompositableBackendSpecificData
|
|
|
|
// as current TextureHost.
|
|
|
|
if (aBackendData) {
|
|
|
|
aBackendData->SetCurrentReleaseFenceTexture(this);
|
|
|
|
}
|
2013-09-12 19:39:26 -07:00
|
|
|
}
|
|
|
|
|
2013-08-09 08:23:46 -07:00
|
|
|
} // namepsace layers
|
|
|
|
} // namepsace mozilla
|