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

Unified Diff: chrome/browser/views/options/general_page_view.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/views/options/general_page_view.cc
===================================================================
--- chrome/browser/views/options/general_page_view.cc (revision 27832)
+++ chrome/browser/views/options/general_page_view.cc (working copy)
@@ -5,9 +5,9 @@
#include "chrome/browser/views/options/general_page_view.h"
#include "app/combobox_model.h"
+#include "app/gfx/codec/png_codec.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
-#include "base/gfx/png_decoder.h"
#include "base/message_loop.h"
#include "base/string_util.h"
#include "chrome/browser/browser.h"
@@ -239,9 +239,10 @@
if (know_fav_icon && image_data.get() && !image_data->data.empty()) {
int width, height;
std::vector<unsigned char> decoded_data;
- if (PNGDecoder::Decode(&image_data->data.front(), image_data->data.size(),
- PNGDecoder::FORMAT_BGRA, &decoded_data, &width,
- &height)) {
+ if (gfx::PNGCodec::Decode(&image_data->data.front(),
+ image_data->data.size(),
+ gfx::PNGCodec::FORMAT_BGRA, &decoded_data,
+ &width, &height)) {
entry->icon.setConfig(SkBitmap::kARGB_8888_Config, width, height);
entry->icon.allocPixels();
memcpy(entry->icon.getPixels(), &decoded_data.front(),

Powered by Google App Engine
This is Rietveld 408576698