Closed Bug 1004375 Opened 10 years ago Closed 10 years ago

[Skia] Remove Moz2D requirement for SK_SUPPORT_LEGACY_COMPATIBLEDEVICE_CONFIG

Categories

(Core :: Graphics, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: gw280, Assigned: wlitwinczyk)

Details

Attachments

(1 file, 4 obsolete files)

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.
Assignee: nobody → wlitwinczyk
Looks like this is invalid. I don't think we use this API (anymore?)
Attached patch skia_bug_1004375 (obsolete) — Splinter Review
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)
My fault, you have to completely remove the define, as it checks with #ifdef.
Attached patch skia_bug_1004375 (obsolete) — Splinter Review
Attachment #8427258 - Attachment is obsolete: true
Attachment #8427258 - Flags: review?(gwright)
Attachment #8427364 - Flags: review?(gwright)
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+
Attached patch skia_bug_1004375 (obsolete) — Splinter Review
Try found a small bug. Create() can return a null value.
Attachment #8427364 - Attachment is obsolete: true
Attachment #8445519 - Flags: review?(gwright)
New Try: https://tbpl.mozilla.org/?tree=Try&rev=ec20a8970919

I think Linux Debug bc1 will eventually pass, just unlucky problems.
It appears there may be a real bug on B2G Desktop OS X Opt Gu, will take a look into that.
Okay, so the failure does not appear to be from this patch: https://bugzilla.mozilla.org/show_bug.cgi?id=1027604
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+
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.
Keywords: checkin-needed
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
Attached patch Should fix the failed to apply (obsolete) — Splinter Review
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+
Keywords: checkin-needed
Keywords: checkin-needed
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+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/0f7f4d5f5e45
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: