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

Unified Diff: chrome/browser/ui/cocoa/table_row_nsimage_cache.mm

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/table_row_nsimage_cache.mm
diff --git a/chrome/browser/ui/cocoa/table_row_nsimage_cache.mm b/chrome/browser/ui/cocoa/table_row_nsimage_cache.mm
index ff36a504288ebbf7a8ec69a43094bf629b213790..4a97811b033b21588c5b7f6f2f4f9d6a2974b28c 100644
--- a/chrome/browser/ui/cocoa/table_row_nsimage_cache.mm
+++ b/chrome/browser/ui/cocoa/table_row_nsimage_cache.mm
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,7 +6,7 @@
#include "base/logging.h"
#include "skia/ext/skia_utils_mac.h"
-#include "third_party/skia/include/core/SkBitmap.h"
+#include "ui/gfx/image/image_skia.h"
TableRowNSImageCache::TableRowNSImageCache(Table* model)
: model_(model),
@@ -66,7 +66,7 @@ NSImage* TableRowNSImageCache::GetImageForRow(int row) {
DCHECK_LT(row, static_cast<int>([icon_images_ count]));
NSImage* image = static_cast<NSImage*>([icon_images_ pointerAtIndex:row]);
if (!image) {
- const SkBitmap bitmap_icon =
+ const gfx::ImageSkia bitmap_icon =
model_->GetIcon(row);
// This means GetIcon() will get called until it returns a non-empty bitmap.
// Empty bitmaps are intentionally not cached.
« no previous file with comments | « chrome/browser/ui/cocoa/table_row_nsimage_cache.h ('k') | chrome/browser/ui/cocoa/table_row_nsimage_cache_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698