Direct2D surface is recreated a lot

NEW
Unassigned

Status

()

defect
9 years ago
5 years ago

People

(Reporter: jrmuizel, Unassigned)

Tracking

({perf})

Firefox Tracking Flags

(Not tracked)

Details

Reporter

Description

9 years ago
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++
Reporter

Updated

9 years ago
Blocks: d2d
I agree.  I believe that the surface provided by GetThebesSurface is only used for measuring text; do we even need it?

Updated

8 years ago
Keywords: perf

Comment 2

5 years ago
Should this bug still be open?
You need to log in before you can comment on or make changes to this bug.