зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1031165 - Fix non-unified OS X build's warnings-as-errors in gfx/layers. r=bjacob
This commit is contained in:
Родитель
af3daeff63
Коммит
146b02353e
|
@ -178,7 +178,10 @@ ISurfaceAllocator::DestroySharedSurface(SurfaceDescriptor* aSurface)
|
|||
// XXX - We should actually figure out the minimum shmem allocation size on
|
||||
// a certain platform and use that.
|
||||
const uint32_t sShmemPageSize = 4096;
|
||||
|
||||
#ifdef DEBUG
|
||||
const uint32_t sSupportedBlockSize = 4;
|
||||
#endif
|
||||
|
||||
enum AllocationStatus
|
||||
{
|
||||
|
@ -324,5 +327,5 @@ ISurfaceAllocator::DeallocGrallocBuffer(MaybeMagicGrallocBufferHandle* aHandle)
|
|||
SharedBufferManagerChild::GetSingleton()->DeallocGrallocBuffer(*aHandle);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
} // namespace layers
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -59,8 +59,6 @@
|
|||
#include <ui/Fence.h>
|
||||
#endif
|
||||
|
||||
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
using namespace std;
|
||||
|
@ -406,11 +404,13 @@ SetRects(int n,
|
|||
aTextureRects[n] = Rect(tx0, ty0, tx1 - tx0, ty1 - ty0);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
static inline bool
|
||||
FuzzyEqual(float a, float b)
|
||||
{
|
||||
return fabs(a - b) < 0.0001f;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int
|
||||
DecomposeIntoNoRepeatRects(const Rect& aRect,
|
||||
|
|
Загрузка…
Ссылка в новой задаче