summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/TransferQueue.h
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2012-06-26 16:36:47 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2012-06-26 17:04:53 -0700
commitd823574f92be4f91c0127b48386bc4df2baa7984 (patch)
treeda62ebb5e9bb742a38542c6f2b56fccbe9c170f6 /Source/WebCore/platform/graphics/android/rendering/TransferQueue.h
parent53f84f58d9ffe86a4932c979b9863acadb5769ef (diff)
downloadexternal_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/TransferQueue.h')
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/TransferQueue.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/TransferQueue.h b/Source/WebCore/platform/graphics/android/rendering/TransferQueue.h
index c0835d7..55011b0 100644
--- a/Source/WebCore/platform/graphics/android/rendering/TransferQueue.h
+++ b/Source/WebCore/platform/graphics/android/rendering/TransferQueue.h
@@ -115,11 +115,11 @@ public:
// insert the bitmap into the queue, mark the tile dirty if failing
void updateQueueWithBitmap(const TileRenderInfo* renderInfo,
- const SkBitmap& bitmap);
+ SkBitmap& bitmap);
void addItemInTransferQueue(const TileRenderInfo* info,
TextureUploadType type,
- const SkBitmap* bitmap);
+ SkBitmap& bitmap);
// Check if the item @ index is ready for update.
// The lock will be done when returning true.
bool readyForUpdate();
@@ -145,7 +145,7 @@ public:
private:
// return true if successfully inserted into queue
bool tryUpdateQueueWithBitmap(const TileRenderInfo* renderInfo,
- const SkBitmap& bitmap);
+ SkBitmap& bitmap);
bool getHasGLContext();
void setHasGLContext(bool hasContext);
void emptyAndAbandonQueue();