Closed
Bug 943614
Opened 11 years ago
Closed 11 years ago
Calling GetDataSurface() should always return a surface with surface->GetType() == SURFACE_DATA
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: mstange, Assigned: mstange)
References
Details
(Whiteboard: [qa-])
Attachments
(3 files)
3.73 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
1.92 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
1.37 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
This will make it easier to reject non-DataSourceSurfaces in DrawSurface when mixing DrawTargets and SourceSurfaces of different backends.
Attachment #8338834 -
Flags: review?(bas)
Comment 1•11 years ago
|
||
Comment on attachment 8338834 [details] [diff] [review]
part 1: Add DataSourceSurfaceWrapper and use it in the implementation of DataSourceSurface::GetDataSurface
Review of attachment 8338834 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/2d/DataSourceSurface.cpp
@@ +17,5 @@
> + temp = this;
> + } else {
> + temp = new DataSourceSurfaceWrapper(this);
> + }
> + return temp.forget();
Don't need the .forget();
Attachment #8338834 -
Flags: review?(bas) → review+
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8338838 -
Flags: review?(bas)
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8338840 -
Flags: review?(bas)
Assignee | ||
Comment 4•11 years ago
|
||
The other backends don't seem to need any fixing.
Updated•11 years ago
|
Attachment #8338838 -
Flags: review?(bas) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Updated•11 years ago
|
Attachment #8338840 -
Flags: review?(bas) → review+
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/990beb8dbc75
https://hg.mozilla.org/mozilla-central/rev/366c57b68fe2
https://hg.mozilla.org/mozilla-central/rev/a58f68a97132
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•