summaryrefslogtreecommitdiffstats
path: root/gfx/skbitmap_operations_unittest.cc
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-09 03:43:27 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-09 03:43:27 +0000
commit94e840ab0edbcb8c0bfc092c72171423bad4b2f8 (patch)
tree61fc94858f31b5c9d1c35371ccadee56ae587e11 /gfx/skbitmap_operations_unittest.cc
parent7281e4cf77a6ebcd7c79db4f87629c7565ff4289 (diff)
downloadchromium_src-94e840ab0edbcb8c0bfc092c72171423bad4b2f8.zip
chromium_src-94e840ab0edbcb8c0bfc092c72171423bad4b2f8.tar.gz
chromium_src-94e840ab0edbcb8c0bfc092c72171423bad4b2f8.tar.bz2
Revert 62068 - Move implementation of linux scrollbars from webkit using new
WebThemeEngine api. Also implement chromeos specific version. BUG=chromium-os:6857 TEST=Verify that both linux and chromeos scrollbars look right. Review URL: http://codereview.chromium.org/3618014 TBR=davemoore@chromium.org Review URL: http://codereview.chromium.org/3678003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/skbitmap_operations_unittest.cc')
-rw-r--r--gfx/skbitmap_operations_unittest.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/gfx/skbitmap_operations_unittest.cc b/gfx/skbitmap_operations_unittest.cc
index bcad287..83b732a0 100644
--- a/gfx/skbitmap_operations_unittest.cc
+++ b/gfx/skbitmap_operations_unittest.cc
@@ -492,26 +492,3 @@ TEST(SkBitmapOperationsTest, UnPreMultiply) {
EXPECT_EQ(0xFF00CC88, *result.getAddr32(0, 1));
EXPECT_EQ(0x00000000u, *result.getAddr32(1, 1)); // "Division by zero".
}
-
-TEST(SkBitmapOperationsTest, CreateTransposedBtmap) {
- SkBitmap input;
- input.setConfig(SkBitmap::kARGB_8888_Config, 2, 3);
- input.allocPixels();
-
- for (int x = 0; x < input.width(); ++x) {
- for (int y = 0; y < input.height(); ++y) {
- *input.getAddr32(x, y) = x * input.width() + y;
- }
- }
-
- SkBitmap result = SkBitmapOperations::CreateTransposedBtmap(input);
- EXPECT_EQ(3, result.width());
- EXPECT_EQ(2, result.height());
-
- SkAutoLockPixels lock(result);
- for (int x = 0; x < input.width(); ++x) {
- for (int y = 0; y < input.height(); ++y) {
- EXPECT_EQ(*input.getAddr32(x, y), *result.getAddr32(y, x));
- }
- }
-}