mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 887927 - Hold a ref to DrawTargetSkia within SourceSurfaceSkia r=mattwoodrow
This commit is contained in:
parent
7f3c72754a
commit
a9ed9eaf16
@ -87,14 +87,7 @@ DrawTargetSkia::DrawTargetSkia()
|
||||
|
||||
DrawTargetSkia::~DrawTargetSkia()
|
||||
{
|
||||
if (mSnapshots.size()) {
|
||||
for (std::vector<SourceSurfaceSkia*>::iterator iter = mSnapshots.begin();
|
||||
iter != mSnapshots.end(); iter++) {
|
||||
(*iter)->DrawTargetDestroyed();
|
||||
}
|
||||
// All snapshots will now have copied data.
|
||||
mSnapshots.clear();
|
||||
}
|
||||
MOZ_ASSERT(mSnapshots.size() == 0);
|
||||
}
|
||||
|
||||
TemporaryRef<SourceSurface>
|
||||
|
@ -108,12 +108,6 @@ SourceSurfaceSkia::DrawTargetWillChange()
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
SourceSurfaceSkia::DrawTargetDestroyed()
|
||||
{
|
||||
mDrawTarget = nullptr;
|
||||
}
|
||||
|
||||
void
|
||||
SourceSurfaceSkia::MarkIndependent()
|
||||
{
|
||||
|
@ -53,7 +53,7 @@ private:
|
||||
SurfaceFormat mFormat;
|
||||
IntSize mSize;
|
||||
int32_t mStride;
|
||||
DrawTargetSkia* mDrawTarget;
|
||||
RefPtr<DrawTargetSkia> mDrawTarget;
|
||||
bool mLocked;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user