Closed Bug 942318 Opened 11 years ago Closed 11 years ago

Remove erroneous lock in BasicCompositor::DrawQuad

Categories

(Core :: Graphics: Layers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: dvander, Assigned: dvander)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

Attached patch cleanup-locking.patch (obsolete) — Splinter Review
The lock in BasicCompositor::DrawQuad is unnecessary, it's already locked earlier in the callstack. Luckily Lock() doesn't actually lock anything for the object it's static_casting to, but the cast looks dubious anyway.
Attachment #8337044 - Flags: review?(matt.woodrow)
Comment on attachment 8337044 [details] [diff] [review]
cleanup-locking.patch

Review of attachment 8337044 [details] [diff] [review]:
-----------------------------------------------------------------

::: gfx/layers/basic/BasicCompositor.cpp
@@ +119,5 @@
>                                                            mThebesImage->Stride(),
>                                                            mSize,
>                                                            mFormat);
>      }
> +  }

This change will break video, since the YCbCrDeprecatedTextureHostBasic override of EnsureSurface only initializes mThebesSuface, not mSurface.

I'd recommend fixing that function, since this changes looks good.

You just need to replace the new gfxImageSurface() call with Factory::CreateDataSourceSurface, and convert the following uses of it to the slightly different API/enum types.
Attached patch v2Splinter Review
Assignee: nobody → dvander
Attachment #8337044 - Attachment is obsolete: true
Attachment #8337044 - Flags: review?(matt.woodrow)
Attachment #8338057 - Flags: review?(matt.woodrow)
Attachment #8338057 - Flags: review?(matt.woodrow) → review+
https://hg.mozilla.org/mozilla-central/rev/27669314f120
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: