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

Unified Diff: skia/ext/skia_utils_mac_unittest.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
« no previous file with comments | « skia/ext/skia_utils_mac.mm ('k') | third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_utils_mac_unittest.mm
diff --git a/skia/ext/skia_utils_mac_unittest.mm b/skia/ext/skia_utils_mac_unittest.mm
index 1fdf774b4fc8c4151ec356ecad5f804dcb8f9d9b..9e4505667fabb3377141c66f1f10f4001f503862 100644
--- a/skia/ext/skia_utils_mac_unittest.mm
+++ b/skia/ext/skia_utils_mac_unittest.mm
@@ -155,7 +155,7 @@ void SkiaUtilsMacTest::RunBitLockerTest(BitLockerTest test) {
canvas.clipRect(clipRect);
}
{
- gfx::SkiaBitLocker bitLocker(&canvas);
+ skia::SkiaBitLocker bitLocker(&canvas);
CGContextRef cgContext = bitLocker.cgContext();
CGColorRef testColor = CGColorGetConstantColor(kCGColorWhite);
CGContextSetFillColorWithColor(cgContext, testColor);
@@ -183,7 +183,7 @@ void SkiaUtilsMacTest::ShapeHelper(int width, int height,
SkBitmap thing(CreateSkBitmap(width, height, isred, tfbit));
// Confirm size
- NSImage* image = gfx::SkBitmapToNSImage(thing);
+ NSImage* image = skia::SkBitmapToNSImage(thing);
EXPECT_DOUBLE_EQ([image size].width, (double)width);
EXPECT_DOUBLE_EQ([image size].height, (double)height);
@@ -212,7 +212,7 @@ TEST_F(SkiaUtilsMacTest, BitmapToNSBitmapImageRep_BlueRectangle20x30) {
int height = 30;
SkBitmap bitmap(CreateSkBitmap(width, height, false, true));
- NSBitmapImageRep* imageRep = gfx::SkBitmapToNSBitmapImageRep(bitmap);
+ NSBitmapImageRep* imageRep = skia::SkBitmapToNSBitmapImageRep(bitmap);
EXPECT_DOUBLE_EQ(width, [imageRep size].width);
EXPECT_DOUBLE_EQ(height, [imageRep size].height);
@@ -228,7 +228,7 @@ TEST_F(SkiaUtilsMacTest, NSImageRepToSkBitmap) {
NSBitmapImageRep* imageRep = base::mac::ObjCCastStrict<NSBitmapImageRep>(
[[image representations] lastObject]);
NSColorSpace* colorSpace = [NSColorSpace genericRGBColorSpace];
- SkBitmap bitmap(gfx::NSImageRepToSkBitmapWithColorSpace(
+ SkBitmap bitmap(skia::NSImageRepToSkBitmapWithColorSpace(
imageRep, [image size], false, [colorSpace CGColorSpace]));
TestSkBitmap(bitmap);
}
« no previous file with comments | « skia/ext/skia_utils_mac.mm ('k') | third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698