Remove unnamed namespace usage from tests.
Skia code prefers static over unnamed namespace.
BUG=None
TEST=None
R=bsalomon@google.com, robertphillips@google.com
Author: tfarina@chromium.org
Review URL: https://codereview.chromium.org/26962002
git-svn-id: http://skia.googlecode.com/svn/trunk@11747 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/PremulAlphaRoundTripTest.cpp b/tests/PremulAlphaRoundTripTest.cpp
index 41a5b13..4a90c45 100644
--- a/tests/PremulAlphaRoundTripTest.cpp
+++ b/tests/PremulAlphaRoundTripTest.cpp
@@ -1,4 +1,3 @@
-
/*
* Copyright 2011 Google Inc.
*
@@ -16,10 +15,7 @@
#include "SkGpuDevice.h"
#endif
-
-namespace {
-
-void fillCanvas(SkCanvas* canvas, SkCanvas::Config8888 unpremulConfig) {
+static void fillCanvas(SkCanvas* canvas, SkCanvas::Config8888 unpremulConfig) {
SkBitmap bmp;
bmp.setConfig(SkBitmap::kARGB_8888_Config, 256, 256);
bmp.allocPixels();
@@ -40,7 +36,7 @@
SkCanvas::kRGBA_Unpremul_Config8888,
};
-void PremulAlphaRoundTripTest(skiatest::Reporter* reporter, GrContextFactory* factory) {
+static void PremulAlphaRoundTripTest(skiatest::Reporter* reporter, GrContextFactory* factory) {
SkAutoTUnref<SkBaseDevice> device;
for (int dtype = 0; dtype < 2; ++dtype) {
@@ -114,7 +110,6 @@
}
}
}
-}
#include "TestClassDef.h"
DEFINE_GPUTESTCLASS("PremulAlphaRoundTripTest", PremulAlphaRoundTripTestClass, PremulAlphaRoundTripTest)