mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1143575. Remove unused CompositionNotifySink. r=nical
This commit is contained in:
parent
0f701e6020
commit
4400eae71d
@ -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)
|
||||
|
@ -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;
|
||||
|
||||
|
@ -143,7 +143,6 @@ ImageContainer::ImageContainer(ImageContainer::Mode flag)
|
||||
mPreviousImagePainted(false),
|
||||
mImageFactory(new ImageFactory()),
|
||||
mRecycleBin(new BufferRecycleBin()),
|
||||
mCompositionNotifySink(nullptr),
|
||||
mImageClient(nullptr)
|
||||
{
|
||||
if (ImageBridgeChild::IsCreated()) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user