Bug 944257 - Fix warning by removing unused ContentClientBasic member variable mManager. r=gal

This commit is contained in:
Chris Peterson 2013-11-27 19:19:56 -08:00
parent b3756eee30
commit c94a0e8c44
3 changed files with 8 additions and 12 deletions

View File

@ -156,9 +156,9 @@ BasicThebesLayer::Validate(LayerManager::DrawThebesLayerCallback aCallback,
void* aCallbackData)
{
if (!mContentClient) {
// we pass a null pointer for the Forwarder argument, which means
// this will not have a ContentHost on the other side.
mContentClient = new ContentClientBasic(nullptr, BasicManager());
// This client will have a null Forwarder, which means it will not have
// a ContentHost on the other side.
mContentClient = new ContentClientBasic();
}
if (!BasicManager()->IsRetained()) {

View File

@ -73,11 +73,11 @@ ContentClient::CreateContentClient(CompositableForwarder* aForwarder)
}
ContentClientBasic::ContentClientBasic(CompositableForwarder* aForwarder,
BasicLayerManager* aManager)
: ContentClient(aForwarder)
// We pass a null pointer for the ContentClient Forwarder argument, which means
// this client will not have a ContentHost on the other side.
ContentClientBasic::ContentClientBasic()
: ContentClient(nullptr)
, RotatedContentBuffer(ContainsVisibleBounds)
, mManager(aManager)
{}
void

View File

@ -134,8 +134,7 @@ class ContentClientBasic : public ContentClient
, protected RotatedContentBuffer
{
public:
ContentClientBasic(CompositableForwarder* aForwarder,
BasicLayerManager* aManager);
ContentClientBasic();
typedef RotatedContentBuffer::PaintState PaintState;
typedef RotatedContentBuffer::ContentType ContentType;
@ -162,9 +161,6 @@ public:
}
virtual void OnActorDestroy() MOZ_OVERRIDE {}
private:
BasicLayerManager* mManager;
};
/**