summaryrefslogtreecommitdiff
path: root/pipe/SkGPipeRead.cpp
diff options
context:
space:
mode:
authortomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-13 18:20:14 +0000
committertomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-13 18:20:14 +0000
commit65bdc278ec246ec18a8abd9e6002b5a0e02d3dda (patch)
tree2944203cd73c74dfea487dd3b4af7440bd0a1c0d /pipe/SkGPipeRead.cpp
parent8abd697592cf7249d2ff55f8aefd2a463091ee19 (diff)
downloadsrc-65bdc278ec246ec18a8abd9e6002b5a0e02d3dda.tar.gz
Revert r5063 until unit tests can be fixed.
git-svn-id: http://skia.googlecode.com/svn/trunk/src@5067 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'pipe/SkGPipeRead.cpp')
-rw-r--r--pipe/SkGPipeRead.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/pipe/SkGPipeRead.cpp b/pipe/SkGPipeRead.cpp
index 36551072..e6013db4 100644
--- a/pipe/SkGPipeRead.cpp
+++ b/pipe/SkGPipeRead.cpp
@@ -113,6 +113,7 @@ public:
}
void addBitmap(int index) {
+ index--;
SkBitmap* bm;
if(fBitmaps.count() == index) {
bm = SkNEW(SkBitmap);
@@ -124,7 +125,7 @@ public:
}
SkBitmap* getBitmap(unsigned index) {
- return fBitmaps[index];
+ return fBitmaps[index - 1];
}
void setSharedHeap(SkBitmapHeap* heap) {