aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkProcSpriteBlitter.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-12-02 09:11:25 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-02 09:11:25 -0800
commit775b8199a214af57c3ea7969e9d456f5f3eb137f (patch)
treeb4729e4aea47f46a371957cf713a4cc135717a3d /src/core/SkProcSpriteBlitter.cpp
parentba1bf8af8d63ce866e3099c410228ba814491957 (diff)
SkColorTable locking serves no purpose anymore.
The only thing the unlock methods were doing was assert their balance. This removes the unlock methods and renames the lock methods "read". BUG=skia: Review URL: https://codereview.chromium.org/719213008
Diffstat (limited to 'src/core/SkProcSpriteBlitter.cpp')
-rw-r--r--src/core/SkProcSpriteBlitter.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/SkProcSpriteBlitter.cpp b/src/core/SkProcSpriteBlitter.cpp
index 2b535d947d..619088af6b 100644
--- a/src/core/SkProcSpriteBlitter.cpp
+++ b/src/core/SkProcSpriteBlitter.cpp
@@ -26,7 +26,7 @@ public:
const SkPMColor* ctable = NULL;
if fSource.getColorTable())
- ctable = fSource.getColorTable()->lockColors();
+ ctable = fSource.getColorTable()->readColors();
while (--height >= 0)
{
@@ -34,9 +34,6 @@ public:
dst += dstRB;
src += srcRB;
}
-
- if fSource.getColorTable())
- fSource.getColorTable()->unlockColors();
}
private: