Closed
Bug 1004375
Opened 12 years ago
Closed 12 years ago
[Skia] Remove Moz2D requirement for SK_SUPPORT_LEGACY_COMPATIBLEDEVICE_CONFIG
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: gw280, Assigned: wlitwinczyk)
Details
Attachments
(1 file, 4 obsolete files)
|
1.92 KB,
patch
|
wlitwinczyk
:
review+
|
Details | Diff | Splinter Review |
Skia are deprecating some of their SkDevice APIs, and to ease the transition the old ones are still available behind an ifdef SK_SUPPORT_LEGACY_COMPATIBLEDEVICE_CONFIG
We should remove our usage of these old APIs and switch to the new ones.
Ideal as an intern bug.
Updated•12 years ago
|
Assignee: nobody → wlitwinczyk
| Reporter | ||
Comment 1•12 years ago
|
||
Looks like this is invalid. I don't think we use this API (anymore?)
| Assignee | ||
Comment 2•12 years ago
|
||
So it appears that no symbols from the legacy compatible device api, as a full build after this patch produces no problems.
Attachment #8427258 -
Flags: review?(gwright)
| Assignee | ||
Comment 3•12 years ago
|
||
My fault, you have to completely remove the define, as it checks with #ifdef.
| Assignee | ||
Comment 4•12 years ago
|
||
Attachment #8427258 -
Attachment is obsolete: true
Attachment #8427258 -
Flags: review?(gwright)
Attachment #8427364 -
Flags: review?(gwright)
| Reporter | ||
Comment 5•12 years ago
|
||
Comment on attachment 8427364 [details] [diff] [review]
skia_bug_1004375
Review of attachment 8427364 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. Didn't realise I had already committed a similar patch to moz2d directly (http://hg.mozilla.org/users/bschouten_mozilla.com/moz2d/rev/5e5bb470b61f) but this works just fine :)
Attachment #8427364 -
Flags: review?(gwright) → review+
| Assignee | ||
Comment 6•12 years ago
|
||
Try found a small bug. Create() can return a null value.
Attachment #8427364 -
Attachment is obsolete: true
Attachment #8445519 -
Flags: review?(gwright)
| Assignee | ||
Comment 7•12 years ago
|
||
New Try: https://tbpl.mozilla.org/?tree=Try&rev=ec20a8970919
I think Linux Debug bc1 will eventually pass, just unlucky problems.
| Assignee | ||
Comment 8•12 years ago
|
||
It appears there may be a real bug on B2G Desktop OS X Opt Gu, will take a look into that.
| Assignee | ||
Comment 9•12 years ago
|
||
Okay, so the failure does not appear to be from this patch: https://bugzilla.mozilla.org/show_bug.cgi?id=1027604
| Reporter | ||
Comment 10•12 years ago
|
||
Comment on attachment 8445519 [details] [diff] [review]
skia_bug_1004375
Review of attachment 8445519 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/2d/DrawTargetSkia.cpp
@@ +708,5 @@
> bool
> DrawTargetSkia::Init(const IntSize &aSize, SurfaceFormat aFormat)
> {
> + SkAlphaType alphaType = (aFormat == SurfaceFormat::B8G8R8X8) ?
> + kOpaque_SkAlphaType : kPremul_SkAlphaType;
I think it should be kIgnore_SkAlphaType
Attachment #8445519 -
Flags: review?(gwright) → review+
| Assignee | ||
Comment 11•12 years ago
|
||
I did a test with kIgnore_SkAlphaType: https://tbpl.mozilla.org/?tree=Try&rev=66b15857281d (ignore the whitespace changes) and it seemed to create lots of pixel differences. Since the first one works better in try (at the moment) I'll mark it as checkin-needed.
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 12•12 years ago
|
||
Hi Walter,
this patch fails to apply during checkin:
applying skia_bug_1004375
patching file gfx/skia/trunk/include/config/SkUserConfig.h
Hunk #1 FAILED at 200
1 out of 1 hunks FAILED -- saving rejects to file gfx/skia/trunk/include/config/SkUserConfig.h.rej
patch failed, unable to continue (try -v)
patch failed, rejects left in working dir
errors during apply, please fix and refresh skia_bug_1004375
could you take a look, thanks!
Keywords: checkin-needed
| Assignee | ||
Comment 13•12 years ago
|
||
r=gw280 carried forward. Fixed patch apply issues.
Hi Carsten,
It appears there was a small dependency between this patch and bug 1004374. There was a line removed from the header in that patch that was in the context of the diff for this patch. It should apply cleanly now.
Attachment #8445519 -
Attachment is obsolete: true
Attachment #8449520 -
Flags: review+
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
| Assignee | ||
Comment 14•12 years ago
|
||
r=gw280 carried forward.
Not a good morning, somehow uploaded the wrong patch... Above comments still apply.
Attachment #8449520 -
Attachment is obsolete: true
Attachment #8449523 -
Flags: review+
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 16•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•