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

Unified Diff: samplecode/SampleTextureDomain.cpp

Issue 23498028: Removes uses of unnamed namespace from samplecode. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add static Created 7 years, 3 months 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 | « samplecode/SampleChart.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleTextureDomain.cpp
diff --git a/samplecode/SampleTextureDomain.cpp b/samplecode/SampleTextureDomain.cpp
index 995937ac60cb752ec53d5e2ebef7e15ac900955d..154eaa9fd8edc753377928fe2988ce197f2d011e 100644
--- a/samplecode/SampleTextureDomain.cpp
+++ b/samplecode/SampleTextureDomain.cpp
@@ -1,18 +1,17 @@
-
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+
#include "SampleCode.h"
#include "SkBlurMask.h"
#include "SkBlurMaskFilter.h"
#include "SkCanvas.h"
#include "SkDevice.h"
-namespace {
-SkBitmap make_bitmap() {
+static SkBitmap make_bitmap() {
SkBitmap bm;
bm.setConfig(SkBitmap::kARGB_8888_Config , 5, 5);
bm.allocPixels();
@@ -26,7 +25,6 @@ SkBitmap make_bitmap() {
bm.unlockPixels();
return bm;
}
-} // unnamed namespace
class TextureDomainView : public SampleView {
SkBitmap fBM;
« no previous file with comments | « samplecode/SampleChart.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698