vnc: Static scaling support

 * Add new commandline flag to apply a static scaling multiplier.
 * The scaling is applied in hardware for best performance.
 * This does not yet apply as a result of rfbSetScale calls
   (window resize) from clients.
 * Fix server shutdown too.
diff --git a/src/VNCFlinger.h b/src/VNCFlinger.h
index 856bbb7..3f9bf62 100644
--- a/src/VNCFlinger.h
+++ b/src/VNCFlinger.h
@@ -46,6 +46,7 @@
     virtual status_t setPort(unsigned int port);
     virtual status_t setV4Address(const String8& address);
     virtual status_t setV6Address(const String8& address);
+    virtual status_t setScale(float scale);
 
     virtual status_t clearPassword();
     virtual status_t setPassword(const String8& passwd);
@@ -96,7 +97,9 @@
     Condition mEventCond;
 
     uint32_t mWidth, mHeight;
+    uint32_t mSourceWidth, mSourceHeight;
     int32_t mOrientation;
+    float mScale;
 
     size_t mClientCount;