diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-07-11 16:19:45 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-11 16:19:45 -0700 |
commit | ad1bc825197d7f62d2a8d06d3b56fdc5f9c458b9 (patch) | |
tree | 461b511d9e80af2c863f3b370659b46fffca9126 /Source/WebCore | |
parent | 82a9205099b518893ebaa7dce8e91629fece56ec (diff) | |
parent | 73798658e8ef393934cf8f1d8a69a971d497c0b7 (diff) | |
download | external_webkit-ad1bc825197d7f62d2a8d06d3b56fdc5f9c458b9.zip external_webkit-ad1bc825197d7f62d2a8d06d3b56fdc5f9c458b9.tar.gz external_webkit-ad1bc825197d7f62d2a8d06d3b56fdc5f9c458b9.tar.bz2 |
Merge "Clear up the bitmap with white color at initial time"
Diffstat (limited to 'Source/WebCore')
-rw-r--r-- | Source/WebCore/platform/graphics/android/RasterRenderer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/RasterRenderer.cpp b/Source/WebCore/platform/graphics/android/RasterRenderer.cpp index dc35cdd..35fc35a 100644 --- a/Source/WebCore/platform/graphics/android/RasterRenderer.cpp +++ b/Source/WebCore/platform/graphics/android/RasterRenderer.cpp @@ -90,6 +90,10 @@ void RasterRenderer::setupCanvas(const TileRenderInfo& renderInfo, SkCanvas* can renderInfo.invalRect->width(), renderInfo.invalRect->height()); bitmap.allocPixels(); + // Clear the bitmap to whiteness first. + bitmap.setIsOpaque(true); + bitmap.eraseARGB(255, 255, 255, 255); + SkDevice* device = new SkDevice(NULL, bitmap, false); if (renderInfo.measurePerf) { |