Closed
Bug 596489
Opened 15 years ago
Closed 15 years ago
Support permanent device loss with D3D9
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| blocking2.0 | --- | betaN+ |
People
(Reporter: bas.schouten, Assigned: bas.schouten)
References
Details
Attachments
(3 files)
|
3.72 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
|
3.53 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
|
2.11 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
We should support the device we're currently using permanently being removed somehow (crashes, reinstall, disable, etc.) with the D3D9 layers backend.
| Assignee | ||
Comment 1•15 years ago
|
||
Attachment #475422 -
Flags: review?(jmuizelaar)
| Assignee | ||
Comment 2•15 years ago
|
||
This is needed to allow a different DeviceManager to become the default as LayerManagers die and let go of the DeviceManager's they were using.
| Assignee | ||
Updated•15 years ago
|
Attachment #475424 -
Flags: review?(jmuizelaar)
| Assignee | ||
Comment 3•15 years ago
|
||
Attachment #475428 -
Flags: review?(roc)
Updated•15 years ago
|
blocking2.0: --- → betaN+
Attachment #475428 -
Flags: review?(roc) → review+
Updated•15 years ago
|
Attachment #475422 -
Flags: review?(jmuizelaar) → review+
Comment 4•15 years ago
|
||
Comment on attachment 475424 [details] [diff] [review]
Part 2: Refactor DeviceManager ownership
>+ mWidget = aWidget;
>+ mCurrentCallbackInfo.Callback = NULL;
>+ mCurrentCallbackInfo.CallbackData = NULL;
>+
>+ if (mDeviceManager && mDeviceManager->Release() == 0) {
>+ mDeviceManager = nsnull;
>+ }
Oops.
>diff --git a/gfx/layers/d3d9/LayerManagerD3D9.h b/gfx/layers/d3d9/LayerManagerD3D9.h
>--- a/gfx/layers/d3d9/LayerManagerD3D9.h
>+++ b/gfx/layers/d3d9/LayerManagerD3D9.h
> static void OnDeviceManagerDestroy(DeviceManagerD3D9 *aDeviceManager) {
>- if(aDeviceManager == mDeviceManager)
>- mDeviceManager = nsnull;
>+ if(aDeviceManager == mDefaultDeviceManager)
missing space after "if ("
Attachment #475424 -
Flags: review?(jmuizelaar) → review+
Comment 5•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/7a05dd5b25de
http://hg.mozilla.org/mozilla-central/rev/c5608e9f3753
http://hg.mozilla.org/mozilla-central/rev/7cf62a2a821e
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 6•15 years ago
|
||
Crap, sorry, wrong revisions in the above comment. These are the correct revisions:
http://hg.mozilla.org/mozilla-central/rev/a38c033e298b
http://hg.mozilla.org/mozilla-central/rev/70e0e08ed6dd
http://hg.mozilla.org/mozilla-central/rev/20f4616058da
You need to log in
before you can comment on or make changes to this bug.
Description
•