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

Unified Diff: components/suggestions/image_encoder_ios.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: components/suggestions/image_encoder_ios.mm
diff --git a/components/suggestions/image_encoder_ios.mm b/components/suggestions/image_encoder_ios.mm
index ffac9a2a4599d73570551d1914b1aa56823bc120..79d639cb5dde6f19c605d0e395dc15bc2f32f297 100644
--- a/components/suggestions/image_encoder_ios.mm
+++ b/components/suggestions/image_encoder_ios.mm
@@ -14,7 +14,8 @@ namespace suggestions {
SkBitmap* DecodeJPEGToSkBitmap(const void* encoded_data, size_t size) {
NSData* data = [NSData dataWithBytes:encoded_data length:size];
UIImage* image = [UIImage imageWithData:data scale:1.0];
- return new SkBitmap(gfx::CGImageToSkBitmap(image.CGImage, [image size], YES));
+ return new SkBitmap(skia::CGImageToSkBitmap(image.CGImage, [image size],
+ YES));
}
bool EncodeSkBitmapToJPEG(const SkBitmap& bitmap,
@@ -22,7 +23,7 @@ bool EncodeSkBitmapToJPEG(const SkBitmap& bitmap,
base::ScopedCFTypeRef<CGColorSpaceRef> color_space(
CGColorSpaceCreateDeviceRGB());
UIImage* image =
- gfx::SkBitmapToUIImageWithColorSpace(bitmap, 1 /* scale */, color_space);
+ skia::SkBitmapToUIImageWithColorSpace(bitmap, 1 /* scale */, color_space);
NSData* data = UIImageJPEGRepresentation(image, 1.0);
const char* bytes = reinterpret_cast<const char*>([data bytes]);
dest->assign(bytes, bytes + [data length]);
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | content/child/npapi/webplugin_delegate_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698