From 025a16feb0c23574585de20a7bc6524a9a6a1e06 Mon Sep 17 00:00:00 2001 From: "rahulk@google.com" Date: Thu, 21 Aug 2008 18:18:30 +0000 Subject: Revert 1158 as it is breaking ui_tests git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1165 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/resource_bundle.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/common/resource_bundle.cc') diff --git a/chrome/common/resource_bundle.cc b/chrome/common/resource_bundle.cc index 09dbf19..3beccb4 100644 --- a/chrome/common/resource_bundle.cc +++ b/chrome/common/resource_bundle.cc @@ -195,8 +195,13 @@ SkBitmap* ResourceBundle::GetBitmapNamed(int resource_id) { // Handle the case where loading the bitmap failed. if (!bitmap) { LOG(WARNING) << "Unable to load bitmap with id " << resource_id; + NOTREACHED(); // Want to assert in debug mode. if (!empty_bitmap) { + // The placeholder bitmap is bright red so people notice the problem. empty_bitmap = new SkBitmap(); + empty_bitmap->setConfig(SkBitmap::kARGB_8888_Config, 32, 32); + empty_bitmap->allocPixels(); + empty_bitmap->eraseARGB(255, 255, 0, 0); } return empty_bitmap; } -- cgit v1.1