Closed
Bug 593272
Opened 14 years ago
Closed 14 years ago
mFramesWithLayers out of sync assert (and no drawing) opening options window with d3d9 layers
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | beta7+ |
People
(Reporter: joe, Assigned: roc)
References
Details
Attachments
(1 file)
905 bytes,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
Turn on D3D9 layers, and open the options dialog. You will get an assertion that mFramesWithLayers is out of sync, and the options dialog will not draw (it'll either be white or transparent).
Reporter | ||
Updated•14 years ago
|
blocking2.0: --- → beta6+
Blocks: d3d9-layers
Comment 1•14 years ago
|
||
This also happens with d2d disabled.
Comment 2•14 years ago
|
||
This looks like it is caused by us getting confused about whether we should be
using an accelerated layer manager or not. The following fixes the problem but
may not be correct:
diff --git a/widget/src/windows/nsWindow.cpp b/widget/src/windows/nsWindow.cpp
--- a/widget/src/windows/nsWindow.cpp
+++ b/widget/src/windows/nsWindow.cpp
@@ -3164,17 +3164,17 @@ nsWindow::GetLayerManager()
{
nsWindow *topWindow = GetNSWindowPtr(GetTopLevelHWND(mWnd, PR_TRUE));
if (!topWindow) {
return nsBaseWidget::GetLayerManager();
}
if (topWindow->GetAcceleratedRendering() != mUseAcceleratedRendering) {
- mLayerManager = NULL;
+ //mLayerManager = NULL;
mUseAcceleratedRendering = topWindow->GetAcceleratedRendering();
}
#ifndef WINCE
if (!mLayerManager) {
nsCOMPtr<nsIPrefBranch2> prefs = do_GetService(NS_PREFSERVICE_CONTRACTID);
PRBool accelerateByDefault = PR_TRUE;
Reporter | ||
Comment 3•14 years ago
|
||
It doesn't make a ton of sense to make child widgets have the same acceleration status as their parent now that we have (mostly - see bug 593440) only one widget per window. (It might never have made sense.)
Attachment #471954 -
Flags: review?(vladimir)
Attachment #471954 -
Flags: review?(vladimir) → review+
Comment 5•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•