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

Unified Diff: chrome/browser/icon_loader_linux.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/icon_loader_linux.cc
===================================================================
--- chrome/browser/icon_loader_linux.cc (revision 27832)
+++ chrome/browser/icon_loader_linux.cc (working copy)
@@ -8,8 +8,8 @@
#include <gio/gio.h>
#include <gtk/gtk.h>
+#include "app/gfx/codec/png_codec.h"
#include "base/file_util.h"
-#include "base/gfx/png_decoder.h"
#include "base/logging.h"
#include "base/linux_util.h"
#include "base/message_loop.h"
@@ -65,8 +65,8 @@
pixel_vector.resize(height * stride);
memcpy(const_cast<unsigned char*>(pixel_vector.data()), BGRA_pixels,
height * stride);
- bitmap_ = PNGDecoder::CreateSkBitmapFromBGRAFormat(pixel_vector,
- width, height);
+ bitmap_ = gfx::PNGCodec::CreateSkBitmapFromBGRAFormat(pixel_vector,
+ width, height);
free(BGRA_pixels);
}
} else {

Powered by Google App Engine
This is Rietveld 408576698