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

Unified Diff: content/common/cursors/webcursor_mac.mm

Issue 1508893003: Use proper namespace in skia/ext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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: content/common/cursors/webcursor_mac.mm
diff --git a/content/common/cursors/webcursor_mac.mm b/content/common/cursors/webcursor_mac.mm
index 13c8c0b9c3332a716a5d3668c4dd9102960f0b4c..38870edface20281bce8e8dd64b51d817e5446fd 100644
--- a/content/common/cursors/webcursor_mac.mm
+++ b/content/common/cursors/webcursor_mac.mm
@@ -169,7 +169,7 @@ NSCursor* CreateCustomCursor(const std::vector<char>& custom_data,
// Both the image and its representation need to have the same size for
// cursors to appear in high resolution on retina displays. Note that the
// size of a representation is not the same as pixelsWide or pixelsHigh.
- NSImage* cursor_image = gfx::SkBitmapToNSImage(bitmap);
+ NSImage* cursor_image = skia::SkBitmapToNSImage(bitmap);
[cursor_image setSize:dip_size];
[[[cursor_image representations] objectAtIndex:0] setSize:dip_size];
@@ -354,7 +354,7 @@ void WebCursor::InitFromNSCursor(NSCursor* cursor) {
cursor_info.type = WebCursorInfo::TypeCustom;
NSPoint hot_spot = [cursor hotSpot];
cursor_info.hotspot = gfx::Point(hot_spot.x, hot_spot.y);
- cursor_info.custom_image = gfx::CGImageToSkBitmap(cg_image);
+ cursor_info.custom_image = skia::CGImageToSkBitmap(cg_image);
} else {
cursor_info.type = WebCursorInfo::TypePointer;
}
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl_mac.mm ('k') | ios/chrome/browser/suggestions/image_fetcher_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698