diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2012-06-26 16:36:47 -0700 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2012-06-26 17:04:53 -0700 |
commit | d823574f92be4f91c0127b48386bc4df2baa7984 (patch) | |
tree | da62ebb5e9bb742a38542c6f2b56fccbe9c170f6 /Source/WebCore/platform/graphics/android/rendering/GLUtils.cpp | |
parent | 53f84f58d9ffe86a4932c979b9863acadb5769ef (diff) | |
download | external_webkit-d823574f92be4f91c0127b48386bc4df2baa7984.zip external_webkit-d823574f92be4f91c0127b48386bc4df2baa7984.tar.gz external_webkit-d823574f92be4f91c0127b48386bc4df2baa7984.tar.bz2 |
Improve the CPU upload path.
Swap the SkBitmap instead of a copy to save the memory bandwidth.
Change-Id: I0998248a9a87ce4058898e66a4739995da9c003c
Diffstat (limited to 'Source/WebCore/platform/graphics/android/rendering/GLUtils.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/rendering/GLUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/GLUtils.cpp b/Source/WebCore/platform/graphics/android/rendering/GLUtils.cpp index a68c01a..d5a701b 100644 --- a/Source/WebCore/platform/graphics/android/rendering/GLUtils.cpp +++ b/Source/WebCore/platform/graphics/android/rendering/GLUtils.cpp @@ -446,7 +446,7 @@ bool GLUtils::skipTransferForPureColor(const TileRenderInfo* renderInfo, } void GLUtils::paintTextureWithBitmap(const TileRenderInfo* renderInfo, - const SkBitmap& bitmap) + SkBitmap& bitmap) { if (!renderInfo) return; @@ -472,7 +472,7 @@ void GLUtils::paintTextureWithBitmap(const TileRenderInfo* renderInfo, } } -void GLUtils::updateQueueWithBitmap(const TileRenderInfo* renderInfo, const SkBitmap& bitmap) +void GLUtils::updateQueueWithBitmap(const TileRenderInfo* renderInfo, SkBitmap& bitmap) { if (!renderInfo || !renderInfo->textureInfo |