summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_tabs_module.cc
diff options
context:
space:
mode:
authorklobag@chromium.org <klobag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 21:43:15 +0000
committerklobag@chromium.org <klobag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 21:43:15 +0000
commitbfced1b980164f77f1357feb9dd6b52d49c8f830 (patch)
treeacdc95b5e1e875de537baa0ed569aabe6d16ff5c /chrome/browser/extensions/extension_tabs_module.cc
parente46f40a1c66396bb8718844de91db6beb18dab51 (diff)
downloadchromium_src-bfced1b980164f77f1357feb9dd6b52d49c8f830.zip
chromium_src-bfced1b980164f77f1357feb9dd6b52d49c8f830.tar.gz
chromium_src-bfced1b980164f77f1357feb9dd6b52d49c8f830.tar.bz2
Change to use the new FORMAT_SkBitmap when encoding SkBitmap to jpeg.
Review URL: http://codereview.chromium.org/3757008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63270 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_tabs_module.cc')
-rw-r--r--chrome/browser/extensions/extension_tabs_module.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_tabs_module.cc b/chrome/browser/extensions/extension_tabs_module.cc
index 7c5ac37..8da37de 100644
--- a/chrome/browser/extensions/extension_tabs_module.cc
+++ b/chrome/browser/extensions/extension_tabs_module.cc
@@ -983,7 +983,7 @@ void CaptureVisibleTabFunction::SendResultFromBitmap(
case FORMAT_JPEG:
encoded = gfx::JPEGCodec::Encode(
reinterpret_cast<unsigned char*>(screen_capture.getAddr32(0, 0)),
- gfx::JPEGCodec::FORMAT_BGRA,
+ gfx::JPEGCodec::FORMAT_SkBitmap,
screen_capture.width(),
screen_capture.height(),
static_cast<int>(screen_capture.rowBytes()),