Closed Bug 555285 Opened 16 years ago Closed 3 years ago

Direct2D surface is recreated a lot

Categories

(Core :: Graphics, defect)

x86
Windows 7
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: jrmuizel, Unassigned)

References

Details

(Keywords: perf)

Call stacks like the following cause us to recreate our d2d surface. I don't think we want to be doing this. xul.dll!cairo_d2d_surface_create_for_hwnd(HWND__ * wnd=0x000f00fa) Line 2101 C++ xul.dll!gfxD2DSurface::gfxD2DSurface(HWND__ * aWnd=0x000f00fa) Line 42 + 0xb bytes C++ > xul.dll!nsWindow::GetThebesSurface() Line 2822 + 0x29 bytes C++ xul.dll!nsThebesDeviceContext::CreateRenderingContext(nsIWidget * aWidget=0x0a7737b0, nsIRenderingContext * & aContext=0x00000000) Line 745 + 0x10 bytes C++ xul.dll!PresShell::CreateRenderingContext(nsIFrame * aFrame=0x0a6cbb90, nsIRenderingContext * * aResult=0x0037d278) Line 3573 + 0x16 bytes C++ xul.dll!PresShell::DoReflow(nsIFrame * target=0x0a800760, int aInterruptible=0x00000000) Line 7288 + 0x3c bytes C++
Blocks: d2d
I agree. I believe that the surface provided by GetThebesSurface is only used for measuring text; do we even need it?
Keywords: perf
Should this bug still be open?
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.