Updates:
Cc: [email protected]
Labels: -Mstone-4 Mstone-X
Comment #4 on issue 20146 by [email protected]: wide PNG fails to
render in 100% zoom using Chromium on Linux
http://code.google.com/p/chromium/issues/detail?id=20146
This is a limitation of Skia's fixed point architecture. It can't handle
images
above 32767 in either dimension (see reject_bitmap() in SkCanvas.cpp).
There are
several options here:
1) Webkit could be rewritten to handle "panning" of such bitmaps, and only
load and
draw a portion of them using Skia, but this would be a major undertaking.
2) Floating point implementations of the pixel loops could be written to
alleviate
the need for fixed-point limits. Also a major chunk of work.
3) The limitations could be relaxed in those cases where it's safe to draw
using
fixed point.
#3 is really the only one that's practical in the short term, but I'm leery
of the
implications. I tried commenting out these checks both those in
SkCanvas::internalDrawBitmap() and SkDraw::drawBitmap(), and it does work
in this
case, but I'm sure there are cases with more complex shading where these
checks are
still necessary.
Mike, do you think there are checks we could make on SkPaint to determine
when it's
safe to draw large bitmaps?
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---