Backout 76dcfabe0a2a, d8004eb22252, 86e91202ef51 & f9a5736cd6bc (bug 695845) for build failures on windows

This commit is contained in:
Ed Morley
2011-12-19 20:27:59 +00:00
parent b574cbd7c2
commit 968b5c4c1e
4 changed files with 50 additions and 112 deletions

View File

@@ -136,11 +136,10 @@ class THEBES_API ImageContainer {
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(ImageContainer)
public:
ImageContainer(void *aImplData = nsnull) :
ImageContainer() :
mReentrantMonitor("ImageContainer.mReentrantMonitor"),
mPaintCount(0),
mPreviousImagePainted(false),
mImplData(aImplData)
mPreviousImagePainted(false)
{}
virtual ~ImageContainer() {}
@@ -184,20 +183,6 @@ public:
*/
virtual already_AddRefed<Image> GetCurrentImage() = 0;
/**
* Make sure the current image is ready for rendering by this container.
* May only be called from the main thread.
*/
virtual void Flush() {}
/**
* |Disconnect()| is used by ImageContainer hooked up over IPC. It may
* be called at any time, and may not be called at all. Using an
* IPC-enabled layer after Destroy() (drawing etc.) results in a
* safe no-op; no crashy or uaf etc.
*/
virtual void Disconnect() {}
/**
* Get the current image as a gfxASurface. This is useful for fallback
* rendering.
@@ -215,8 +200,6 @@ public:
*/
virtual already_AddRefed<gfxASurface> GetCurrentAsSurface(gfxIntSize* aSizeResult) = 0;
virtual void* ImplData() { return mImplData; }
/**
* Returns the layer manager for this container. This can only
* be used on the main thread, since layer managers should only be
@@ -308,12 +291,11 @@ protected:
// image", and any other state which is shared between threads.
ReentrantMonitor mReentrantMonitor;
ImageContainer(LayerManager* aManager, void* aImplData = nsnull) :
ImageContainer(LayerManager* aManager) :
mManager(aManager),
mReentrantMonitor("ImageContainer.mReentrantMonitor"),
mPaintCount(0),
mPreviousImagePainted(false),
mImplData(aImplData)
mPreviousImagePainted(false)
{}
// Performs necessary housekeeping to ensure the painted frame statistics
@@ -336,8 +318,6 @@ protected:
// Denotes whether the previous image was painted.
bool mPreviousImagePainted;
void* mImplData;
};
/**