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

Unified Diff: skia/ext/bitmap_platform_device_mac.cc

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: skia/ext/bitmap_platform_device_mac.cc
diff --git a/skia/ext/bitmap_platform_device_mac.cc b/skia/ext/bitmap_platform_device_mac.cc
index cc4f3ef8e8932a31ba9255231594ced80b6cf596..45c5466b09bfc283da9383a03be02cadce79ff0d 100644
--- a/skia/ext/bitmap_platform_device_mac.cc
+++ b/skia/ext/bitmap_platform_device_mac.cc
@@ -99,7 +99,7 @@ static void LoadTransformToCGContext(CGContextRef context,
transformed_matrix.setTranslateY(ty + (SkScalar)height);
CGAffineTransform cg_matrix =
- gfx::SkMatrixToCGAffineTransform(transformed_matrix);
+ skia::SkMatrixToCGAffineTransform(transformed_matrix);
// Load final transform into context.
CGContextConcatCTM(context, cg_matrix);
@@ -113,7 +113,7 @@ static void LoadClippingRegionToCGContext(CGContextRef context,
// region can be empty, in which case everything will be clipped.
SkRect rect;
rect.setEmpty();
- CGContextClipToRect(context, gfx::SkRectToCGRect(rect));
+ CGContextClipToRect(context, skia::SkRectToCGRect(rect));
} else if (region.isRect()) {
// CoreGraphics applies the current transform to clip rects, which is
// unwanted. Inverse-transform the rect before sending it to CG. This only
@@ -129,7 +129,7 @@ static void LoadClippingRegionToCGContext(CGContextRef context,
t.mapRect(&rect);
SkIRect irect;
rect.round(&irect);
- CGContextClipToRect(context, gfx::SkIRectToCGRect(irect));
+ CGContextClipToRect(context, skia::SkIRectToCGRect(irect));
} else {
// It is complex.
SkPath path;
« no previous file with comments | « ios/chrome/browser/suggestions/image_fetcher_impl.mm ('k') | skia/ext/bitmap_platform_device_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698