Closed Bug 594624 Opened 14 years ago Closed 14 years ago

[D2D][D3D9] Content Type switches not supported properly

Categories

(Core :: Graphics, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- beta7+

People

(Reporter: bas.schouten, Assigned: bas.schouten)

References

Details

Attachments

(2 files, 1 obsolete file)

When CanUseOpaqueSurface() changes during the lifetime of a layer, when using just GDI this causes the texture to be recreated. With D2D this does not happen since it always uses a D3DFMT_A8R8G8B8, and the surface content type determines how its drawn. We should verify this and recreate the surface if needed.
blocking2.0: --- → ?
Attachment #473317 - Flags: review?(jmuizelaar)
No longer blocks: 594322
Blocks: 593860
blocking2.0: ? → beta6+
We should be able to get a reftest here.
Comment on attachment 473317 [details] [diff] [review] Toss out surface on content type change Seems like this should be a function instead of duplicating the code. Make sure you put the #ifdef CAIRO_HAS_D2D_SURFACE inside the function so that you don't clutter up the callers. You should also put together a reftest for this.
Attachment #473317 - Flags: review?(jmuizelaar) → review-
Adjusted for review comments. Will create a reftest for this tomorrow.
Attachment #473317 - Attachment is obsolete: true
Attachment #473897 - Flags: review?(jmuizelaar)
Summary: [D2D][D3D9] Content Type switches not supporter properly → [D2D][D3D9] Content Type switches not supported properly
This reftest seems to do the job, it's the most reduced thing I can come up with.
Attachment #474115 - Flags: review?(roc)
Attachment #473897 - Flags: review?(jmuizelaar) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: