summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-07 22:41:51 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-07 22:41:51 +0000
commitcf2ce2306a89387b1708eea172b2497e701a5bd8 (patch)
tree88330ca1ced83720a8b7a1c0ff6d5308d43555da /skia
parent285d2cfa97175a67080cd8c6dbd0ed73a7181f0f (diff)
downloadchromium_src-cf2ce2306a89387b1708eea172b2497e701a5bd8.zip
chromium_src-cf2ce2306a89387b1708eea172b2497e701a5bd8.tar.gz
chromium_src-cf2ce2306a89387b1708eea172b2497e701a5bd8.tar.bz2
Avoids the use of "namespace using-directives" in a few places.
BUG=None TEST=None Review URL: http://codereview.chromium.org/183008 Patch from tfarina. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25607 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/image_operations.cc3
-rw-r--r--skia/ext/platform_device_mac.cc13
2 files changed, 6 insertions, 10 deletions
diff --git a/skia/ext/image_operations.cc b/skia/ext/image_operations.cc
index a86f99e..afd7b51 100644
--- a/skia/ext/image_operations.cc
+++ b/skia/ext/image_operations.cc
@@ -22,9 +22,6 @@
namespace skia {
-// TODO(brettw) remove this and put this file in the skia namespace.
-using namespace gfx;
-
namespace {
// Returns the ceiling/floor as an integer.
diff --git a/skia/ext/platform_device_mac.cc b/skia/ext/platform_device_mac.cc
index d61c605..ae9228e 100644
--- a/skia/ext/platform_device_mac.cc
+++ b/skia/ext/platform_device_mac.cc
@@ -12,9 +12,6 @@
namespace skia {
-// TODO(brettw) remove this when the gfx namespaces are all removed.
-using namespace gfx;
-
namespace {
// Constrains position and size to fit within available_size.
@@ -96,7 +93,8 @@ void PlatformDevice::LoadTransformToCGContext(CGContextRef context,
// Reset matrix to identity.
CGAffineTransform orig_cg_matrix = CGContextGetCTM(context);
- CGAffineTransform orig_cg_matrix_inv = CGAffineTransformInvert(orig_cg_matrix);
+ CGAffineTransform orig_cg_matrix_inv = CGAffineTransformInvert(
+ orig_cg_matrix);
CGContextConcatCTM(context, orig_cg_matrix_inv);
// assert that we have indeed returned to the identity Matrix.
@@ -112,7 +110,8 @@ void PlatformDevice::LoadTransformToCGContext(CGContextRef context,
SkScalar ty = -matrix.getTranslateY(); // y axis is flipped.
transformed_matrix.setTranslateY(ty + (SkScalar)height);
- CGAffineTransform cg_matrix = SkMatrixToCGAffineTransform(transformed_matrix);
+ CGAffineTransform cg_matrix = gfx::SkMatrixToCGAffineTransform(
+ transformed_matrix);
// Load final transform into context.
CGContextConcatCTM(context, cg_matrix);
@@ -127,7 +126,7 @@ void PlatformDevice::LoadClippingRegionToCGContext(
// region can be empty, in which case everything will be clipped.
SkRect rect;
rect.setEmpty();
- CGContextClipToRect(context, SkRectToCGRect(rect));
+ CGContextClipToRect(context, gfx::SkRectToCGRect(rect));
} else if (region.isRect()) {
// Do the transformation.
SkRect rect;
@@ -135,7 +134,7 @@ void PlatformDevice::LoadClippingRegionToCGContext(
transformation.mapRect(&rect);
SkIRect irect;
rect.round(&irect);
- CGContextClipToRect(context, SkIRectToCGRect(irect));
+ CGContextClipToRect(context, gfx::SkIRectToCGRect(irect));
} else {
// It is complex.
SkPath path;