Bug 1125457 - Fix a couple of issues in Downscaler.h that broke the build with --disable-skia. r=me

This commit is contained in:
Seth Fowler 2015-01-24 17:50:21 -08:00
parent 3a66f27ca6
commit c233268f64

View File

@ -127,18 +127,18 @@ class Downscaler
public:
explicit Downscaler(const nsIntSize&)
{
MOZ_RELEASE_ASSERT("Skia is not enabled");
MOZ_RELEASE_ASSERT(false, "Skia is not enabled");
}
const nsIntSize& OriginalSize() const { return nsIntSize(); }
const nsIntSize& TargetSize() const { return nsIntSize(); }
uint8_t* Buffer() { return nullptr; }
nsresult BeginFrame(const nsIntSize&, uint8_t*, bool)
{
return NS_ERROR_FAILURE;
}
uint8_t* RowBuffer() { return nullptr; }
void CommitRow() { }
bool HasInvalidation() const { return false; }
nsIntRect TakeInvalidRect() { return nsIntRect(); }