Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: src/core/SkProcSpriteBlitter.cpp

Issue 719213008: SkColorTable locking serves no purpose anymore. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: oops Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkConfig8888.cpp ('k') | src/core/SkSpriteBlitter_RGB16.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkProcSpriteBlitter.cpp
diff --git a/src/core/SkProcSpriteBlitter.cpp b/src/core/SkProcSpriteBlitter.cpp
index 2b535d947db4343d287486ca82fc45b0f95e1463..619088af6b588ce6b3fbb67294763067fcbec34c 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:
« no previous file with comments | « src/core/SkConfig8888.cpp ('k') | src/core/SkSpriteBlitter_RGB16.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698