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

Issue 149173: A null CGImageRef should be treated as a "null" SkBitmap,... (Closed)

Created:
11 years, 5 months ago by darin (slow to review)
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews_googlegroups.com, John Grabowski
Visibility:
Public.

Description

A null CGImageRef should be treated as a "null" SkBitmap, one in which isNull() returns true. This assertion was being tripped as a result of some recent changes I made to expose a CGImageRef as the basis or a WebKit::WebImage. I think it makes sense to put this null check in CGImageToSkBitmap instead of at each callsite. TEST=covered by mac ui tests BUG=none TBR=mark Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19900

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M skia/ext/skia_utils_mac.mm View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 1 (0 generated)
darin (slow to review)
11 years, 5 months ago (2009-07-03 06:39:40 UTC) #1

          

Powered by Google App Engine
This is Rietveld 408576698