Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Issue 342087: Fixed crashes related to incorrect sizing of the Canvas's backing... (Closed)

Created:
11 years, 1 month ago by Ken Russell (switch to Gerrit)
Modified:
9 years, 7 months ago
Reviewers:
brettw, dglazkov
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

Fixed crashes on Windows related to incorrect sizing of the Canvas's backing store when CSS styles are used to resize the Canvas. Fixed incorrect rendering output on Mac OS X caused by similar issue. The deeper issue is why the Canvas's backing store is incorrectly sized in this case. http://crbug.com/26542 has been filed to track this remaining problem. BUG=http://crbug.com/26515 TEST=none (covered by preexisting manual WebGL tests) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30859

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -9 lines) Patch
M webkit/api/src/GraphicsContext3D.cpp View 1 5 chunks +67 lines, -9 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
Ken Russell (switch to Gerrit)
11 years, 1 month ago (2009-11-03 00:20:01 UTC) #1
Ken Russell (switch to Gerrit)
Fixed incorrect rendering output on Mac OS X as well.
11 years, 1 month ago (2009-11-03 01:31:28 UTC) #2
brettw
This seems complicated to avoid a crash in a case that shouldn't occur in the ...
11 years, 1 month ago (2009-11-03 17:28:20 UTC) #3
Ken Russell (switch to Gerrit)
On 2009/11/03 17:28:20, brettw wrote: > This seems complicated to avoid a crash in a ...
11 years, 1 month ago (2009-11-03 17:42:31 UTC) #4
brettw
LGTM http://codereview.chromium.org/342087/diff/1002/2001 File webkit/api/src/GraphicsContext3D.cpp (right): http://codereview.chromium.org/342087/diff/1002/2001#newcode755 Line 755: canvas.drawBitmapRect(*m_resizingBitmap, 0, dst); Do you want antialiasing? ...
11 years, 1 month ago (2009-11-03 20:21:18 UTC) #5
Ken Russell (switch to Gerrit)
11 years, 1 month ago (2009-11-03 20:46:19 UTC) #6
On 2009/11/03 20:21:18, brettw wrote:
> 
> http://codereview.chromium.org/342087/diff/1002/2001
> File webkit/api/src/GraphicsContext3D.cpp (right):
> 
> http://codereview.chromium.org/342087/diff/1002/2001#newcode755
> Line 755: canvas.drawBitmapRect(*m_resizingBitmap, 0, dst);
> Do you want antialiasing? This call will not give you any. If you do, make a
> SkPaint and do setFilterBitmap (or something like that) on it before passing
it
> into drawBitmapRect.

Thanks for the hint. Antialiasing doesn't seem to be necessary here. In these
cases the canvas's content is being downscaled fairly drastically before being
scaled back up (with antialiasing) during page composition.

Powered by Google App Engine
This is Rietveld 408576698