mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bug 1390295 - Initialize DrawTargetCapture::mFormat before using it. r=mchang
MozReview-Commit-ID: 7x1MLj088uM --HG-- extra : amend_source : cd29e74623cb69997d6cb1525b7fe03ebadd90e3
This commit is contained in:
parent
c2b3db2bf5
commit
1b09c0adcc
@ -31,6 +31,7 @@ DrawTargetCaptureImpl::DrawTargetCaptureImpl(BackendType aBackend,
|
||||
RefPtr<DrawTarget> screenRefDT =
|
||||
gfxPlatform::GetPlatform()->ScreenReferenceDrawTarget();
|
||||
|
||||
mFormat = aFormat;
|
||||
if (aBackend == screenRefDT->GetBackendType()) {
|
||||
mRefDT = screenRefDT;
|
||||
} else {
|
||||
@ -44,8 +45,6 @@ DrawTargetCaptureImpl::DrawTargetCaptureImpl(BackendType aBackend,
|
||||
IntSize size(1, 1);
|
||||
mRefDT = Factory::CreateDrawTarget(aBackend, size, mFormat);
|
||||
}
|
||||
|
||||
mFormat = aFormat;
|
||||
}
|
||||
|
||||
bool
|
||||
|
Loading…
x
Reference in New Issue
Block a user