summaryrefslogtreecommitdiffstats
path: root/gfx/skbitmap_operations.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.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.cc')
-rw-r--r--gfx/skbitmap_operations.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/gfx/skbitmap_operations.cc b/gfx/skbitmap_operations.cc
index 6899553..b8cec11 100644
--- a/gfx/skbitmap_operations.cc
+++ b/gfx/skbitmap_operations.cc
@@ -695,27 +695,3 @@ SkBitmap SkBitmapOperations::UnPreMultiply(const SkBitmap& bitmap) {
opaque_bitmap.setIsOpaque(true);
return opaque_bitmap;
}
-
-// static
-SkBitmap SkBitmapOperations::CreateTransposedBtmap(const SkBitmap& image) {
- DCHECK(image.config() == SkBitmap::kARGB_8888_Config);
-
- SkAutoLockPixels lock_image(image);
-
- SkBitmap transposed;
- transposed.setConfig(
- SkBitmap::kARGB_8888_Config, image.height(), image.width(), 0);
- transposed.allocPixels();
- transposed.eraseARGB(0, 0, 0, 0);
-
- for (int y = 0; y < image.height(); ++y) {
- uint32* image_row = image.getAddr32(0, y);
- for (int x = 0; x < image.width(); ++x) {
- uint32* dst = transposed.getAddr32(y, x);
- *dst = image_row[x];
- }
- }
-
- return transposed;
-}
-