2012-12-12 14:47:28 -08:00
|
|
|
/* 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 "SharedRGBImage.h"
|
2013-08-11 16:17:23 -07:00
|
|
|
#include "ImageTypes.h" // for ImageFormat::SHARED_RGB, etc
|
|
|
|
#include "Shmem.h" // for Shmem
|
|
|
|
#include "gfx2DGlue.h" // for ImageFormatToSurfaceFormat, etc
|
|
|
|
#include "gfxPlatform.h" // for gfxPlatform, gfxImageFormat
|
|
|
|
#include "mozilla/layers/ISurfaceAllocator.h" // for ISurfaceAllocator, etc
|
|
|
|
#include "mozilla/layers/ImageClient.h" // for ImageClient
|
2013-12-02 13:25:27 -08:00
|
|
|
#include "mozilla/layers/ImageDataSerializer.h" // for ImageDataSerializer
|
2013-08-11 16:17:23 -07:00
|
|
|
#include "mozilla/layers/LayersSurfaces.h" // for SurfaceDescriptor, etc
|
|
|
|
#include "mozilla/layers/TextureClient.h" // for BufferTextureClient, etc
|
2013-10-01 20:05:35 -07:00
|
|
|
#include "mozilla/layers/ImageBridgeChild.h" // for ImageBridgeChild
|
2013-08-11 16:17:23 -07:00
|
|
|
#include "mozilla/mozalloc.h" // for operator delete, etc
|
|
|
|
#include "nsAutoPtr.h" // for nsRefPtr
|
|
|
|
#include "nsDebug.h" // for NS_WARNING, NS_ASSERTION
|
|
|
|
#include "nsISupportsImpl.h" // for Image::AddRef, etc
|
|
|
|
#include "nsRect.h" // for nsIntRect
|
|
|
|
#include "nsSize.h" // for nsIntSize
|
2012-12-12 14:47:28 -08:00
|
|
|
|
|
|
|
// Just big enough for a 1080p RGBA32 frame
|
|
|
|
#define MAX_FRAME_SIZE (16 * 1024 * 1024)
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
2013-07-24 09:08:35 -07:00
|
|
|
DeprecatedSharedRGBImage::DeprecatedSharedRGBImage(ISurfaceAllocator *aAllocator) :
|
2014-01-30 14:58:49 -08:00
|
|
|
Image(nullptr, ImageFormat::SHARED_RGB),
|
2012-12-12 14:47:28 -08:00
|
|
|
mSize(0, 0),
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 02:20:52 -07:00
|
|
|
mSurfaceAllocator(aAllocator),
|
2012-12-12 14:47:28 -08:00
|
|
|
mAllocated(false),
|
|
|
|
mShmem(new ipc::Shmem())
|
|
|
|
{
|
2013-07-24 09:08:35 -07:00
|
|
|
MOZ_COUNT_CTOR(DeprecatedSharedRGBImage);
|
2012-12-12 14:47:28 -08:00
|
|
|
}
|
|
|
|
|
2013-07-24 09:08:35 -07:00
|
|
|
DeprecatedSharedRGBImage::~DeprecatedSharedRGBImage()
|
2012-12-12 14:47:28 -08:00
|
|
|
{
|
2013-07-24 09:08:35 -07:00
|
|
|
MOZ_COUNT_DTOR(DeprecatedSharedRGBImage);
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 02:20:52 -07:00
|
|
|
|
|
|
|
if (mAllocated) {
|
|
|
|
SurfaceDescriptor desc;
|
|
|
|
DropToSurfaceDescriptor(desc);
|
|
|
|
mSurfaceAllocator->DestroySharedSurface(&desc);
|
|
|
|
}
|
2012-12-12 14:47:28 -08:00
|
|
|
delete mShmem;
|
|
|
|
}
|
|
|
|
|
2013-07-30 02:59:51 -07:00
|
|
|
already_AddRefed<Image>
|
|
|
|
CreateSharedRGBImage(ImageContainer *aImageContainer,
|
|
|
|
nsIntSize aSize,
|
|
|
|
gfxImageFormat aImageFormat)
|
2012-12-12 14:47:28 -08:00
|
|
|
{
|
2014-01-23 10:26:40 -08:00
|
|
|
NS_ASSERTION(aImageFormat == gfxImageFormat::ARGB32 ||
|
|
|
|
aImageFormat == gfxImageFormat::RGB24 ||
|
|
|
|
aImageFormat == gfxImageFormat::RGB16_565,
|
2012-12-12 14:47:28 -08:00
|
|
|
"RGB formats supported only");
|
|
|
|
|
|
|
|
if (!aImageContainer) {
|
2013-07-24 09:08:35 -07:00
|
|
|
NS_WARNING("No ImageContainer to allocate DeprecatedSharedRGBImage");
|
2012-12-12 14:47:28 -08:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2014-01-30 14:58:51 -08:00
|
|
|
nsRefPtr<Image> image = aImageContainer->CreateImage(ImageFormat::SHARED_RGB);
|
2012-12-12 14:47:28 -08:00
|
|
|
|
|
|
|
if (!image) {
|
2013-07-24 09:08:35 -07:00
|
|
|
NS_WARNING("Failed to create DeprecatedSharedRGBImage");
|
2012-12-12 14:47:28 -08:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2013-07-30 02:59:51 -07:00
|
|
|
if (gfxPlatform::GetPlatform()->UseDeprecatedTextures()) {
|
2013-08-08 05:53:12 -07:00
|
|
|
nsRefPtr<DeprecatedSharedRGBImage> rgbImageDep = static_cast<DeprecatedSharedRGBImage*>(image.get());
|
2013-12-31 01:06:12 -08:00
|
|
|
rgbImageDep->mSize = aSize.ToIntSize();
|
2013-08-08 05:53:12 -07:00
|
|
|
rgbImageDep->mImageFormat = aImageFormat;
|
2012-12-12 14:47:28 -08:00
|
|
|
|
2013-08-08 05:53:12 -07:00
|
|
|
if (!rgbImageDep->AllocateBuffer(aSize, aImageFormat)) {
|
|
|
|
NS_WARNING("Failed to allocate shared memory for DeprecatedSharedRGBImage");
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
return rgbImageDep.forget();
|
2012-12-12 14:47:28 -08:00
|
|
|
}
|
2013-07-30 02:59:51 -07:00
|
|
|
nsRefPtr<SharedRGBImage> rgbImage = static_cast<SharedRGBImage*>(image.get());
|
2013-12-06 07:30:50 -08:00
|
|
|
if (!rgbImage->Allocate(gfx::ToIntSize(aSize),
|
|
|
|
gfx::ImageFormatToSurfaceFormat(aImageFormat))) {
|
|
|
|
NS_WARNING("Failed to allocate a shared image");
|
|
|
|
return nullptr;
|
|
|
|
}
|
2013-07-30 02:59:51 -07:00
|
|
|
return image.forget();
|
2012-12-12 14:47:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
uint8_t *
|
2013-07-24 09:08:35 -07:00
|
|
|
DeprecatedSharedRGBImage::GetBuffer()
|
2012-12-12 14:47:28 -08:00
|
|
|
{
|
|
|
|
return mShmem->get<uint8_t>();
|
|
|
|
}
|
|
|
|
|
|
|
|
size_t
|
2013-07-24 09:08:35 -07:00
|
|
|
DeprecatedSharedRGBImage::GetBufferSize()
|
2012-12-12 14:47:28 -08:00
|
|
|
{
|
|
|
|
return mSize.width * mSize.height * gfxASurface::BytesPerPixel(mImageFormat);
|
|
|
|
}
|
|
|
|
|
2013-12-13 09:32:02 -08:00
|
|
|
gfx::IntSize
|
2013-07-24 09:08:35 -07:00
|
|
|
DeprecatedSharedRGBImage::GetSize()
|
2012-12-12 14:47:28 -08:00
|
|
|
{
|
|
|
|
return mSize;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
2013-07-24 09:08:35 -07:00
|
|
|
DeprecatedSharedRGBImage::AllocateBuffer(nsIntSize aSize, gfxImageFormat aImageFormat)
|
2012-12-12 14:47:28 -08:00
|
|
|
{
|
|
|
|
if (mAllocated) {
|
|
|
|
NS_WARNING("Already allocated shmem");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
size_t size = GetBufferSize();
|
|
|
|
|
|
|
|
if (size == 0 || size > MAX_FRAME_SIZE) {
|
|
|
|
NS_WARNING("Invalid frame size");
|
|
|
|
}
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 02:20:52 -07:00
|
|
|
if (mSurfaceAllocator->AllocUnsafeShmem(size, OptimalShmemType(), mShmem)) {
|
2012-12-12 14:47:28 -08:00
|
|
|
mAllocated = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return mAllocated;
|
|
|
|
}
|
|
|
|
|
|
|
|
already_AddRefed<gfxASurface>
|
2014-01-15 07:06:43 -08:00
|
|
|
DeprecatedSharedRGBImage::DeprecatedGetAsSurface()
|
2012-12-12 14:47:28 -08:00
|
|
|
{
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2014-01-28 07:27:36 -08:00
|
|
|
TemporaryRef<gfx::SourceSurface>
|
|
|
|
DeprecatedSharedRGBImage::GetAsSourceSurface()
|
|
|
|
{
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 02:20:52 -07:00
|
|
|
bool
|
2013-07-24 09:08:35 -07:00
|
|
|
DeprecatedSharedRGBImage::ToSurfaceDescriptor(SurfaceDescriptor& aResult)
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 02:20:52 -07:00
|
|
|
{
|
|
|
|
if (!mAllocated) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
this->AddRef();
|
|
|
|
aResult = RGBImage(*mShmem,
|
|
|
|
nsIntRect(0, 0, mSize.width, mSize.height),
|
|
|
|
mImageFormat,
|
|
|
|
reinterpret_cast<uint64_t>(this));
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
2013-07-24 09:08:35 -07:00
|
|
|
DeprecatedSharedRGBImage::DropToSurfaceDescriptor(SurfaceDescriptor& aResult)
|
2012-12-12 14:47:28 -08:00
|
|
|
{
|
|
|
|
if (!mAllocated) {
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 02:20:52 -07:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
aResult = RGBImage(*mShmem,
|
|
|
|
nsIntRect(0, 0, mSize.width, mSize.height),
|
|
|
|
mImageFormat,
|
|
|
|
0);
|
|
|
|
*mShmem = ipc::Shmem();
|
|
|
|
mAllocated = false;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-07-24 09:08:35 -07:00
|
|
|
DeprecatedSharedRGBImage*
|
|
|
|
DeprecatedSharedRGBImage::FromSurfaceDescriptor(const SurfaceDescriptor& aDescriptor)
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 02:20:52 -07:00
|
|
|
{
|
|
|
|
if (aDescriptor.type() != SurfaceDescriptor::TRGBImage) {
|
2012-12-12 14:47:28 -08:00
|
|
|
return nullptr;
|
|
|
|
}
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 02:20:52 -07:00
|
|
|
const RGBImage& rgb = aDescriptor.get_RGBImage();
|
|
|
|
if (rgb.owner() == 0) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
2013-07-24 09:08:35 -07:00
|
|
|
return reinterpret_cast<DeprecatedSharedRGBImage*>(rgb.owner());
|
2012-12-12 14:47:28 -08:00
|
|
|
}
|
|
|
|
|
2013-07-30 02:59:51 -07:00
|
|
|
SharedRGBImage::SharedRGBImage(ImageClient* aCompositable)
|
2014-01-30 14:58:49 -08:00
|
|
|
: Image(nullptr, ImageFormat::SHARED_RGB)
|
2013-07-30 02:59:51 -07:00
|
|
|
, mCompositable(aCompositable)
|
|
|
|
{
|
|
|
|
MOZ_COUNT_CTOR(SharedRGBImage);
|
|
|
|
}
|
|
|
|
|
|
|
|
SharedRGBImage::~SharedRGBImage()
|
|
|
|
{
|
|
|
|
MOZ_COUNT_DTOR(SharedRGBImage);
|
2013-10-01 20:05:35 -07:00
|
|
|
|
|
|
|
if (mCompositable->GetAsyncID() != 0 &&
|
|
|
|
!InImageBridgeChildThread()) {
|
|
|
|
ImageBridgeChild::DispatchReleaseTextureClient(mTextureClient.forget().drop());
|
|
|
|
ImageBridgeChild::DispatchReleaseImageClient(mCompositable.forget().drop());
|
|
|
|
}
|
2013-07-30 02:59:51 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
SharedRGBImage::Allocate(gfx::IntSize aSize, gfx::SurfaceFormat aFormat)
|
|
|
|
{
|
|
|
|
mSize = aSize;
|
|
|
|
mTextureClient = mCompositable->CreateBufferTextureClient(aFormat);
|
|
|
|
return mTextureClient->AllocateForSurface(aSize);
|
|
|
|
}
|
|
|
|
|
|
|
|
uint8_t*
|
|
|
|
SharedRGBImage::GetBuffer()
|
|
|
|
{
|
2013-12-02 13:25:27 -08:00
|
|
|
if (!mTextureClient) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2014-02-20 13:04:11 -08:00
|
|
|
ImageDataSerializer serializer(mTextureClient->GetBuffer(), mTextureClient->GetBufferSize());
|
2013-12-02 13:25:27 -08:00
|
|
|
return serializer.GetData();
|
2013-07-30 02:59:51 -07:00
|
|
|
}
|
|
|
|
|
2013-12-13 09:32:02 -08:00
|
|
|
gfx::IntSize
|
2013-07-30 02:59:51 -07:00
|
|
|
SharedRGBImage::GetSize()
|
|
|
|
{
|
2013-12-31 01:06:12 -08:00
|
|
|
return mSize;
|
2013-07-30 02:59:51 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
size_t
|
|
|
|
SharedRGBImage::GetBufferSize()
|
|
|
|
{
|
|
|
|
return mTextureClient ? mTextureClient->GetBufferSize()
|
|
|
|
: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
TextureClient*
|
2014-02-16 14:23:39 -08:00
|
|
|
SharedRGBImage::GetTextureClient(CompositableClient* aClient)
|
2013-07-30 02:59:51 -07:00
|
|
|
{
|
|
|
|
return mTextureClient.get();
|
|
|
|
}
|
|
|
|
|
|
|
|
already_AddRefed<gfxASurface>
|
2014-01-15 07:06:43 -08:00
|
|
|
SharedRGBImage::DeprecatedGetAsSurface()
|
2013-07-30 02:59:51 -07:00
|
|
|
{
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2014-01-17 08:22:56 -08:00
|
|
|
TemporaryRef<gfx::SourceSurface>
|
|
|
|
SharedRGBImage::GetAsSourceSurface()
|
|
|
|
{
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 02:20:52 -07:00
|
|
|
|
2012-12-12 14:47:28 -08:00
|
|
|
} // namespace layers
|
|
|
|
} // namespace mozilla
|