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

Unified Diff: src/core/SkBitmap.cpp

Issue 24267014: low hanging calloc fruit (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months 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 | « no previous file | src/core/SkTDynamicHash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmap.cpp
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
index d3bbecd7066dfe4d826d5bd778e635c1e5215910..dcc7b2e3035985e29f958e399879b18728871ec7 100644
--- a/src/core/SkBitmap.cpp
+++ b/src/core/SkBitmap.cpp
@@ -1632,8 +1632,7 @@ void SkBitmap::unflatten(SkFlattenableReadBuffer& buffer) {
SkBitmap::RLEPixels::RLEPixels(int width, int height) {
scroggo 2013/10/09 18:56:11 Does anyone use RLEPixels? Wasn't it for a config
mtklein 2013/10/09 19:07:18 No idea. Got to admit I did this change entirely
fHeight = height;
- fYPtrs = (uint8_t**)sk_malloc_throw(height * sizeof(uint8_t*));
- sk_bzero(fYPtrs, height * sizeof(uint8_t*));
+ fYPtrs = (uint8_t**)sk_calloc_throw(height * sizeof(uint8_t*));
}
SkBitmap::RLEPixels::~RLEPixels() {
« no previous file with comments | « no previous file | src/core/SkTDynamicHash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698