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

Issue 1430593007: For non-opaque SkBitmapDevices, replace malloc-then-zero with calloc. (Closed)

Created:
5 years, 1 month ago by mtklein_C
Modified:
5 years, 1 month ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

For non-opaque SkBitmapDevices, replace malloc-then-zero with calloc. There seem about a zillion possible ways to slice this. This adds and uses SkMallocPixelRef::ZeroedPRFactory. I'm not married to it. This appears to clear up a hot spot in the benchmark referenced in this bug: BUG=516426 I'm not confident enough on Windows to declare that definitively yet. It probably helps all other non-opaque layers too. Possibly significantly. So I don't forget, I profiled this: out/Release/performance_browser_tests.exe --gtest_filter=TabCapturePerformanceTest.Performance/2 --single-process No diffs: https://gold.skia.org/search2?issue=1430593007&unt=true&query=source_type%3Dgm&master=false TBR=reed@google.com Committed: https://skia.googlesource.com/skia/+/cd4954152490c7492284a7914571531ba8c75b4a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -10 lines) Patch
M include/core/SkMallocPixelRef.h View 3 chunks +18 lines, -3 lines 0 comments Download
M src/core/SkBitmapDevice.cpp View 2 chunks +10 lines, -3 lines 0 comments Download
M src/core/SkMallocPixelRef.cpp View 4 chunks +23 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1430593007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1430593007/1
5 years, 1 month ago (2015-11-04 20:13:21 UTC) #3
mtklein_C
5 years, 1 month ago (2015-11-04 20:23:51 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-04 20:24:15 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1430593007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1430593007/1
5 years, 1 month ago (2015-11-05 16:33:13 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-05 16:33:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1430593007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1430593007/1
5 years, 1 month ago (2015-11-05 17:45:46 UTC) #15
commit-bot: I haz the power
5 years, 1 month ago (2015-11-05 17:46:27 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/cd4954152490c7492284a7914571531ba8c75b4a

Powered by Google App Engine
This is Rietveld 408576698