Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2980)

Issue 163056: Removes check for empty devPath since it was causing an assertion failure on ... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 11 months ago by Andrew Bonventre
Modified:
11 years, 4 months ago
Reviewers:
reed, agl
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/src/
Visibility:
Public.

Description

Removes check for empty devPath since it was causing an assertion failure on Mac OS X when drawing small fonts within the browser action badges. BUG=none TEST=none

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M core/SkScalerContext.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13
Andrew Bonventre
14 years, 11 months ago (2009-12-01 22:46:02 UTC) #1
agl
[+Mike]
14 years, 11 months ago (2009-12-01 23:05:52 UTC) #2
andybons2
FYI I'd be more than happy to get on the phone with someone in order ...
14 years, 11 months ago (2009-12-02 17:29:53 UTC) #3
agl
Landed as r450. Rolling DEPS now. Since it's a tiny change I'm ok letting Mike ...
14 years, 11 months ago (2009-12-02 22:26:36 UTC) #4
reed
What is the assert that is firing? The empty check makes sense to me. On ...
14 years, 11 months ago (2009-12-04 14:53:39 UTC) #5
agl
On Fri, Dec 4, 2009 at 6:53 AM, <reed@android.com> wrote: > What is the assert ...
14 years, 11 months ago (2009-12-04 18:20:42 UTC) #6
reed
Hmm. roundOut() is supposed to floor the left/top and ceil the right/bottom, so any non-zero ...
14 years, 11 months ago (2009-12-04 19:21:05 UTC) #7
andybons2
Let me look into it a bit more so I can give you a more ...
14 years, 11 months ago (2009-12-04 20:32:24 UTC) #8
andybons2
If you revert the change and try installing the GMail checker extension (http://code.google.com/chrome/extensions/samples.html) on a ...
14 years, 11 months ago (2009-12-06 19:56:18 UTC) #9
reed
Can you try this version? It sets the fMaskFormat to a valid value, as it ...
14 years, 11 months ago (2009-12-08 14:08:24 UTC) #10
andybons2
Yup. Works great :). On Tue, Dec 8, 2009 at 9:08 AM, Mike Reed <reed@android.com> ...
14 years, 11 months ago (2009-12-08 19:22:55 UTC) #11
reed
Thanks. I'll check that into the trunk. On Tue, Dec 8, 2009 at 2:22 PM, ...
14 years, 11 months ago (2009-12-08 22:00:20 UTC) #12
andybons2
14 years, 11 months ago (2009-12-08 22:01:58 UTC) #13
Awesome. Thanks, Mike.

On Tue, Dec 8, 2009 at 5:00 PM, Mike Reed <reed@android.com> wrote:
> Thanks. I'll check that into the trunk.
>
> On Tue, Dec 8, 2009 at 2:22 PM, Andrew Bonventre (Bons)
> <andybons@google.com> wrote:
>> Yup. Works great :).
>>
>> On Tue, Dec 8, 2009 at 9:08 AM, Mike Reed <reed@android.com> wrote:
>>> Can you try this version? It sets the fMaskFormat to a valid value, as
>>> it should even in the case of an error. I think this will fix the
>>> assert you were seeing, but still allow us to keep the isEmpty()
>>> check.
>>>
>>> On Sun, Dec 6, 2009 at 2:50 PM, Andrew Bonventre (Bons)
>>> <andybons@google.com> wrote:
>>>> If you revert the change and try installing the GMail checker
>>>> extension (http://code.google.com/chrome/extensions/samples.html) on a
>>>> Mac, the isEmpty() function evals to true and therefore the mask of
>>>> the glyph never gets set on line 332 of core/SkScalerContext.cpp. This
>>>> causes the SkASSERT(glyph->isFullMetrics()); to fail when we attempt
>>>> to grab the glyph's metrics in SkGlyphCache.cpp.
>>>>
>>>> If you don't have easy access to a mac dev build, I'm happy to give
>>>> more information over the phone. As of right now, though, it's simply
>>>> too difficult given my lack of knowledge of this code plus my workload
>>>> to do it via email in any sort of depth unless you have an easy answer
>>>> :). I do want to get this fixed and understand why it's breaking,
>>>> though, because a wallpaper patch like this probably will come up and
>>>> bite us in the ass at a later date.
>>>>
>>>> Cheers,
>>>> A
>>>>
>>>> On Fri, Dec 4, 2009 at 3:32 PM, Andrew Bonventre (Bons)
>>>> <andybons@google.com> wrote:
>>>>> Let me look into it a bit more so I can give you a more in-depth
>>>>> explanation. Tracking down another bug at the moment...
>>>>>
>>>>> Stay tuned.
>>>>>
>>>>> On Fri, Dec 4, 2009 at 2:21 PM, Mike Reed <reed@android.com> wrote:
>>>>>> Hmm. roundOut() is supposed to floor the left/top and ceil the
>>>>>> right/bottom, so any non-zero size should have been detected.
>>>>>> andybons?
>>>>>>
>>>>>> On Fri, Dec 4, 2009 at 1:20 PM, Adam Langley <agl@chromium.org> wrote:
>>>>>>> On Fri, Dec 4, 2009 at 6:53 AM,  <reed@android.com> wrote:
>>>>>>>> What is the assert that is firing? The empty check makes sense to me.
>>>>>>>
>>>>>>> Hopefully andybons can give a better answer, but it appeared that, at
>>>>>>> small sizes, a period was less than < 0.5pixels in each dimension and
>>>>>>> was getting rounded to zero.
>>>>>>>
>>>>>>>
>>>>>>> AGL
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b