Bug 634521 - Let mac plugins trigger empty transactions. r=roc a=roc

This commit is contained in:
Matt Woodrow
2011-02-17 16:56:06 +13:00
parent f95216f101
commit e18805b3a0
7 changed files with 66 additions and 7 deletions

View File

@@ -361,6 +361,14 @@ public:
*/
virtual void SetData(const Data& aData) = 0;
/**
* Temporary hacks to force plugin drawing during an empty transaction.
* This should not be used for anything else, and will be removed
* when async plugin rendering is complete.
*/
typedef void (*UpdateSurfaceCallback)(ImageContainer* aContainer, void* aInstanceOwner);
virtual void SetCallback(UpdateSurfaceCallback aCallback, void* aInstanceOwner) =0;
protected:
MacIOSurfaceImage(void* aImplData) : Image(aImplData, MAC_IO_SURFACE) {}
};