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

Issue 7065013: Makes Background only create a brush when needed. This avoids (Closed)

Created:
9 years, 7 months ago by sky
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Makes Background only create a brush when needed. This avoids irrelevant DCHECKs if you use a color with alpha. BUG=none TEST=none R=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86454

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M views/background.h View 1 chunk +2 lines, -2 lines 0 comments Download
M views/background.cc View 1 chunk +8 lines, -1 line 2 comments Download

Messages

Total messages: 3 (0 generated)
sky
9 years, 7 months ago (2011-05-24 00:10:26 UTC) #1
Ben Goodger (Google)
LGTM http://codereview.chromium.org/7065013/diff/1/views/background.cc File views/background.cc (right): http://codereview.chromium.org/7065013/diff/1/views/background.cc#newcode77 views/background.cc:77: DeleteObject(native_control_brush_); Should this also set native_control_brush_ back to ...
9 years, 7 months ago (2011-05-24 02:09:48 UTC) #2
sky
9 years, 7 months ago (2011-05-24 18:13:50 UTC) #3
http://codereview.chromium.org/7065013/diff/1/views/background.cc
File views/background.cc (right):

http://codereview.chromium.org/7065013/diff/1/views/background.cc#newcode77
views/background.cc:77: DeleteObject(native_control_brush_);
On 2011/05/24 02:09:48, Ben Goodger wrote:
> Should this also set native_control_brush_ back to NULL so it gets
regenerated?

Definitely. Fixed.

Powered by Google App Engine
This is Rietveld 408576698