summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 05:56:00 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 05:56:00 +0000
commit673d1ba9935df079da641da73b4319f33d023e3e (patch)
tree4f49e97b867dd51d2af46905685cfac12aced55c
parent8cbceee8bbd58049bdb2e482878ada41f91cef32 (diff)
downloadchromium_src-673d1ba9935df079da641da73b4319f33d023e3e.zip
chromium_src-673d1ba9935df079da641da73b4319f33d023e3e.tar.gz
chromium_src-673d1ba9935df079da641da73b4319f33d023e3e.tar.bz2
Fixes spelling mistake CreateTransposedBtmap -> CreateTransposedBitmap
BUG=None TEST=Compiles TBR=sky Review URL: https://chromiumcodereview.appspot.com/10558021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142674 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--ui/gfx/skbitmap_operations.cc3
-rw-r--r--ui/gfx/skbitmap_operations.h2
-rw-r--r--ui/gfx/skbitmap_operations_unittest.cc6
3 files changed, 5 insertions, 6 deletions
diff --git a/ui/gfx/skbitmap_operations.cc b/ui/gfx/skbitmap_operations.cc
index 2cc053f..9f7262d 100644
--- a/ui/gfx/skbitmap_operations.cc
+++ b/ui/gfx/skbitmap_operations.cc
@@ -721,7 +721,7 @@ SkBitmap SkBitmapOperations::UnPreMultiply(const SkBitmap& bitmap) {
}
// static
-SkBitmap SkBitmapOperations::CreateTransposedBtmap(const SkBitmap& image) {
+SkBitmap SkBitmapOperations::CreateTransposedBitmap(const SkBitmap& image) {
DCHECK(image.config() == SkBitmap::kARGB_8888_Config);
SkBitmap transposed;
@@ -806,4 +806,3 @@ SkBitmap SkBitmapOperations::CreateDropShadow(
canvas.drawBitmap(bitmap, SkIntToScalar(0), SkIntToScalar(0));
return image_with_shadow;
}
-
diff --git a/ui/gfx/skbitmap_operations.h b/ui/gfx/skbitmap_operations.h
index da05f66..7d221d8 100644
--- a/ui/gfx/skbitmap_operations.h
+++ b/ui/gfx/skbitmap_operations.h
@@ -97,7 +97,7 @@ class UI_EXPORT SkBitmapOperations {
static SkBitmap UnPreMultiply(const SkBitmap& bitmap);
// Transpose the pixels in |bitmap| by swapping x and y.
- static SkBitmap CreateTransposedBtmap(const SkBitmap& bitmap);
+ static SkBitmap CreateTransposedBitmap(const SkBitmap& bitmap);
// Create a bitmap by combining alpha channel of |bitmap| and color |c|.
// The image must use the kARGB_8888_Config config.
diff --git a/ui/gfx/skbitmap_operations_unittest.cc b/ui/gfx/skbitmap_operations_unittest.cc
index 3e0c23c..f5c89f8 100644
--- a/ui/gfx/skbitmap_operations_unittest.cc
+++ b/ui/gfx/skbitmap_operations_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -493,7 +493,7 @@ TEST(SkBitmapOperationsTest, UnPreMultiply) {
EXPECT_EQ(0x00000000u, *result.getAddr32(1, 1)); // "Division by zero".
}
-TEST(SkBitmapOperationsTest, CreateTransposedBtmap) {
+TEST(SkBitmapOperationsTest, CreateTransposedBitmap) {
SkBitmap input;
input.setConfig(SkBitmap::kARGB_8888_Config, 2, 3);
input.allocPixels();
@@ -504,7 +504,7 @@ TEST(SkBitmapOperationsTest, CreateTransposedBtmap) {
}
}
- SkBitmap result = SkBitmapOperations::CreateTransposedBtmap(input);
+ SkBitmap result = SkBitmapOperations::CreateTransposedBitmap(input);
EXPECT_EQ(3, result.width());
EXPECT_EQ(2, result.height());