| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import <AppKit/AppKit.h> | 5 #import <AppKit/AppKit.h> |
| 6 | 6 |
| 7 #include "skia/ext/skia_utils_mac.h" | 7 #include "skia/ext/skia_utils_mac.h" |
| 8 #include "third_party/skia/include/core/SkBitmap.h" | 8 #include "third_party/skia/include/core/SkBitmap.h" |
| 9 | 9 |
| 10 namespace ui { | |
| 11 namespace gfx { | 10 namespace gfx { |
| 12 namespace internal { | 11 namespace internal { |
| 13 | 12 |
| 14 const SkBitmap* NSImageToSkBitmap(NSImage* image) { | 13 const SkBitmap* NSImageToSkBitmap(NSImage* image) { |
| 15 return new SkBitmap(::gfx::NSImageToSkBitmap(image, [image size], false)); | 14 return new SkBitmap(::gfx::NSImageToSkBitmap(image, [image size], false)); |
| 16 } | 15 } |
| 17 | 16 |
| 18 } // namespace internal | 17 } // namespace internal |
| 19 } // namespace gfx | 18 } // namespace gfx |
| 20 } // namespace ui | |
| OLD | NEW |