mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 539356 - Part 2 - Add new API to BasicLayers. r=roc
This commit is contained in:
parent
d857e4f101
commit
8c49e4a361
@ -229,6 +229,12 @@ public:
|
||||
virtual ShadowLayerManager* AsShadowManager()
|
||||
{ return nsnull; }
|
||||
|
||||
/**
|
||||
* Returns true if this LayerManager is owned by an nsIWidget,
|
||||
* and is used for drawing into the widget.
|
||||
*/
|
||||
virtual bool IsWidgetLayerManager() { return true; }
|
||||
|
||||
/**
|
||||
* Start a new transaction. Nested transactions are not allowed so
|
||||
* there must be no transaction currently in progress.
|
||||
|
@ -86,6 +86,8 @@ public:
|
||||
nsIWidget* GetRetainerWidget() { return mWidget; }
|
||||
void ClearRetainerWidget() { mWidget = nsnull; }
|
||||
|
||||
virtual bool IsWidgetLayerManager() { return mWidget != nsnull; }
|
||||
|
||||
virtual void BeginTransaction();
|
||||
virtual void BeginTransactionWithTarget(gfxContext* aTarget);
|
||||
virtual bool EndEmptyTransaction();
|
||||
@ -121,9 +123,11 @@ public:
|
||||
bool InConstruction() { return mPhase == PHASE_CONSTRUCTION; }
|
||||
bool InDrawing() { return mPhase == PHASE_DRAWING; }
|
||||
bool InForward() { return mPhase == PHASE_FORWARD; }
|
||||
bool InTransaction() { return mPhase != PHASE_NONE; }
|
||||
#endif
|
||||
bool InTransaction() { return mPhase != PHASE_NONE; }
|
||||
|
||||
gfxContext* GetTarget() { return mTarget; }
|
||||
void SetTarget(gfxContext* aTarget) { mUsingDefaultTarget = false; mTarget = aTarget; }
|
||||
bool IsRetained() { return mWidget != nsnull; }
|
||||
|
||||
#ifdef MOZ_LAYERS_HAVE_LOG
|
||||
@ -149,12 +153,10 @@ public:
|
||||
virtual PRInt32 GetMaxTextureSize() const { return PR_INT32_MAX; }
|
||||
|
||||
protected:
|
||||
#ifdef DEBUG
|
||||
enum TransactionPhase {
|
||||
PHASE_NONE, PHASE_CONSTRUCTION, PHASE_DRAWING, PHASE_FORWARD
|
||||
};
|
||||
TransactionPhase mPhase;
|
||||
#endif
|
||||
|
||||
// Paints aLayer to mTarget.
|
||||
void PaintLayer(gfxContext* aTarget,
|
||||
|
Loading…
Reference in New Issue
Block a user