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

Issue 10854074: Fixes memory alignment issues due to browser_theme_pack changes (Closed)

Created:
8 years, 4 months ago by pkotwicz
Modified:
8 years, 4 months ago
Reviewers:
benrg, sky
CC:
chromium-reviews, zel
Visibility:
Public.

Description

Fixes memory alignment issues due to browser_theme_pack changes. Bug=141522 Test=No more Arm crash reports Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151090

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changes as requested #

Patch Set 3 : Changes as requested by benrg and sky #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -18 lines) Patch
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 4 5 2 chunks +14 lines, -18 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
pkotwicz
8 years, 4 months ago (2012-08-09 19:22:15 UTC) #1
sky
http://codereview.chromium.org/10854074/diff/1/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): http://codereview.chromium.org/10854074/diff/1/chrome/browser/themes/browser_theme_pack.cc#newcode195 chrome/browser/themes/browser_theme_pack.cc:195: float* scales = new float[scales_size]; scoped_array here and 211 ...
8 years, 4 months ago (2012-08-09 19:49:16 UTC) #2
benrg
Random drive-by, sorry. http://codereview.chromium.org/10854074/diff/1/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): http://codereview.chromium.org/10854074/diff/1/chrome/browser/themes/browser_theme_pack.cc#newcode194 chrome/browser/themes/browser_theme_pack.cc:194: input.size() * sizeof(char) / sizeof(float)); Either ...
8 years, 4 months ago (2012-08-09 21:45:10 UTC) #3
pkotwicz
Changes as requested by sky and benrg
8 years, 4 months ago (2012-08-10 00:42:30 UTC) #4
sky
LGTM http://codereview.chromium.org/10854074/diff/6002/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): http://codereview.chromium.org/10854074/diff/6002/chrome/browser/themes/browser_theme_pack.cc#newcode197 chrome/browser/themes/browser_theme_pack.cc:197: if (scales_size != expected.size()) Move this to 194 ...
8 years, 4 months ago (2012-08-10 16:08:17 UTC) #5
sky
Also, make sure this actually solves the problem.
8 years, 4 months ago (2012-08-10 16:08:28 UTC) #6
pkotwicz
I tested this patch on an ARM device and it does solve the problem.
8 years, 4 months ago (2012-08-10 17:00:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10854074/6002
8 years, 4 months ago (2012-08-10 17:00:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10854074/7003
8 years, 4 months ago (2012-08-10 17:07:16 UTC) #9
commit-bot: I haz the power
8 years, 4 months ago (2012-08-10 18:22:58 UTC) #10
Change committed as 151090

Powered by Google App Engine
This is Rietveld 408576698