Closed
Bug 976184
Opened 12 years ago
Closed 12 years ago
canvasmark "click here" text rendered incorrectly
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: snorp, Assigned: gw280)
References
(Depends on 1 open bug, )
Details
Attachments
(2 files, 1 obsolete file)
|
555.05 KB,
image/png
|
Details | |
|
3.65 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
With the latest Skia rebase (bug 910754), the "click or press space to run canvasmark" message at the beginning is rendered incorrectly.
| Reporter | ||
Comment 1•12 years ago
|
||
We need a test case for whatever operation this is that keeps being problematic (fillText?).
Comment 2•12 years ago
|
||
:snorp, if you need this in 30, you're probably not going to get it out of George...
| Reporter | ||
Comment 3•12 years ago
|
||
The following small test case reproduces the problem. It seems that drawing text with a shadow is completely busted. Surely we have a test for this?
var c = document.getElementById('c');
var ctx = c.getContext('2d');
ctx.fillStyle = 'red'
ctx.fillRect(0, 0, c.width, c.height);
ctx.fillStyle = 'black';
ctx.font = '12pt Arial';
ctx.shadowColor = 'white';
ctx.shadowOffsetX = 5;
ctx.shadowOffsetY = 5;
ctx.shadowBlur = 2;
ctx.fillText("Test", 50, 50);
| Reporter | ||
Comment 4•12 years ago
|
||
It's busted with transparent images too.
| Reporter | ||
Comment 5•12 years ago
|
||
Looks like we still need the patch from bug 884888.
Depends on: 884888
Comment 6•12 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #2)
> :snorp, if you need this in 30, you're probably not going to get it out of
> George...
With comment 3 and 5 in mind, George will aim to fix it in 30.
| Reporter | ||
Comment 7•12 years ago
|
||
Looks like due to bug 907351, we never use SkiaGL during reftests at all, even for once that explicitly exercise the canvas. Ugh.
| Assignee | ||
Comment 8•12 years ago
|
||
Oh, I forgot that we weren't testing SkiaGL. Snorp and I had actually been discussing whether or not shadows were still broken. I will endeavour to get this fixed today as it shouldn't be too hard.
| Assignee | ||
Comment 9•12 years ago
|
||
Attachment #8387072 -
Flags: review?(snorp)
| Assignee | ||
Comment 10•12 years ago
|
||
| Assignee | ||
Comment 11•12 years ago
|
||
Comment on attachment 8387072 [details] [diff] [review]
0001-Bug-976184-Apply-a-drop-shadow-image-filter-to-our-S.patch
Matt's probably a better reviewer for this actually...
Attachment #8387072 -
Flags: review?(snorp) → review?(matt.woodrow)
Comment 12•12 years ago
|
||
Comment on attachment 8387072 [details] [diff] [review]
0001-Bug-976184-Apply-a-drop-shadow-image-filter-to-our-S.patch
Review of attachment 8387072 [details] [diff] [review]:
-----------------------------------------------------------------
Much happy.
Attachment #8387072 -
Flags: review?(matt.woodrow) → review+
| Assignee | ||
Comment 13•12 years ago
|
||
Oops, didn't realise DrawSurfaceWithShadow operates in device space. Let's fix that. :)
Attachment #8387072 -
Attachment is obsolete: true
Attachment #8387487 -
Flags: review?(matt.woodrow)
| Assignee | ||
Comment 14•12 years ago
|
||
Updated•12 years ago
|
Attachment #8387487 -
Flags: review?(matt.woodrow) → review+
| Assignee | ||
Comment 16•12 years ago
|
||
Comment 17•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in
before you can comment on or make changes to this bug.
Description
•