зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1050609 - Fix more bad implicit constructors in gfx/layers; r=roc
This commit is contained in:
Родитель
5ba894ef8c
Коммит
015ce11986
|
@ -197,7 +197,7 @@ protected:
|
||||||
public:
|
public:
|
||||||
NS_INLINE_DECL_REFCOUNTING(Compositor)
|
NS_INLINE_DECL_REFCOUNTING(Compositor)
|
||||||
|
|
||||||
Compositor(PCompositorParent* aParent = nullptr)
|
explicit Compositor(PCompositorParent* aParent = nullptr)
|
||||||
: mCompositorID(0)
|
: mCompositorID(0)
|
||||||
, mDiagnosticTypes(DiagnosticTypes::NO_DIAGNOSTIC)
|
, mDiagnosticTypes(DiagnosticTypes::NO_DIAGNOSTIC)
|
||||||
, mParent(aParent)
|
, mParent(aParent)
|
||||||
|
|
|
@ -42,7 +42,7 @@ struct Effect
|
||||||
{
|
{
|
||||||
NS_INLINE_DECL_REFCOUNTING(Effect)
|
NS_INLINE_DECL_REFCOUNTING(Effect)
|
||||||
|
|
||||||
Effect(EffectTypes aType) : mType(aType) {}
|
explicit Effect(EffectTypes aType) : mType(aType) {}
|
||||||
|
|
||||||
EffectTypes mType;
|
EffectTypes mType;
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ struct EffectMask : public Effect
|
||||||
|
|
||||||
struct EffectBlendMode : public Effect
|
struct EffectBlendMode : public Effect
|
||||||
{
|
{
|
||||||
EffectBlendMode(gfx::CompositionOp aBlendMode)
|
explicit EffectBlendMode(gfx::CompositionOp aBlendMode)
|
||||||
: Effect(EffectTypes::BLEND_MODE)
|
: Effect(EffectTypes::BLEND_MODE)
|
||||||
, mBlendMode(aBlendMode)
|
, mBlendMode(aBlendMode)
|
||||||
{ }
|
{ }
|
||||||
|
@ -112,7 +112,7 @@ struct EffectBlendMode : public Effect
|
||||||
// Render to a render target rather than the screen.
|
// Render to a render target rather than the screen.
|
||||||
struct EffectRenderTarget : public TexturedEffect
|
struct EffectRenderTarget : public TexturedEffect
|
||||||
{
|
{
|
||||||
EffectRenderTarget(CompositingRenderTarget *aRenderTarget)
|
explicit EffectRenderTarget(CompositingRenderTarget *aRenderTarget)
|
||||||
: TexturedEffect(EffectTypes::RENDER_TARGET, aRenderTarget, true, gfx::Filter::LINEAR)
|
: TexturedEffect(EffectTypes::RENDER_TARGET, aRenderTarget, true, gfx::Filter::LINEAR)
|
||||||
, mRenderTarget(aRenderTarget)
|
, mRenderTarget(aRenderTarget)
|
||||||
{}
|
{}
|
||||||
|
@ -183,7 +183,7 @@ struct EffectComponentAlpha : public TexturedEffect
|
||||||
|
|
||||||
struct EffectSolidColor : public Effect
|
struct EffectSolidColor : public Effect
|
||||||
{
|
{
|
||||||
EffectSolidColor(const gfx::Color &aColor)
|
explicit EffectSolidColor(const gfx::Color &aColor)
|
||||||
: Effect(EffectTypes::SOLID_COLOR)
|
: Effect(EffectTypes::SOLID_COLOR)
|
||||||
, mColor(aColor)
|
, mColor(aColor)
|
||||||
{}
|
{}
|
||||||
|
|
|
@ -57,7 +57,7 @@ public:
|
||||||
*/
|
*/
|
||||||
class SurfaceReleaser : public nsRunnable {
|
class SurfaceReleaser : public nsRunnable {
|
||||||
public:
|
public:
|
||||||
SurfaceReleaser(RawRef aRef) : mRef(aRef) {}
|
explicit SurfaceReleaser(RawRef aRef) : mRef(aRef) {}
|
||||||
NS_IMETHOD Run() {
|
NS_IMETHOD Run() {
|
||||||
mRef->Release();
|
mRef->Release();
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
@ -350,7 +350,7 @@ public:
|
||||||
|
|
||||||
enum { DISABLE_ASYNC = 0x0, ENABLE_ASYNC = 0x01 };
|
enum { DISABLE_ASYNC = 0x0, ENABLE_ASYNC = 0x01 };
|
||||||
|
|
||||||
ImageContainer(int flag = 0);
|
explicit ImageContainer(int flag = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an Image in one of the given formats.
|
* Create an Image in one of the given formats.
|
||||||
|
@ -666,7 +666,7 @@ private:
|
||||||
class AutoLockImage
|
class AutoLockImage
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoLockImage(ImageContainer *aContainer) : mContainer(aContainer) { mImage = mContainer->LockCurrentImage(); }
|
explicit AutoLockImage(ImageContainer *aContainer) : mContainer(aContainer) { mImage = mContainer->LockCurrentImage(); }
|
||||||
AutoLockImage(ImageContainer *aContainer, RefPtr<gfx::SourceSurface> *aSurface) : mContainer(aContainer) {
|
AutoLockImage(ImageContainer *aContainer, RefPtr<gfx::SourceSurface> *aSurface) : mContainer(aContainer) {
|
||||||
*aSurface = mContainer->LockCurrentAsSourceSurface(&mSize, getter_AddRefs(mImage));
|
*aSurface = mContainer->LockCurrentAsSourceSurface(&mSize, getter_AddRefs(mImage));
|
||||||
}
|
}
|
||||||
|
@ -821,7 +821,7 @@ public:
|
||||||
|
|
||||||
virtual gfx::IntSize GetSize() { return mSize; }
|
virtual gfx::IntSize GetSize() { return mSize; }
|
||||||
|
|
||||||
PlanarYCbCrImage(BufferRecycleBin *aRecycleBin);
|
explicit PlanarYCbCrImage(BufferRecycleBin *aRecycleBin);
|
||||||
|
|
||||||
virtual SharedPlanarYCbCrImage *AsSharedPlanarYCbCrImage() { return nullptr; }
|
virtual SharedPlanarYCbCrImage *AsSharedPlanarYCbCrImage() { return nullptr; }
|
||||||
|
|
||||||
|
|
|
@ -366,7 +366,7 @@ StaticAutoPtr<LayerScopeWebSocketManager> WebSocketHelper::sWebSocketManager;
|
||||||
*/
|
*/
|
||||||
class DebugGLData: public LinkedListElement<DebugGLData> {
|
class DebugGLData: public LinkedListElement<DebugGLData> {
|
||||||
public:
|
public:
|
||||||
DebugGLData(Packet::DataType aDataType)
|
explicit DebugGLData(Packet::DataType aDataType)
|
||||||
: mDataType(aDataType)
|
: mDataType(aDataType)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
@ -399,7 +399,7 @@ public:
|
||||||
mFrameStamp(aValue)
|
mFrameStamp(aValue)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
DebugGLFrameStatusData(Packet::DataType aDataType)
|
explicit DebugGLFrameStatusData(Packet::DataType aDataType)
|
||||||
: DebugGLData(aDataType),
|
: DebugGLData(aDataType),
|
||||||
mFrameStamp(0)
|
mFrameStamp(0)
|
||||||
{ }
|
{ }
|
||||||
|
@ -547,7 +547,7 @@ protected:
|
||||||
|
|
||||||
class DebugGLLayersData : public DebugGLData {
|
class DebugGLLayersData : public DebugGLData {
|
||||||
public:
|
public:
|
||||||
DebugGLLayersData(UniquePtr<Packet> aPacket)
|
explicit DebugGLLayersData(UniquePtr<Packet> aPacket)
|
||||||
: DebugGLData(Packet::LAYERS),
|
: DebugGLData(Packet::LAYERS),
|
||||||
mPacket(Move(aPacket))
|
mPacket(Move(aPacket))
|
||||||
{ }
|
{ }
|
||||||
|
|
|
@ -41,7 +41,7 @@ public:
|
||||||
// Perform BeginFrame and EndFrame automatically
|
// Perform BeginFrame and EndFrame automatically
|
||||||
class LayerScopeAutoFrame {
|
class LayerScopeAutoFrame {
|
||||||
public:
|
public:
|
||||||
LayerScopeAutoFrame(int64_t aFrameStamp);
|
explicit LayerScopeAutoFrame(int64_t aFrameStamp);
|
||||||
~LayerScopeAutoFrame();
|
~LayerScopeAutoFrame();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -98,7 +98,7 @@ NotifySubdocumentInvalidationRecursive(Layer* aLayer, NotifySubDocInvalidationFu
|
||||||
|
|
||||||
struct LayerPropertiesBase : public LayerProperties
|
struct LayerPropertiesBase : public LayerProperties
|
||||||
{
|
{
|
||||||
LayerPropertiesBase(Layer* aLayer)
|
explicit LayerPropertiesBase(Layer* aLayer)
|
||||||
: mLayer(aLayer)
|
: mLayer(aLayer)
|
||||||
, mMaskLayer(nullptr)
|
, mMaskLayer(nullptr)
|
||||||
, mVisibleRegion(aLayer->GetVisibleRegion())
|
, mVisibleRegion(aLayer->GetVisibleRegion())
|
||||||
|
@ -212,7 +212,7 @@ struct LayerPropertiesBase : public LayerProperties
|
||||||
|
|
||||||
struct ContainerLayerProperties : public LayerPropertiesBase
|
struct ContainerLayerProperties : public LayerPropertiesBase
|
||||||
{
|
{
|
||||||
ContainerLayerProperties(ContainerLayer* aLayer)
|
explicit ContainerLayerProperties(ContainerLayer* aLayer)
|
||||||
: LayerPropertiesBase(aLayer)
|
: LayerPropertiesBase(aLayer)
|
||||||
, mPreXScale(aLayer->GetPreXScale())
|
, mPreXScale(aLayer->GetPreXScale())
|
||||||
, mPreYScale(aLayer->GetPreYScale())
|
, mPreYScale(aLayer->GetPreYScale())
|
||||||
|
@ -322,7 +322,7 @@ struct ContainerLayerProperties : public LayerPropertiesBase
|
||||||
|
|
||||||
struct ColorLayerProperties : public LayerPropertiesBase
|
struct ColorLayerProperties : public LayerPropertiesBase
|
||||||
{
|
{
|
||||||
ColorLayerProperties(ColorLayer *aLayer)
|
explicit ColorLayerProperties(ColorLayer *aLayer)
|
||||||
: LayerPropertiesBase(aLayer)
|
: LayerPropertiesBase(aLayer)
|
||||||
, mColor(aLayer->GetColor())
|
, mColor(aLayer->GetColor())
|
||||||
{ }
|
{ }
|
||||||
|
@ -345,7 +345,7 @@ struct ColorLayerProperties : public LayerPropertiesBase
|
||||||
|
|
||||||
struct ImageLayerProperties : public LayerPropertiesBase
|
struct ImageLayerProperties : public LayerPropertiesBase
|
||||||
{
|
{
|
||||||
ImageLayerProperties(ImageLayer* aImage)
|
explicit ImageLayerProperties(ImageLayer* aImage)
|
||||||
: LayerPropertiesBase(aImage)
|
: LayerPropertiesBase(aImage)
|
||||||
, mContainer(aImage->GetContainer())
|
, mContainer(aImage->GetContainer())
|
||||||
, mFilter(aImage->GetFilter())
|
, mFilter(aImage->GetFilter())
|
||||||
|
|
|
@ -190,7 +190,7 @@ public:
|
||||||
ContainsVisibleBounds
|
ContainsVisibleBounds
|
||||||
};
|
};
|
||||||
|
|
||||||
RotatedContentBuffer(BufferSizePolicy aBufferSizePolicy)
|
explicit RotatedContentBuffer(BufferSizePolicy aBufferSizePolicy)
|
||||||
: mBufferProvider(nullptr)
|
: mBufferProvider(nullptr)
|
||||||
, mBufferProviderOnWhite(nullptr)
|
, mBufferProviderOnWhite(nullptr)
|
||||||
, mBufferSizePolicy(aBufferSizePolicy)
|
, mBufferSizePolicy(aBufferSizePolicy)
|
||||||
|
|
|
@ -646,7 +646,7 @@ private:
|
||||||
|
|
||||||
class OverscrollSnapBackAnimation: public AsyncPanZoomAnimation {
|
class OverscrollSnapBackAnimation: public AsyncPanZoomAnimation {
|
||||||
public:
|
public:
|
||||||
OverscrollSnapBackAnimation(AsyncPanZoomController& aApzc)
|
explicit OverscrollSnapBackAnimation(AsyncPanZoomController& aApzc)
|
||||||
: mApzc(aApzc)
|
: mApzc(aApzc)
|
||||||
{
|
{
|
||||||
// Make sure the initial velocity is zero. This is normally the case
|
// Make sure the initial velocity is zero. This is normally the case
|
||||||
|
|
|
@ -1074,8 +1074,8 @@ class AsyncPanZoomAnimation {
|
||||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(AsyncPanZoomAnimation)
|
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(AsyncPanZoomAnimation)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AsyncPanZoomAnimation(const TimeDuration& aRepaintInterval =
|
explicit AsyncPanZoomAnimation(const TimeDuration& aRepaintInterval =
|
||||||
TimeDuration::Forever())
|
TimeDuration::Forever())
|
||||||
: mRepaintInterval(aRepaintInterval)
|
: mRepaintInterval(aRepaintInterval)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ class AsyncPanZoomController;
|
||||||
*/
|
*/
|
||||||
class Axis {
|
class Axis {
|
||||||
public:
|
public:
|
||||||
Axis(AsyncPanZoomController* aAsyncPanZoomController);
|
explicit Axis(AsyncPanZoomController* aAsyncPanZoomController);
|
||||||
|
|
||||||
enum Overscroll {
|
enum Overscroll {
|
||||||
// Overscroll is not happening at all.
|
// Overscroll is not happening at all.
|
||||||
|
@ -246,7 +246,7 @@ protected:
|
||||||
|
|
||||||
class AxisX : public Axis {
|
class AxisX : public Axis {
|
||||||
public:
|
public:
|
||||||
AxisX(AsyncPanZoomController* mAsyncPanZoomController);
|
explicit AxisX(AsyncPanZoomController* mAsyncPanZoomController);
|
||||||
virtual CSSCoord GetPointOffset(const CSSPoint& aPoint) const;
|
virtual CSSCoord GetPointOffset(const CSSPoint& aPoint) const;
|
||||||
virtual CSSCoord GetRectLength(const CSSRect& aRect) const;
|
virtual CSSCoord GetRectLength(const CSSRect& aRect) const;
|
||||||
virtual CSSCoord GetRectOffset(const CSSRect& aRect) const;
|
virtual CSSCoord GetRectOffset(const CSSRect& aRect) const;
|
||||||
|
@ -254,7 +254,7 @@ public:
|
||||||
|
|
||||||
class AxisY : public Axis {
|
class AxisY : public Axis {
|
||||||
public:
|
public:
|
||||||
AxisY(AsyncPanZoomController* mAsyncPanZoomController);
|
explicit AxisY(AsyncPanZoomController* mAsyncPanZoomController);
|
||||||
virtual CSSCoord GetPointOffset(const CSSPoint& aPoint) const;
|
virtual CSSCoord GetPointOffset(const CSSPoint& aPoint) const;
|
||||||
virtual CSSCoord GetRectLength(const CSSRect& aRect) const;
|
virtual CSSCoord GetRectLength(const CSSRect& aRect) const;
|
||||||
virtual CSSCoord GetRectOffset(const CSSRect& aRect) const;
|
virtual CSSCoord GetRectOffset(const CSSRect& aRect) const;
|
||||||
|
|
|
@ -40,7 +40,7 @@ class GestureEventListener MOZ_FINAL {
|
||||||
public:
|
public:
|
||||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(GestureEventListener)
|
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(GestureEventListener)
|
||||||
|
|
||||||
GestureEventListener(AsyncPanZoomController* aAsyncPanZoomController);
|
explicit GestureEventListener(AsyncPanZoomController* aAsyncPanZoomController);
|
||||||
|
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
// These methods must only be called on the controller/UI thread.
|
// These methods must only be called on the controller/UI thread.
|
||||||
|
|
|
@ -22,7 +22,7 @@ class BasicCanvasLayer : public CopyableCanvasLayer,
|
||||||
public BasicImplData
|
public BasicImplData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BasicCanvasLayer(BasicLayerManager* aLayerManager) :
|
explicit BasicCanvasLayer(BasicLayerManager* aLayerManager) :
|
||||||
CopyableCanvasLayer(aLayerManager,
|
CopyableCanvasLayer(aLayerManager,
|
||||||
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||||
{ }
|
{ }
|
||||||
|
|
|
@ -26,7 +26,7 @@ namespace layers {
|
||||||
|
|
||||||
class BasicColorLayer : public ColorLayer, public BasicImplData {
|
class BasicColorLayer : public ColorLayer, public BasicImplData {
|
||||||
public:
|
public:
|
||||||
BasicColorLayer(BasicLayerManager* aLayerManager) :
|
explicit BasicColorLayer(BasicLayerManager* aLayerManager) :
|
||||||
ColorLayer(aLayerManager,
|
ColorLayer(aLayerManager,
|
||||||
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
class BasicCompositor : public Compositor
|
class BasicCompositor : public Compositor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BasicCompositor(nsIWidget *aWidget);
|
explicit BasicCompositor(nsIWidget *aWidget);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~BasicCompositor();
|
virtual ~BasicCompositor();
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace layers {
|
||||||
|
|
||||||
class BasicContainerLayer : public ContainerLayer, public BasicImplData {
|
class BasicContainerLayer : public ContainerLayer, public BasicImplData {
|
||||||
public:
|
public:
|
||||||
BasicContainerLayer(BasicLayerManager* aManager) :
|
explicit BasicContainerLayer(BasicLayerManager* aManager) :
|
||||||
ContainerLayer(aManager,
|
ContainerLayer(aManager,
|
||||||
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,7 +25,7 @@ namespace layers {
|
||||||
|
|
||||||
class BasicImageLayer : public ImageLayer, public BasicImplData {
|
class BasicImageLayer : public ImageLayer, public BasicImplData {
|
||||||
public:
|
public:
|
||||||
BasicImageLayer(BasicLayerManager* aLayerManager) :
|
explicit BasicImageLayer(BasicLayerManager* aLayerManager) :
|
||||||
ImageLayer(aLayerManager,
|
ImageLayer(aLayerManager,
|
||||||
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST())),
|
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST())),
|
||||||
mSize(-1, -1)
|
mSize(-1, -1)
|
||||||
|
|
|
@ -56,7 +56,7 @@ public:
|
||||||
* must be called for any rendering to happen. ThebesLayers will not
|
* must be called for any rendering to happen. ThebesLayers will not
|
||||||
* be retained.
|
* be retained.
|
||||||
*/
|
*/
|
||||||
BasicLayerManager(BasicLayerManagerType aType);
|
explicit BasicLayerManager(BasicLayerManagerType aType);
|
||||||
/**
|
/**
|
||||||
* Construct a BasicLayerManager which will have no default
|
* Construct a BasicLayerManager which will have no default
|
||||||
* target context. SetDefaultTarget or BeginTransactionWithTarget
|
* target context. SetDefaultTarget or BeginTransactionWithTarget
|
||||||
|
@ -72,7 +72,7 @@ public:
|
||||||
* must ensure that the widget outlives the layer manager or call
|
* must ensure that the widget outlives the layer manager or call
|
||||||
* ClearWidget before the widget dies.
|
* ClearWidget before the widget dies.
|
||||||
*/
|
*/
|
||||||
BasicLayerManager(nsIWidget* aWidget);
|
explicit BasicLayerManager(nsIWidget* aWidget);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~BasicLayerManager();
|
virtual ~BasicLayerManager();
|
||||||
|
|
|
@ -49,7 +49,7 @@ class BasicReadbackLayer : public ReadbackLayer,
|
||||||
public BasicImplData
|
public BasicImplData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BasicReadbackLayer(BasicLayerManager* aLayerManager) :
|
explicit BasicReadbackLayer(BasicLayerManager* aLayerManager) :
|
||||||
ReadbackLayer(aLayerManager,
|
ReadbackLayer(aLayerManager,
|
||||||
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,7 +30,7 @@ public:
|
||||||
typedef RotatedContentBuffer::PaintState PaintState;
|
typedef RotatedContentBuffer::PaintState PaintState;
|
||||||
typedef RotatedContentBuffer::ContentType ContentType;
|
typedef RotatedContentBuffer::ContentType ContentType;
|
||||||
|
|
||||||
BasicThebesLayer(BasicLayerManager* aLayerManager) :
|
explicit BasicThebesLayer(BasicLayerManager* aLayerManager) :
|
||||||
ThebesLayer(aLayerManager,
|
ThebesLayer(aLayerManager,
|
||||||
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST())),
|
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST())),
|
||||||
mContentClient(nullptr)
|
mContentClient(nullptr)
|
||||||
|
|
|
@ -36,7 +36,7 @@ class ClientCanvasLayer : public CopyableCanvasLayer,
|
||||||
{
|
{
|
||||||
typedef CanvasClient::CanvasClientType CanvasClientType;
|
typedef CanvasClient::CanvasClientType CanvasClientType;
|
||||||
public:
|
public:
|
||||||
ClientCanvasLayer(ClientLayerManager* aLayerManager) :
|
explicit ClientCanvasLayer(ClientLayerManager* aLayerManager) :
|
||||||
CopyableCanvasLayer(aLayerManager,
|
CopyableCanvasLayer(aLayerManager,
|
||||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||||
, mTextureSurface(nullptr)
|
, mTextureSurface(nullptr)
|
||||||
|
|
|
@ -21,7 +21,7 @@ using namespace mozilla::gfx;
|
||||||
class ClientColorLayer : public ColorLayer,
|
class ClientColorLayer : public ColorLayer,
|
||||||
public ClientLayer {
|
public ClientLayer {
|
||||||
public:
|
public:
|
||||||
ClientColorLayer(ClientLayerManager* aLayerManager) :
|
explicit ClientColorLayer(ClientLayerManager* aLayerManager) :
|
||||||
ColorLayer(aLayerManager,
|
ColorLayer(aLayerManager,
|
||||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,7 +27,7 @@ class ClientContainerLayer : public ContainerLayer,
|
||||||
public ClientLayer
|
public ClientLayer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ClientContainerLayer(ClientLayerManager* aManager) :
|
explicit ClientContainerLayer(ClientLayerManager* aManager) :
|
||||||
ContainerLayer(aManager,
|
ContainerLayer(aManager,
|
||||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||||
{
|
{
|
||||||
|
@ -150,7 +150,7 @@ protected:
|
||||||
class ClientRefLayer : public RefLayer,
|
class ClientRefLayer : public RefLayer,
|
||||||
public ClientLayer {
|
public ClientLayer {
|
||||||
public:
|
public:
|
||||||
ClientRefLayer(ClientLayerManager* aManager) :
|
explicit ClientRefLayer(ClientLayerManager* aManager) :
|
||||||
RefLayer(aManager,
|
RefLayer(aManager,
|
||||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,7 +26,7 @@ using namespace mozilla::gfx;
|
||||||
class ClientImageLayer : public ImageLayer,
|
class ClientImageLayer : public ImageLayer,
|
||||||
public ClientLayer {
|
public ClientLayer {
|
||||||
public:
|
public:
|
||||||
ClientImageLayer(ClientLayerManager* aLayerManager)
|
explicit ClientImageLayer(ClientLayerManager* aLayerManager)
|
||||||
: ImageLayer(aLayerManager,
|
: ImageLayer(aLayerManager,
|
||||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||||
, mImageClientTypeContainer(CompositableType::BUFFER_UNKNOWN)
|
, mImageClientTypeContainer(CompositableType::BUFFER_UNKNOWN)
|
||||||
|
|
|
@ -43,7 +43,7 @@ class ClientLayerManager : public LayerManager
|
||||||
typedef nsTArray<nsRefPtr<Layer> > LayerRefArray;
|
typedef nsTArray<nsRefPtr<Layer> > LayerRefArray;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ClientLayerManager(nsIWidget* aWidget);
|
explicit ClientLayerManager(nsIWidget* aWidget);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~ClientLayerManager();
|
virtual ~ClientLayerManager();
|
||||||
|
|
|
@ -17,7 +17,7 @@ class ClientReadbackLayer :
|
||||||
public ClientLayer
|
public ClientLayer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ClientReadbackLayer(ClientLayerManager *aManager)
|
explicit ClientReadbackLayer(ClientLayerManager *aManager)
|
||||||
: ReadbackLayer(aManager, nullptr)
|
: ReadbackLayer(aManager, nullptr)
|
||||||
{
|
{
|
||||||
mImplData = static_cast<ClientLayer*>(this);
|
mImplData = static_cast<ClientLayer*>(this);
|
||||||
|
|
|
@ -33,8 +33,8 @@ public:
|
||||||
typedef RotatedContentBuffer::PaintState PaintState;
|
typedef RotatedContentBuffer::PaintState PaintState;
|
||||||
typedef RotatedContentBuffer::ContentType ContentType;
|
typedef RotatedContentBuffer::ContentType ContentType;
|
||||||
|
|
||||||
ClientThebesLayer(ClientLayerManager* aLayerManager,
|
explicit ClientThebesLayer(ClientLayerManager* aLayerManager,
|
||||||
LayerManager::ThebesLayerCreationHint aCreationHint = LayerManager::NONE) :
|
LayerManager::ThebesLayerCreationHint aCreationHint = LayerManager::NONE) :
|
||||||
ThebesLayer(aLayerManager,
|
ThebesLayer(aLayerManager,
|
||||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()),
|
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()),
|
||||||
aCreationHint),
|
aCreationHint),
|
||||||
|
|
|
@ -41,8 +41,8 @@ class ClientTiledThebesLayer : public ThebesLayer,
|
||||||
typedef ThebesLayer Base;
|
typedef ThebesLayer Base;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ClientTiledThebesLayer(ClientLayerManager* const aManager,
|
explicit ClientTiledThebesLayer(ClientLayerManager* const aManager,
|
||||||
ClientLayerManager::ThebesLayerCreationHint aCreationHint = LayerManager::NONE);
|
ClientLayerManager::ThebesLayerCreationHint aCreationHint = LayerManager::NONE);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
~ClientTiledThebesLayer();
|
~ClientTiledThebesLayer();
|
||||||
|
|
|
@ -123,7 +123,7 @@ protected:
|
||||||
public:
|
public:
|
||||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(CompositableClient)
|
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(CompositableClient)
|
||||||
|
|
||||||
CompositableClient(CompositableForwarder* aForwarder, TextureFlags aFlags = TextureFlags::NO_FLAGS);
|
explicit CompositableClient(CompositableForwarder* aForwarder, TextureFlags aFlags = TextureFlags::NO_FLAGS);
|
||||||
|
|
||||||
virtual TextureInfo GetTextureInfo() const = 0;
|
virtual TextureInfo GetTextureInfo() const = 0;
|
||||||
|
|
||||||
|
@ -246,8 +246,8 @@ protected:
|
||||||
*/
|
*/
|
||||||
struct AutoRemoveTexture
|
struct AutoRemoveTexture
|
||||||
{
|
{
|
||||||
AutoRemoveTexture(CompositableClient* aCompositable,
|
explicit AutoRemoveTexture(CompositableClient* aCompositable,
|
||||||
TextureClient* aTexture = nullptr)
|
TextureClient* aTexture = nullptr)
|
||||||
: mTexture(aTexture)
|
: mTexture(aTexture)
|
||||||
, mCompositable(aCompositable)
|
, mCompositable(aCompositable)
|
||||||
{}
|
{}
|
||||||
|
|
|
@ -83,7 +83,7 @@ public:
|
||||||
*/
|
*/
|
||||||
static TemporaryRef<ContentClient> CreateContentClient(CompositableForwarder* aFwd);
|
static TemporaryRef<ContentClient> CreateContentClient(CompositableForwarder* aFwd);
|
||||||
|
|
||||||
ContentClient(CompositableForwarder* aForwarder)
|
explicit ContentClient(CompositableForwarder* aForwarder)
|
||||||
: CompositableClient(aForwarder)
|
: CompositableClient(aForwarder)
|
||||||
{}
|
{}
|
||||||
virtual ~ContentClient()
|
virtual ~ContentClient()
|
||||||
|
@ -113,7 +113,7 @@ public:
|
||||||
class ContentClientRemote : public ContentClient
|
class ContentClientRemote : public ContentClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ContentClientRemote(CompositableForwarder* aForwarder)
|
explicit ContentClientRemote(CompositableForwarder* aForwarder)
|
||||||
: ContentClient(aForwarder)
|
: ContentClient(aForwarder)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ class ContentClientRemoteBuffer : public ContentClientRemote
|
||||||
using RotatedContentBuffer::BufferRect;
|
using RotatedContentBuffer::BufferRect;
|
||||||
using RotatedContentBuffer::BufferRotation;
|
using RotatedContentBuffer::BufferRotation;
|
||||||
public:
|
public:
|
||||||
ContentClientRemoteBuffer(CompositableForwarder* aForwarder)
|
explicit ContentClientRemoteBuffer(CompositableForwarder* aForwarder)
|
||||||
: ContentClientRemote(aForwarder)
|
: ContentClientRemote(aForwarder)
|
||||||
, RotatedContentBuffer(ContainsVisibleBounds)
|
, RotatedContentBuffer(ContainsVisibleBounds)
|
||||||
, mIsNewBuffer(false)
|
, mIsNewBuffer(false)
|
||||||
|
@ -315,7 +315,7 @@ protected:
|
||||||
class ContentClientDoubleBuffered : public ContentClientRemoteBuffer
|
class ContentClientDoubleBuffered : public ContentClientRemoteBuffer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ContentClientDoubleBuffered(CompositableForwarder* aFwd)
|
explicit ContentClientDoubleBuffered(CompositableForwarder* aFwd)
|
||||||
: ContentClientRemoteBuffer(aFwd)
|
: ContentClientRemoteBuffer(aFwd)
|
||||||
{
|
{
|
||||||
mTextureInfo.mCompositableType = CompositableType::CONTENT_DOUBLE;
|
mTextureInfo.mCompositableType = CompositableType::CONTENT_DOUBLE;
|
||||||
|
@ -374,7 +374,7 @@ private:
|
||||||
class ContentClientSingleBuffered : public ContentClientRemoteBuffer
|
class ContentClientSingleBuffered : public ContentClientRemoteBuffer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ContentClientSingleBuffered(CompositableForwarder* aFwd)
|
explicit ContentClientSingleBuffered(CompositableForwarder* aFwd)
|
||||||
: ContentClientRemoteBuffer(aFwd)
|
: ContentClientRemoteBuffer(aFwd)
|
||||||
{
|
{
|
||||||
mTextureInfo.mCompositableType = CompositableType::CONTENT_SINGLE;
|
mTextureInfo.mCompositableType = CompositableType::CONTENT_SINGLE;
|
||||||
|
@ -394,7 +394,7 @@ class ContentClientIncremental : public ContentClientRemote
|
||||||
, public BorrowDrawTarget
|
, public BorrowDrawTarget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ContentClientIncremental(CompositableForwarder* aFwd)
|
explicit ContentClientIncremental(CompositableForwarder* aFwd)
|
||||||
: ContentClientRemote(aFwd)
|
: ContentClientRemote(aFwd)
|
||||||
, mContentType(gfxContentType::COLOR_ALPHA)
|
, mContentType(gfxContentType::COLOR_ALPHA)
|
||||||
, mHasBuffer(false)
|
, mHasBuffer(false)
|
||||||
|
|
|
@ -163,8 +163,8 @@ class SimpleClientTiledThebesLayer : public ThebesLayer,
|
||||||
typedef ThebesLayer Base;
|
typedef ThebesLayer Base;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SimpleClientTiledThebesLayer(ClientLayerManager* const aManager,
|
explicit SimpleClientTiledThebesLayer(ClientLayerManager* const aManager,
|
||||||
ClientLayerManager::ThebesLayerCreationHint aCreationHint = LayerManager::NONE);
|
ClientLayerManager::ThebesLayerCreationHint aCreationHint = LayerManager::NONE);
|
||||||
protected:
|
protected:
|
||||||
~SimpleClientTiledThebesLayer();
|
~SimpleClientTiledThebesLayer();
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@ class TextureClient
|
||||||
: public AtomicRefCountedWithFinalize<TextureClient>
|
: public AtomicRefCountedWithFinalize<TextureClient>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TextureClient(TextureFlags aFlags = TextureFlags::DEFAULT);
|
explicit TextureClient(TextureFlags aFlags = TextureFlags::DEFAULT);
|
||||||
virtual ~TextureClient();
|
virtual ~TextureClient();
|
||||||
|
|
||||||
// Creates and allocates a TextureClient usable with Moz2D.
|
// Creates and allocates a TextureClient usable with Moz2D.
|
||||||
|
@ -465,7 +465,7 @@ protected:
|
||||||
class TextureClientReleaseTask : public Task
|
class TextureClientReleaseTask : public Task
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TextureClientReleaseTask(TextureClient* aClient)
|
explicit TextureClientReleaseTask(TextureClient* aClient)
|
||||||
: mTextureClient(aClient) {
|
: mTextureClient(aClient) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -620,7 +620,7 @@ protected:
|
||||||
class StreamTextureClient : public TextureClient
|
class StreamTextureClient : public TextureClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
StreamTextureClient(TextureFlags aFlags);
|
explicit StreamTextureClient(TextureFlags aFlags);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
~StreamTextureClient();
|
~StreamTextureClient();
|
||||||
|
@ -669,7 +669,7 @@ struct TextureClientAutoUnlock
|
||||||
{
|
{
|
||||||
TextureClient* mTexture;
|
TextureClient* mTexture;
|
||||||
|
|
||||||
TextureClientAutoUnlock(TextureClient* aTexture)
|
explicit TextureClientAutoUnlock(TextureClient* aTexture)
|
||||||
: mTexture(aTexture) {}
|
: mTexture(aTexture) {}
|
||||||
|
|
||||||
~TextureClientAutoUnlock()
|
~TextureClientAutoUnlock()
|
||||||
|
@ -688,7 +688,7 @@ template<typename T>
|
||||||
class TKeepAlive : public KeepAlive
|
class TKeepAlive : public KeepAlive
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TKeepAlive(T* aData) : mData(aData) {}
|
explicit TKeepAlive(T* aData) : mData(aData) {}
|
||||||
protected:
|
protected:
|
||||||
RefPtr<T> mData;
|
RefPtr<T> mData;
|
||||||
};
|
};
|
||||||
|
|
|
@ -97,7 +97,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
gfxShmSharedReadLock(ISurfaceAllocator* aAllocator);
|
explicit gfxShmSharedReadLock(ISurfaceAllocator* aAllocator);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
~gfxShmSharedReadLock();
|
~gfxShmSharedReadLock();
|
||||||
|
|
|
@ -28,8 +28,8 @@ class AutoResolveRefLayers;
|
||||||
|
|
||||||
// Represents (affine) transforms that are calculated from a content view.
|
// Represents (affine) transforms that are calculated from a content view.
|
||||||
struct ViewTransform {
|
struct ViewTransform {
|
||||||
ViewTransform(ParentLayerToScreenScale aScale = ParentLayerToScreenScale(),
|
explicit ViewTransform(ParentLayerToScreenScale aScale = ParentLayerToScreenScale(),
|
||||||
ScreenPoint aTranslation = ScreenPoint())
|
ScreenPoint aTranslation = ScreenPoint())
|
||||||
: mScale(aScale)
|
: mScale(aScale)
|
||||||
, mTranslation(aTranslation)
|
, mTranslation(aTranslation)
|
||||||
{}
|
{}
|
||||||
|
@ -76,7 +76,7 @@ class AsyncCompositionManager MOZ_FINAL
|
||||||
public:
|
public:
|
||||||
NS_INLINE_DECL_REFCOUNTING(AsyncCompositionManager)
|
NS_INLINE_DECL_REFCOUNTING(AsyncCompositionManager)
|
||||||
|
|
||||||
AsyncCompositionManager(LayerManagerComposite* aManager)
|
explicit AsyncCompositionManager(LayerManagerComposite* aManager)
|
||||||
: mLayerManager(aManager)
|
: mLayerManager(aManager)
|
||||||
, mIsFirstPaint(false)
|
, mIsFirstPaint(false)
|
||||||
, mLayersUpdated(false)
|
, mLayersUpdated(false)
|
||||||
|
@ -207,7 +207,7 @@ private:
|
||||||
|
|
||||||
class MOZ_STACK_CLASS AutoResolveRefLayers {
|
class MOZ_STACK_CLASS AutoResolveRefLayers {
|
||||||
public:
|
public:
|
||||||
AutoResolveRefLayers(AsyncCompositionManager* aManager) : mManager(aManager)
|
explicit AutoResolveRefLayers(AsyncCompositionManager* aManager) : mManager(aManager)
|
||||||
{
|
{
|
||||||
if (mManager) {
|
if (mManager) {
|
||||||
mManager->ResolveRefLayers();
|
mManager->ResolveRefLayers();
|
||||||
|
|
|
@ -28,7 +28,7 @@ class CanvasLayerComposite : public CanvasLayer,
|
||||||
public LayerComposite
|
public LayerComposite
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CanvasLayerComposite(LayerManagerComposite* aManager);
|
explicit CanvasLayerComposite(LayerManagerComposite* aManager);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~CanvasLayerComposite();
|
virtual ~CanvasLayerComposite();
|
||||||
|
|
|
@ -23,7 +23,7 @@ class ColorLayerComposite : public ColorLayer,
|
||||||
public LayerComposite
|
public LayerComposite
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColorLayerComposite(LayerManagerComposite *aManager)
|
explicit ColorLayerComposite(LayerManagerComposite *aManager)
|
||||||
: ColorLayer(aManager, nullptr)
|
: ColorLayer(aManager, nullptr)
|
||||||
, LayerComposite(aManager)
|
, LayerComposite(aManager)
|
||||||
{
|
{
|
||||||
|
|
|
@ -88,7 +88,7 @@ protected:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
NS_INLINE_DECL_REFCOUNTING(CompositableHost)
|
NS_INLINE_DECL_REFCOUNTING(CompositableHost)
|
||||||
CompositableHost(const TextureInfo& aTextureInfo);
|
explicit CompositableHost(const TextureInfo& aTextureInfo);
|
||||||
|
|
||||||
static TemporaryRef<CompositableHost> Create(const TextureInfo& aTextureInfo);
|
static TemporaryRef<CompositableHost> Create(const TextureInfo& aTextureInfo);
|
||||||
|
|
||||||
|
@ -304,7 +304,7 @@ protected:
|
||||||
class AutoLockCompositableHost MOZ_FINAL
|
class AutoLockCompositableHost MOZ_FINAL
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoLockCompositableHost(CompositableHost* aHost)
|
explicit AutoLockCompositableHost(CompositableHost* aHost)
|
||||||
: mHost(aHost)
|
: mHost(aHost)
|
||||||
{
|
{
|
||||||
mSucceeded = mHost->Lock();
|
mSucceeded = mHost->Lock();
|
||||||
|
|
|
@ -53,7 +53,7 @@ class ContainerLayerComposite : public ContainerLayer,
|
||||||
const nsIntRect& aClipRect);
|
const nsIntRect& aClipRect);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ContainerLayerComposite(LayerManagerComposite *aManager);
|
explicit ContainerLayerComposite(LayerManagerComposite *aManager);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
~ContainerLayerComposite();
|
~ContainerLayerComposite();
|
||||||
|
@ -117,7 +117,7 @@ class RefLayerComposite : public RefLayer,
|
||||||
const nsIntRect& aClipRect);
|
const nsIntRect& aClipRect);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RefLayerComposite(LayerManagerComposite *aManager);
|
explicit RefLayerComposite(LayerManagerComposite *aManager);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
~RefLayerComposite();
|
~RefLayerComposite();
|
||||||
|
|
|
@ -68,7 +68,7 @@ public:
|
||||||
bool PaintWillResample() { return mPaintWillResample; }
|
bool PaintWillResample() { return mPaintWillResample; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ContentHost(const TextureInfo& aTextureInfo)
|
explicit ContentHost(const TextureInfo& aTextureInfo)
|
||||||
: CompositableHost(aTextureInfo)
|
: CompositableHost(aTextureInfo)
|
||||||
, mPaintWillResample(false)
|
, mPaintWillResample(false)
|
||||||
{}
|
{}
|
||||||
|
@ -93,7 +93,7 @@ public:
|
||||||
typedef RotatedContentBuffer::ContentType ContentType;
|
typedef RotatedContentBuffer::ContentType ContentType;
|
||||||
typedef RotatedContentBuffer::PaintState PaintState;
|
typedef RotatedContentBuffer::PaintState PaintState;
|
||||||
|
|
||||||
ContentHostBase(const TextureInfo& aTextureInfo);
|
explicit ContentHostBase(const TextureInfo& aTextureInfo);
|
||||||
virtual ~ContentHostBase();
|
virtual ~ContentHostBase();
|
||||||
|
|
||||||
virtual void Composite(EffectChain& aEffectChain,
|
virtual void Composite(EffectChain& aEffectChain,
|
||||||
|
@ -127,7 +127,7 @@ protected:
|
||||||
class ContentHostTexture : public ContentHostBase
|
class ContentHostTexture : public ContentHostBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ContentHostTexture(const TextureInfo& aTextureInfo)
|
explicit ContentHostTexture(const TextureInfo& aTextureInfo)
|
||||||
: ContentHostBase(aTextureInfo)
|
: ContentHostBase(aTextureInfo)
|
||||||
, mLocked(false)
|
, mLocked(false)
|
||||||
{ }
|
{ }
|
||||||
|
@ -201,7 +201,7 @@ protected:
|
||||||
class ContentHostDoubleBuffered : public ContentHostTexture
|
class ContentHostDoubleBuffered : public ContentHostTexture
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ContentHostDoubleBuffered(const TextureInfo& aTextureInfo)
|
explicit ContentHostDoubleBuffered(const TextureInfo& aTextureInfo)
|
||||||
: ContentHostTexture(aTextureInfo)
|
: ContentHostTexture(aTextureInfo)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ protected:
|
||||||
class ContentHostSingleBuffered : public ContentHostTexture
|
class ContentHostSingleBuffered : public ContentHostTexture
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ContentHostSingleBuffered(const TextureInfo& aTextureInfo)
|
explicit ContentHostSingleBuffered(const TextureInfo& aTextureInfo)
|
||||||
: ContentHostTexture(aTextureInfo)
|
: ContentHostTexture(aTextureInfo)
|
||||||
{}
|
{}
|
||||||
virtual ~ContentHostSingleBuffered() {}
|
virtual ~ContentHostSingleBuffered() {}
|
||||||
|
@ -251,7 +251,7 @@ public:
|
||||||
class ContentHostIncremental : public ContentHostBase
|
class ContentHostIncremental : public ContentHostBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ContentHostIncremental(const TextureInfo& aTextureInfo);
|
explicit ContentHostIncremental(const TextureInfo& aTextureInfo);
|
||||||
~ContentHostIncremental();
|
~ContentHostIncremental();
|
||||||
|
|
||||||
virtual CompositableType GetType() { return CompositableType::BUFFER_CONTENT_INC; }
|
virtual CompositableType GetType() { return CompositableType::BUFFER_CONTENT_INC; }
|
||||||
|
|
|
@ -58,7 +58,7 @@ const int kMaxFrames = 2400;
|
||||||
*/
|
*/
|
||||||
class FPSCounter {
|
class FPSCounter {
|
||||||
public:
|
public:
|
||||||
FPSCounter(const char* aName);
|
explicit FPSCounter(const char* aName);
|
||||||
~FPSCounter();
|
~FPSCounter();
|
||||||
|
|
||||||
void AddFrame(TimeStamp aTimestamp);
|
void AddFrame(TimeStamp aTimestamp);
|
||||||
|
|
|
@ -40,7 +40,7 @@ struct EffectChain;
|
||||||
class ImageHost : public CompositableHost
|
class ImageHost : public CompositableHost
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ImageHost(const TextureInfo& aTextureInfo);
|
explicit ImageHost(const TextureInfo& aTextureInfo);
|
||||||
~ImageHost();
|
~ImageHost();
|
||||||
|
|
||||||
virtual CompositableType GetType() { return mTextureInfo.mCompositableType; }
|
virtual CompositableType GetType() { return mTextureInfo.mCompositableType; }
|
||||||
|
|
|
@ -31,7 +31,7 @@ class ImageLayerComposite : public ImageLayer,
|
||||||
typedef gl::TextureImage TextureImage;
|
typedef gl::TextureImage TextureImage;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ImageLayerComposite(LayerManagerComposite* aManager);
|
explicit ImageLayerComposite(LayerManagerComposite* aManager);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~ImageLayerComposite();
|
virtual ~ImageLayerComposite();
|
||||||
|
|
|
@ -73,7 +73,7 @@ class LayerManagerComposite : public LayerManager
|
||||||
typedef mozilla::gfx::SurfaceFormat SurfaceFormat;
|
typedef mozilla::gfx::SurfaceFormat SurfaceFormat;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LayerManagerComposite(Compositor* aCompositor);
|
explicit LayerManagerComposite(Compositor* aCompositor);
|
||||||
~LayerManagerComposite();
|
~LayerManagerComposite();
|
||||||
|
|
||||||
virtual void Destroy() MOZ_OVERRIDE;
|
virtual void Destroy() MOZ_OVERRIDE;
|
||||||
|
@ -315,7 +315,7 @@ private:
|
||||||
class LayerComposite
|
class LayerComposite
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LayerComposite(LayerManagerComposite* aManager);
|
explicit LayerComposite(LayerManagerComposite* aManager);
|
||||||
|
|
||||||
virtual ~LayerComposite();
|
virtual ~LayerComposite();
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ class TextRenderer
|
||||||
public:
|
public:
|
||||||
NS_INLINE_DECL_REFCOUNTING(TextRenderer)
|
NS_INLINE_DECL_REFCOUNTING(TextRenderer)
|
||||||
|
|
||||||
TextRenderer(Compositor *aCompositor)
|
explicit TextRenderer(Compositor *aCompositor)
|
||||||
: mCompositor(aCompositor)
|
: mCompositor(aCompositor)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ namespace layers {
|
||||||
class TextureParent : public PTextureParent
|
class TextureParent : public PTextureParent
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TextureParent(CompositableParentManager* aManager);
|
explicit TextureParent(CompositableParentManager* aManager);
|
||||||
|
|
||||||
~TextureParent();
|
~TextureParent();
|
||||||
|
|
||||||
|
|
|
@ -286,7 +286,7 @@ class TextureHost
|
||||||
|
|
||||||
friend class AtomicRefCountedWithFinalize<TextureHost>;
|
friend class AtomicRefCountedWithFinalize<TextureHost>;
|
||||||
public:
|
public:
|
||||||
TextureHost(TextureFlags aFlags);
|
explicit TextureHost(TextureFlags aFlags);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~TextureHost();
|
virtual ~TextureHost();
|
||||||
|
@ -652,7 +652,7 @@ protected:
|
||||||
class MOZ_STACK_CLASS AutoLockTextureHost
|
class MOZ_STACK_CLASS AutoLockTextureHost
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoLockTextureHost(TextureHost* aTexture)
|
explicit AutoLockTextureHost(TextureHost* aTexture)
|
||||||
: mTexture(aTexture)
|
: mTexture(aTexture)
|
||||||
{
|
{
|
||||||
mLocked = mTexture ? mTexture->Lock() : false;
|
mLocked = mTexture ? mTexture->Lock() : false;
|
||||||
|
@ -679,7 +679,7 @@ private:
|
||||||
class CompositingRenderTarget : public TextureSource
|
class CompositingRenderTarget : public TextureSource
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CompositingRenderTarget(const gfx::IntPoint& aOrigin)
|
explicit CompositingRenderTarget(const gfx::IntPoint& aOrigin)
|
||||||
: mOrigin(aOrigin)
|
: mOrigin(aOrigin)
|
||||||
{}
|
{}
|
||||||
virtual ~CompositingRenderTarget() {}
|
virtual ~CompositingRenderTarget() {}
|
||||||
|
|
|
@ -37,7 +37,7 @@ class ThebesLayerComposite : public ThebesLayer,
|
||||||
public LayerComposite
|
public LayerComposite
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ThebesLayerComposite(LayerManagerComposite *aManager);
|
explicit ThebesLayerComposite(LayerManagerComposite *aManager);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~ThebesLayerComposite();
|
virtual ~ThebesLayerComposite();
|
||||||
|
|
|
@ -189,7 +189,7 @@ class TiledContentHost : public ContentHost,
|
||||||
public TiledLayerComposer
|
public TiledLayerComposer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TiledContentHost(const TextureInfo& aTextureInfo);
|
explicit TiledContentHost(const TextureInfo& aTextureInfo);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
~TiledContentHost();
|
~TiledContentHost();
|
||||||
|
|
|
@ -190,7 +190,7 @@ protected:
|
||||||
*/
|
*/
|
||||||
class FenceDeliveryTracker : public AsyncTransactionTracker {
|
class FenceDeliveryTracker : public AsyncTransactionTracker {
|
||||||
public:
|
public:
|
||||||
FenceDeliveryTracker(FenceHandle& aFenceHandle)
|
explicit FenceDeliveryTracker(FenceHandle& aFenceHandle)
|
||||||
: mFenceHandle(aFenceHandle)
|
: mFenceHandle(aFenceHandle)
|
||||||
{
|
{
|
||||||
MOZ_COUNT_CTOR(FenceDeliveryTracker);
|
MOZ_COUNT_CTOR(FenceDeliveryTracker);
|
||||||
|
|
|
@ -41,7 +41,7 @@ class CompositorChild MOZ_FINAL : public PCompositorChild
|
||||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_MAIN_THREAD_DESTRUCTION(CompositorChild)
|
NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_MAIN_THREAD_DESTRUCTION(CompositorChild)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CompositorChild(ClientLayerManager *aLayerManager);
|
explicit CompositorChild(ClientLayerManager *aLayerManager);
|
||||||
|
|
||||||
void Destroy();
|
void Destroy();
|
||||||
|
|
||||||
|
|
|
@ -93,9 +93,9 @@ class CompositorParent : public PCompositorParent,
|
||||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_MAIN_THREAD_DESTRUCTION(CompositorParent)
|
NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_MAIN_THREAD_DESTRUCTION(CompositorParent)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CompositorParent(nsIWidget* aWidget,
|
explicit CompositorParent(nsIWidget* aWidget,
|
||||||
bool aUseExternalSurfaceSize = false,
|
bool aUseExternalSurfaceSize = false,
|
||||||
int aSurfaceWidth = -1, int aSurfaceHeight = -1);
|
int aSurfaceWidth = -1, int aSurfaceHeight = -1);
|
||||||
|
|
||||||
// IToplevelProtocol::CloneToplevel()
|
// IToplevelProtocol::CloneToplevel()
|
||||||
virtual IToplevelProtocol*
|
virtual IToplevelProtocol*
|
||||||
|
|
|
@ -23,14 +23,14 @@ struct FenceHandleFromChild;
|
||||||
|
|
||||||
struct FenceHandle {
|
struct FenceHandle {
|
||||||
FenceHandle() {}
|
FenceHandle() {}
|
||||||
FenceHandle(const FenceHandleFromChild& aFenceHandle) {}
|
explicit FenceHandle(const FenceHandleFromChild& aFenceHandle) {}
|
||||||
bool operator==(const FenceHandle&) const { return false; }
|
bool operator==(const FenceHandle&) const { return false; }
|
||||||
bool IsValid() const { return false; }
|
bool IsValid() const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct FenceHandleFromChild {
|
struct FenceHandleFromChild {
|
||||||
FenceHandleFromChild() {}
|
FenceHandleFromChild() {}
|
||||||
FenceHandleFromChild(const FenceHandle& aFence) {}
|
explicit FenceHandleFromChild(const FenceHandle& aFence) {}
|
||||||
bool operator==(const FenceHandle&) const { return false; }
|
bool operator==(const FenceHandle&) const { return false; }
|
||||||
bool operator==(const FenceHandleFromChild&) const { return false; }
|
bool operator==(const FenceHandleFromChild&) const { return false; }
|
||||||
bool IsValid() const { return false; }
|
bool IsValid() const { return false; }
|
||||||
|
|
|
@ -101,7 +101,7 @@ struct CompositableTransaction
|
||||||
};
|
};
|
||||||
|
|
||||||
struct AutoEndTransaction {
|
struct AutoEndTransaction {
|
||||||
AutoEndTransaction(CompositableTransaction* aTxn) : mTxn(aTxn) {}
|
explicit AutoEndTransaction(CompositableTransaction* aTxn) : mTxn(aTxn) {}
|
||||||
~AutoEndTransaction() { mTxn->End(); }
|
~AutoEndTransaction() { mTxn->End(); }
|
||||||
CompositableTransaction* mTxn;
|
CompositableTransaction* mTxn;
|
||||||
};
|
};
|
||||||
|
@ -464,7 +464,7 @@ ImageBridgeChild::BeginTransaction()
|
||||||
class MOZ_STACK_CLASS AutoRemoveTextures
|
class MOZ_STACK_CLASS AutoRemoveTextures
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoRemoveTextures(ImageBridgeChild* aImageBridge)
|
explicit AutoRemoveTextures(ImageBridgeChild* aImageBridge)
|
||||||
: mImageBridge(aImageBridge) {}
|
: mImageBridge(aImageBridge) {}
|
||||||
|
|
||||||
~AutoRemoveTextures()
|
~AutoRemoveTextures()
|
||||||
|
|
|
@ -20,7 +20,7 @@ class ShadowableLayer;
|
||||||
class ShadowLayerChild : public PLayerChild
|
class ShadowLayerChild : public PLayerChild
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ShadowLayerChild(ShadowableLayer* aLayer);
|
explicit ShadowLayerChild(ShadowableLayer* aLayer);
|
||||||
virtual ~ShadowLayerChild();
|
virtual ~ShadowLayerChild();
|
||||||
|
|
||||||
ShadowableLayer* layer() const { return mLayer; }
|
ShadowableLayer* layer() const { return mLayer; }
|
||||||
|
|
|
@ -154,7 +154,7 @@ private:
|
||||||
Transaction& operator=(const Transaction&);
|
Transaction& operator=(const Transaction&);
|
||||||
};
|
};
|
||||||
struct AutoTxnEnd {
|
struct AutoTxnEnd {
|
||||||
AutoTxnEnd(Transaction* aTxn) : mTxn(aTxn) {}
|
explicit AutoTxnEnd(Transaction* aTxn) : mTxn(aTxn) {}
|
||||||
~AutoTxnEnd() { mTxn->End(); }
|
~AutoTxnEnd() { mTxn->End(); }
|
||||||
Transaction* mTxn;
|
Transaction* mTxn;
|
||||||
};
|
};
|
||||||
|
|
|
@ -108,7 +108,7 @@ void InitGralloc() {
|
||||||
class DeleteSharedBufferManagerParentTask : public Task
|
class DeleteSharedBufferManagerParentTask : public Task
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DeleteSharedBufferManagerParentTask(UniquePtr<SharedBufferManagerParent> aSharedBufferManager)
|
explicit DeleteSharedBufferManagerParentTask(UniquePtr<SharedBufferManagerParent> aSharedBufferManager)
|
||||||
: mSharedBufferManager(Move(aSharedBufferManager)) {
|
: mSharedBufferManager(Move(aSharedBufferManager)) {
|
||||||
}
|
}
|
||||||
virtual void Run() MOZ_OVERRIDE {}
|
virtual void Run() MOZ_OVERRIDE {}
|
||||||
|
|
|
@ -28,7 +28,7 @@ class SharedPlanarYCbCrImage : public PlanarYCbCrImage
|
||||||
, public ISharedImage
|
, public ISharedImage
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SharedPlanarYCbCrImage(ImageClient* aCompositable);
|
explicit SharedPlanarYCbCrImage(ImageClient* aCompositable);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
~SharedPlanarYCbCrImage();
|
~SharedPlanarYCbCrImage();
|
||||||
|
|
|
@ -40,7 +40,7 @@ class SharedRGBImage : public Image
|
||||||
, public ISharedImage
|
, public ISharedImage
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SharedRGBImage(ImageClient* aCompositable);
|
explicit SharedRGBImage(ImageClient* aCompositable);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
~SharedRGBImage();
|
~SharedRGBImage();
|
||||||
|
|
|
@ -85,7 +85,7 @@ public:
|
||||||
class PerUnitTexturePoolOGL : public CompositorTexturePoolOGL
|
class PerUnitTexturePoolOGL : public CompositorTexturePoolOGL
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PerUnitTexturePoolOGL(gl::GLContext* aGL)
|
explicit PerUnitTexturePoolOGL(gl::GLContext* aGL)
|
||||||
: mTextureTarget(0) // zero is never a valid texture target
|
: mTextureTarget(0) // zero is never a valid texture target
|
||||||
, mGL(aGL)
|
, mGL(aGL)
|
||||||
{}
|
{}
|
||||||
|
@ -124,7 +124,7 @@ protected:
|
||||||
class PerFrameTexturePoolOGL : public CompositorTexturePoolOGL
|
class PerFrameTexturePoolOGL : public CompositorTexturePoolOGL
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PerFrameTexturePoolOGL(gl::GLContext* aGL)
|
explicit PerFrameTexturePoolOGL(gl::GLContext* aGL)
|
||||||
: mTextureTarget(0) // zero is never a valid texture target
|
: mTextureTarget(0) // zero is never a valid texture target
|
||||||
, mGL(aGL)
|
, mGL(aGL)
|
||||||
{}
|
{}
|
||||||
|
@ -162,8 +162,8 @@ class CompositorOGL MOZ_FINAL : public Compositor
|
||||||
|
|
||||||
std::map<ShaderConfigOGL, ShaderProgramOGL*> mPrograms;
|
std::map<ShaderConfigOGL, ShaderProgramOGL*> mPrograms;
|
||||||
public:
|
public:
|
||||||
CompositorOGL(nsIWidget *aWidget, int aSurfaceWidth = -1, int aSurfaceHeight = -1,
|
explicit CompositorOGL(nsIWidget *aWidget, int aSurfaceWidth = -1, int aSurfaceHeight = -1,
|
||||||
bool aUseExternalSurfaceSize = false);
|
bool aUseExternalSurfaceSize = false);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~CompositorOGL();
|
virtual ~CompositorOGL();
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace layers {
|
||||||
class GLManagerCompositor : public GLManager
|
class GLManagerCompositor : public GLManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GLManagerCompositor(CompositorOGL* aCompositor)
|
explicit GLManagerCompositor(CompositorOGL* aCompositor)
|
||||||
: mImpl(aCompositor)
|
: mImpl(aCompositor)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace layers {
|
||||||
class MacIOSurfaceTextureClientOGL : public TextureClient
|
class MacIOSurfaceTextureClientOGL : public TextureClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MacIOSurfaceTextureClientOGL(TextureFlags aFlags);
|
explicit MacIOSurfaceTextureClientOGL(TextureFlags aFlags);
|
||||||
|
|
||||||
virtual ~MacIOSurfaceTextureClientOGL();
|
virtual ~MacIOSurfaceTextureClientOGL();
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ class CompositableForwarder;
|
||||||
class SharedTextureClientOGL : public TextureClient
|
class SharedTextureClientOGL : public TextureClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SharedTextureClientOGL(TextureFlags aFlags);
|
explicit SharedTextureClientOGL(TextureFlags aFlags);
|
||||||
|
|
||||||
~SharedTextureClientOGL();
|
~SharedTextureClientOGL();
|
||||||
|
|
||||||
|
|
|
@ -212,8 +212,8 @@ class TextureImageTextureSourceOGL : public DataTextureSource
|
||||||
, public BigImageIterator
|
, public BigImageIterator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TextureImageTextureSourceOGL(gl::GLContext* aGL,
|
explicit TextureImageTextureSourceOGL(gl::GLContext* aGL,
|
||||||
TextureFlags aFlags = TextureFlags::DEFAULT)
|
TextureFlags aFlags = TextureFlags::DEFAULT)
|
||||||
: mGL(aGL)
|
: mGL(aGL)
|
||||||
, mFlags(aFlags)
|
, mFlags(aFlags)
|
||||||
, mIterating(false)
|
, mIterating(false)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче