Changeset 66787 in webkit


Ignore:
Timestamp:
Sep 3, 2010 7:31:10 PM (14 years ago)
Author:
jamesr@google.com
Message:

2010-09-03 James Robinson <jamesr@chromium.org>

Reviewed by Kenneth Russell.

[chromium] Text sometimes fails to display in accelerated 2d canvases
https://bugs.webkit.org/show_bug.cgi?id=45223

Calls PlatformContextSkia::prepareForSoftwareDraw() before drawing glyphs
using skia to ensure that the backing store state is consistent.

  • platform/graphics/chromium/FontChromiumWin.cpp: (WebCore::Font::drawGlyphs):
  • platform/graphics/chromium/FontLinux.cpp: (WebCore::Font::drawGlyphs):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r66785 r66787  
     12010-09-03  James Robinson  <jamesr@chromium.org>
     2
     3        Reviewed by Kenneth Russell.
     4
     5        [chromium] Text sometimes fails to display in accelerated 2d canvases
     6        https://bugs.webkit.org/show_bug.cgi?id=45223
     7
     8        Calls PlatformContextSkia::prepareForSoftwareDraw() before drawing glyphs
     9        using skia to ensure that the backing store state is consistent.
     10
     11        * platform/graphics/chromium/FontChromiumWin.cpp:
     12        (WebCore::Font::drawGlyphs):
     13        * platform/graphics/chromium/FontLinux.cpp:
     14        (WebCore::Font::drawGlyphs):
     15
    1162010-09-03  Kenneth Russell  <kbr@google.com>
    217
  • trunk/WebCore/platform/graphics/chromium/FontChromiumWin.cpp

    r66082 r66787  
    373373                      const FloatPoint& point) const
    374374{
     375    gc->platformContext()->prepareForSoftwareDraw();
     376
    375377    SkColor color = graphicsContext->platformContext()->effectiveFillColor();
    376378    unsigned char alpha = SkColorGetA(color);
  • trunk/WebCore/platform/graphics/chromium/FontLinux.cpp

    r66689 r66787  
    101101    }
    102102
     103    gc->platformContext()->prepareForSoftwareDraw();
     104
    103105    SkCanvas* canvas = gc->platformContext()->canvas();
    104106    int textMode = gc->platformContext()->getTextDrawingMode();
Note: See TracChangeset for help on using the changeset viewer.