| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include <Cocoa/Cocoa.h> | |
| 6 #include "third_party/skia/include/core/SkBitmap.h" | |
| 7 | |
| 8 // Generic Cocoa utilities which fit nowhere else. | |
| 9 | |
| 10 namespace CocoaUtils { | |
| 11 | |
| 12 // Given an SkBitmap, return an autoreleased NSImage. This function | |
| 13 // was not placed in | |
| 14 // third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp since that | |
| 15 // would make Skia dependent on Cocoa. | |
| 16 NSImage* SkBitmapToNSImage(const SkBitmap& icon); | |
| 17 | |
| 18 | |
| 19 }; // namespace CocoaUtils | |
| OLD | NEW |