Bug 1143575. Remove unused CompositionNotifySink. r=nical

This commit is contained in:
Robert O'Callahan 2015-03-22 01:02:25 +13:00
parent 0f701e6020
commit 4400eae71d
4 changed files with 0 additions and 31 deletions

View File

@ -393,17 +393,6 @@ PluginInstanceParent::AnswerNPN_SetValue_NPPVpluginUsesDOMForCursor(
return true;
}
class NotificationSink : public CompositionNotifySink
{
public:
explicit NotificationSink(PluginInstanceParent* aInstance) : mInstance(aInstance)
{ }
virtual void DidComposite() { mInstance->DidComposite(); }
private:
PluginInstanceParent *mInstance;
};
bool
PluginInstanceParent::AnswerNPN_SetValue_NPPVpluginDrawingModel(
const int& drawingModel, NPError* result)

View File

@ -33,7 +33,6 @@ class nsPluginInstanceOwner;
namespace mozilla {
namespace layers {
class ImageContainer;
class CompositionNotifySink;
}
namespace plugins {
@ -343,7 +342,6 @@ private:
bool mIsWhitelistedForShumway;
NPWindowType mWindowType;
int16_t mDrawingModel;
nsAutoPtr<mozilla::layers::CompositionNotifySink> mNotifySink;
nsDataHashtable<nsPtrHashKey<NPObject>, PluginScriptableObjectParent*> mScriptableObjects;

View File

@ -143,7 +143,6 @@ ImageContainer::ImageContainer(ImageContainer::Mode flag)
mPreviousImagePainted(false),
mImageFactory(new ImageFactory()),
mRecycleBin(new BufferRecycleBin()),
mCompositionNotifySink(nullptr),
mImageClient(nullptr)
{
if (ImageBridgeChild::IsCreated()) {

View File

@ -222,13 +222,6 @@ private:
uint32_t mRecycledBufferSize;
};
class CompositionNotifySink
{
public:
virtual void DidComposite() = 0;
virtual ~CompositionNotifySink() {}
};
/**
* A class that manages Image creation for a LayerManager. The only reason
* we need a separate class here is that LayerManagers aren't threadsafe
@ -505,14 +498,6 @@ public:
mPaintCount++;
mPreviousImagePainted = true;
}
if (mCompositionNotifySink) {
mCompositionNotifySink->DidComposite();
}
}
void SetCompositionNotifySink(CompositionNotifySink *aSink) {
mCompositionNotifySink = aSink;
}
private:
@ -565,8 +550,6 @@ private:
nsRefPtr<BufferRecycleBin> mRecycleBin;
CompositionNotifySink *mCompositionNotifySink;
// This member points to an ImageClient if this ImageContainer was
// sucessfully created with ENABLE_ASYNC, or points to null otherwise.
// 'unsuccessful' in this case only means that the ImageClient could not