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
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
#ifndef MOZILLA_LAYERS_COMPOSITABLEFORWARDER
|
|
|
|
#define MOZILLA_LAYERS_COMPOSITABLEFORWARDER
|
|
|
|
|
2013-08-11 16:17:23 -07:00
|
|
|
#include <stdint.h> // for int32_t, uint64_t
|
2013-09-24 13:45:14 -07:00
|
|
|
#include "gfxTypes.h"
|
2013-08-11 16:17:23 -07:00
|
|
|
#include "mozilla/Attributes.h" // for MOZ_OVERRIDE
|
|
|
|
#include "mozilla/layers/CompositorTypes.h"
|
|
|
|
#include "mozilla/layers/ISurfaceAllocator.h" // for ISurfaceAllocator
|
|
|
|
#include "mozilla/layers/LayersTypes.h" // for LayersBackend
|
2014-01-23 06:31:12 -08:00
|
|
|
#include "mozilla/layers/TextureClient.h" // for TextureClient
|
2013-08-11 16:17:23 -07:00
|
|
|
#include "nsRegion.h" // for nsIntRegion
|
|
|
|
|
|
|
|
struct nsIntPoint;
|
|
|
|
struct nsIntRect;
|
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
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
class CompositableClient;
|
2014-05-12 07:39:25 -07:00
|
|
|
class AsyncTransactionTracker;
|
2014-06-18 17:57:51 -07:00
|
|
|
struct TextureFactoryIdentifier;
|
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
|
|
|
class SurfaceDescriptor;
|
2013-08-19 06:59:22 -07:00
|
|
|
class SurfaceDescriptorTiles;
|
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
|
|
|
class ThebesBufferData;
|
2014-03-07 13:34:04 -08:00
|
|
|
class ClientTiledLayerBuffer;
|
2013-12-11 17:44:44 -08:00
|
|
|
class PTextureChild;
|
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
|
|
|
|
|
|
|
/**
|
|
|
|
* A transaction is a set of changes that happenned on the content side, that
|
|
|
|
* should be sent to the compositor side.
|
|
|
|
* CompositableForwarder is an interface to manage a transaction of
|
|
|
|
* compositable objetcs.
|
|
|
|
*
|
|
|
|
* ShadowLayerForwarder is an example of a CompositableForwarder (that can
|
|
|
|
* additionally forward modifications of the Layer tree).
|
|
|
|
* ImageBridgeChild is another CompositableForwarder.
|
|
|
|
*/
|
|
|
|
class CompositableForwarder : public ISurfaceAllocator
|
|
|
|
{
|
|
|
|
public:
|
2013-05-15 20:45:43 -07:00
|
|
|
|
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
|
|
|
CompositableForwarder()
|
2014-02-16 14:23:39 -08:00
|
|
|
: mSerial(++sSerialCounter)
|
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
|
|
|
{}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Setup the IPDL actor for aCompositable to be part of layers
|
|
|
|
* transactions.
|
|
|
|
*/
|
|
|
|
virtual void Connect(CompositableClient* aCompositable) = 0;
|
|
|
|
|
2013-05-15 20:45:43 -07:00
|
|
|
/**
|
|
|
|
* Notify the CompositableHost that it should create host-side-only
|
|
|
|
* texture(s), that we will update incrementally using UpdateTextureIncremental.
|
|
|
|
*/
|
|
|
|
virtual void CreatedIncrementalBuffer(CompositableClient* aCompositable,
|
|
|
|
const TextureInfo& aTextureInfo,
|
|
|
|
const nsIntRect& aBufferRect) = 0;
|
|
|
|
|
2014-03-07 13:34:04 -08:00
|
|
|
/**
|
|
|
|
* Tell the CompositableHost on the compositor side what TiledLayerBuffer to
|
|
|
|
* use for the next composition.
|
|
|
|
*/
|
|
|
|
virtual void UseTiledLayerBuffer(CompositableClient* aCompositable,
|
|
|
|
const SurfaceDescriptorTiles& aTiledDescriptor) = 0;
|
2013-04-16 14:36:06 -07:00
|
|
|
|
2013-12-11 17:44:44 -08:00
|
|
|
/**
|
2014-01-21 14:06:18 -08:00
|
|
|
* Create a TextureChild/Parent pair as as well as the TextureHost on the parent side.
|
2013-12-11 17:44:44 -08:00
|
|
|
*/
|
2014-01-21 14:06:18 -08:00
|
|
|
virtual PTextureChild* CreateTexture(const SurfaceDescriptor& aSharedData, TextureFlags aFlags) = 0;
|
2013-12-11 17:44:44 -08:00
|
|
|
|
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
|
|
|
/**
|
2013-04-12 00:28:55 -07:00
|
|
|
* Communicate to the compositor that aRegion in the texture identified by
|
|
|
|
* aCompositable and aIdentifier has been updated to aThebesBuffer.
|
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
|
|
|
*/
|
|
|
|
virtual void UpdateTextureRegion(CompositableClient* aCompositable,
|
|
|
|
const ThebesBufferData& aThebesBufferData,
|
|
|
|
const nsIntRegion& aUpdatedRegion) = 0;
|
|
|
|
|
2013-05-15 20:45:43 -07:00
|
|
|
/**
|
|
|
|
* Notify the compositor to update aTextureId using aDescriptor, and take
|
|
|
|
* ownership of aDescriptor.
|
|
|
|
*
|
|
|
|
* aDescriptor only contains the pixels for aUpdatedRegion, and is relative
|
|
|
|
* to aUpdatedRegion.TopLeft().
|
|
|
|
*
|
|
|
|
* aBufferRect/aBufferRotation define the new valid region contained
|
|
|
|
* within the texture after the update has been applied.
|
|
|
|
*/
|
|
|
|
virtual void UpdateTextureIncremental(CompositableClient* aCompositable,
|
|
|
|
TextureIdentifier aTextureId,
|
|
|
|
SurfaceDescriptor& aDescriptor,
|
|
|
|
const nsIntRegion& aUpdatedRegion,
|
|
|
|
const nsIntRect& aBufferRect,
|
|
|
|
const nsIntPoint& aBufferRotation) = 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
|
|
|
/**
|
|
|
|
* Communicate the picture rect of a YUV image in aLayer to the compositor
|
|
|
|
*/
|
|
|
|
virtual void UpdatePictureRect(CompositableClient* aCompositable,
|
|
|
|
const nsIntRect& aRect) = 0;
|
|
|
|
|
2014-02-10 12:52:35 -08:00
|
|
|
/**
|
2014-05-12 07:39:25 -07:00
|
|
|
* Tell the CompositableHost on the compositor side to remove the texture
|
|
|
|
* from the CompositableHost.
|
2014-02-10 12:52:35 -08:00
|
|
|
* This function does not delete the TextureHost corresponding to the
|
|
|
|
* TextureClient passed in parameter.
|
2014-05-12 07:39:25 -07:00
|
|
|
* When the TextureClient has TEXTURE_DEALLOCATE_CLIENT flag,
|
|
|
|
* the transaction becomes synchronous.
|
2014-02-10 12:52:35 -08:00
|
|
|
*/
|
|
|
|
virtual void RemoveTextureFromCompositable(CompositableClient* aCompositable,
|
|
|
|
TextureClient* aTexture) = 0;
|
|
|
|
|
2014-05-12 07:39:25 -07:00
|
|
|
/**
|
|
|
|
* Tell the CompositableHost on the compositor side to remove the texture
|
|
|
|
* from the CompositableHost. The compositor side sends back transaction
|
|
|
|
* complete message.
|
|
|
|
* This function does not delete the TextureHost corresponding to the
|
|
|
|
* TextureClient passed in parameter.
|
|
|
|
* It is used when the TextureClient recycled.
|
|
|
|
* Only ImageBridge implements it.
|
|
|
|
*/
|
|
|
|
virtual void RemoveTextureFromCompositableAsync(AsyncTransactionTracker* aAsyncTransactionTracker,
|
|
|
|
CompositableClient* aCompositable,
|
|
|
|
TextureClient* aTexture) {}
|
|
|
|
|
2013-07-30 02:59:51 -07:00
|
|
|
/**
|
2013-12-11 17:44:44 -08:00
|
|
|
* Tell the compositor side to delete the TextureHost corresponding to the
|
|
|
|
* TextureClient passed in parameter.
|
2013-07-30 02:59:51 -07:00
|
|
|
*/
|
2013-12-11 17:44:45 -08:00
|
|
|
virtual void RemoveTexture(TextureClient* aTexture) = 0;
|
2013-07-30 02:59:51 -07:00
|
|
|
|
2014-01-23 06:31:12 -08:00
|
|
|
/**
|
2014-02-09 18:24:27 -08:00
|
|
|
* Holds a reference to a TextureClient until after the next
|
|
|
|
* compositor transaction, and then drops it.
|
2014-01-23 06:31:12 -08:00
|
|
|
*/
|
2014-02-09 18:24:27 -08:00
|
|
|
virtual void HoldUntilTransaction(TextureClient* aClient)
|
2014-01-23 06:31:12 -08:00
|
|
|
{
|
|
|
|
if (aClient) {
|
2014-02-09 18:24:27 -08:00
|
|
|
mTexturesToRemove.AppendElement(aClient);
|
2014-01-23 06:31:12 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Forcibly remove texture data from TextureClient
|
|
|
|
* This function needs to be called after a tansaction with Compositor.
|
|
|
|
*/
|
2014-02-09 18:24:27 -08:00
|
|
|
virtual void RemoveTexturesIfNecessary()
|
2014-01-23 06:31:12 -08:00
|
|
|
{
|
2014-02-09 18:24:27 -08:00
|
|
|
mTexturesToRemove.Clear();
|
2014-01-23 06:31:12 -08:00
|
|
|
}
|
|
|
|
|
2014-05-05 18:56:40 -07:00
|
|
|
virtual void HoldTransactionsToRespond(uint64_t aTransactionId)
|
|
|
|
{
|
|
|
|
mTransactionsToRespond.push_back(aTransactionId);
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void ClearTransactionsToRespond()
|
|
|
|
{
|
|
|
|
mTransactionsToRespond.clear();
|
|
|
|
}
|
|
|
|
|
2013-07-30 02:59:51 -07:00
|
|
|
/**
|
|
|
|
* Tell the CompositableHost on the compositor side what texture to use for
|
|
|
|
* the next composition.
|
|
|
|
*/
|
|
|
|
virtual void UseTexture(CompositableClient* aCompositable,
|
|
|
|
TextureClient* aClient) = 0;
|
2014-02-06 03:28:29 -08:00
|
|
|
virtual void UseComponentAlphaTextures(CompositableClient* aCompositable,
|
|
|
|
TextureClient* aClientOnBlack,
|
|
|
|
TextureClient* aClientOnWhite) = 0;
|
2013-07-30 02:59:51 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Tell the compositor side that the shared data has been modified so that
|
|
|
|
* it can react accordingly (upload textures, etc.).
|
|
|
|
*/
|
|
|
|
virtual void UpdatedTexture(CompositableClient* aCompositable,
|
|
|
|
TextureClient* aTexture,
|
|
|
|
nsIntRegion* aRegion) = 0;
|
|
|
|
|
2014-06-08 06:18:53 -07:00
|
|
|
|
|
|
|
virtual void SendFenceHandle(AsyncTransactionTracker* aTracker,
|
|
|
|
PTextureChild* aTexture,
|
|
|
|
const FenceHandle& aFence) = 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
|
|
|
void IdentifyTextureHost(const TextureFactoryIdentifier& aIdentifier);
|
|
|
|
|
2014-03-12 05:16:37 -07:00
|
|
|
virtual int32_t GetMaxTextureSize() const MOZ_OVERRIDE
|
|
|
|
{
|
|
|
|
return mTextureFactoryIdentifier.mMaxTextureSize;
|
|
|
|
}
|
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 IsOnCompositorSide() const MOZ_OVERRIDE { return false; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the type of backend that is used off the main thread.
|
|
|
|
* We only don't allow changing the backend type at runtime so this value can
|
|
|
|
* be queried once and will not change until Gecko is restarted.
|
|
|
|
*/
|
2014-03-07 13:34:04 -08:00
|
|
|
virtual LayersBackend GetCompositorBackendType() const MOZ_OVERRIDE
|
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
|
|
|
{
|
2013-07-11 19:32:09 -07:00
|
|
|
return mTextureFactoryIdentifier.mParentBackend;
|
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
|
|
|
}
|
|
|
|
|
2013-05-15 20:45:43 -07:00
|
|
|
bool SupportsTextureBlitting() const
|
|
|
|
{
|
2013-07-11 19:32:09 -07:00
|
|
|
return mTextureFactoryIdentifier.mSupportsTextureBlitting;
|
2013-05-15 20:45:43 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
bool SupportsPartialUploads() const
|
|
|
|
{
|
2013-07-11 19:32:09 -07:00
|
|
|
return mTextureFactoryIdentifier.mSupportsPartialUploads;
|
2013-05-15 20:45:43 -07:00
|
|
|
}
|
|
|
|
|
2013-11-27 07:19:34 -08:00
|
|
|
const TextureFactoryIdentifier& GetTextureFactoryIdentifier() const
|
|
|
|
{
|
|
|
|
return mTextureFactoryIdentifier;
|
|
|
|
}
|
|
|
|
|
2014-02-16 14:23:39 -08:00
|
|
|
int32_t GetSerial() { return mSerial; }
|
|
|
|
|
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
|
|
|
protected:
|
2013-07-11 19:32:09 -07:00
|
|
|
TextureFactoryIdentifier mTextureFactoryIdentifier;
|
2014-02-16 15:17:01 -08:00
|
|
|
nsTArray<RefPtr<TextureClient> > mTexturesToRemove;
|
2014-05-05 18:56:40 -07:00
|
|
|
std::vector<uint64_t> mTransactionsToRespond;
|
2014-02-16 14:23:39 -08:00
|
|
|
const int32_t mSerial;
|
|
|
|
static mozilla::Atomic<int32_t> sSerialCounter;
|
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
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|