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

Unified Diff: chrome/browser/extensions/extension_tabs_module.cc

Issue 243076: Move the JPEG and PNG codecs from base/gfx to app/gfx/codec. Move the classes... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
Index: chrome/browser/extensions/extension_tabs_module.cc
===================================================================
--- chrome/browser/extensions/extension_tabs_module.cc (revision 27832)
+++ chrome/browser/extensions/extension_tabs_module.cc (working copy)
@@ -4,7 +4,7 @@
#include "chrome/browser/extensions/extension_tabs_module.h"
-#include "base/gfx/jpeg_codec.h"
+#include "app/gfx/codec/jpeg_codec.h"
#include "base/string_util.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_list.h"
@@ -785,9 +785,9 @@
#endif
scoped_refptr<RefCountedBytes> jpeg_data(new RefCountedBytes);
SkAutoLockPixels screen_capture_lock(screen_capture);
- bool encoded = JPEGCodec::Encode(
+ bool encoded = gfx::JPEGCodec::Encode(
reinterpret_cast<unsigned char*>(screen_capture.getAddr32(0, 0)),
- JPEGCodec::FORMAT_BGRA, screen_capture.width(),
+ gfx::JPEGCodec::FORMAT_BGRA, screen_capture.width(),
screen_capture.height(),
static_cast<int>(screen_capture.rowBytes()), 90,
&jpeg_data->data);

Powered by Google App Engine
This is Rietveld 408576698