Bug 783841 - Fix build warnings in layers r=cjones

This commit is contained in:
David Zbarsky 2012-08-19 20:07:31 -04:00
Родитель 6e9c14e23a
Коммит 38147cc954
7 изменённых файлов: 7 добавлений и 9 удалений

Просмотреть файл

@ -45,10 +45,12 @@ public:
void SetBackingBuffer(gfxASurface* aBuffer,
const nsIntRect& aRect, const nsIntPoint& aRotation)
{
#ifdef DEBUG
gfxIntSize prevSize = gfxIntSize(BufferRect().width, BufferRect().height);
gfxIntSize newSize = aBuffer->GetSize();
NS_ABORT_IF_FALSE(newSize == prevSize,
"Swapped-in buffer size doesn't match old buffer's!");
#endif
nsRefPtr<gfxASurface> oldBuffer;
oldBuffer = SetBuffer(aBuffer, aRect, aRotation);
}

Просмотреть файл

@ -506,8 +506,6 @@ const gfx::Point AsyncPanZoomController::GetVelocityVector() {
}
void AsyncPanZoomController::StartPanning(const MultiTouchInput& aEvent) {
SingleTouchData& touch = GetFirstSingleTouch(aEvent);
float dx = mX.PanDistance(),
dy = mY.PanDistance();

Просмотреть файл

@ -73,7 +73,7 @@ PImageContainerParent* ImageBridgeParent::AllocPImageContainer(PRUint64* aID)
{
PRUint64 id = GenImageContainerID();
*aID = id;
return new ImageContainerParent(this, id);
return new ImageContainerParent(id);
}
bool ImageBridgeParent::DeallocPImageContainer(PImageContainerParent* toDealloc)

Просмотреть файл

@ -11,8 +11,8 @@
namespace mozilla {
namespace layers {
ImageContainerParent::ImageContainerParent(ImageBridgeParent* aBridge, PRUint32 aHandle)
: mID(aHandle), mBridge(aBridge), mStop(false) {
ImageContainerParent::ImageContainerParent(PRUint32 aHandle)
: mID(aHandle), mStop(false) {
MOZ_COUNT_CTOR(ImageContainerParent);
}

Просмотреть файл

@ -29,7 +29,7 @@ class ImageContainerParent : public PImageContainerParent
{
public:
ImageContainerParent(ImageBridgeParent* aBridge, PRUint32 aContainerID);
ImageContainerParent(PRUint32 aContainerID);
~ImageContainerParent();
// Overriden from PImageContainerParent (see ImageContainer.ipdl)
@ -126,7 +126,6 @@ protected:
private:
PRUint64 mID;
ImageBridgeParent* mBridge;
bool mStop;
};

Просмотреть файл

@ -1056,7 +1056,7 @@ ShadowImageLayerOGL::CleanupResources()
{
if (mSharedHandle) {
gl()->ReleaseSharedHandle(mShareType, mSharedHandle);
mSharedHandle = NULL;
mSharedHandle = 0;
}
mExternalBufferTexture.Release();

Просмотреть файл

@ -864,7 +864,6 @@ RenderFrameParent::BuildDisplayList(nsDisplayListBuilder* aBuilder,
nsDisplayList shadowTree;
ContainerLayer* container = GetRootLayer();
if (aBuilder->IsForEventDelivery() && container) {
nsRect bounds = aFrame->EnsureInnerView()->GetBounds();
ViewTransform offset =
ViewTransform(GetRootFrameOffset(aFrame, aBuilder), 1, 1);
BuildListForLayer(container, mFrameLoader, offset,