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

Unified Diff: chrome/browser/fav_icon_helper.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/fav_icon_helper.cc
===================================================================
--- chrome/browser/fav_icon_helper.cc (revision 27832)
+++ chrome/browser/fav_icon_helper.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,9 +6,8 @@
#include "build/build_config.h"
+#include "app/gfx/codec/png_codec.h"
#include "app/gfx/favicon_size.h"
-#include "base/gfx/png_decoder.h"
-#include "base/gfx/png_encoder.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/renderer_host/render_view_host.h"
#include "chrome/browser/tab_contents/navigation_controller.h"
@@ -65,7 +64,7 @@
if (GetFaviconService() && !profile()->IsOffTheRecord()) {
std::vector<unsigned char> image_data;
- PNGEncoder::EncodeBGRASkBitmap(sized_image, false, &image_data);
+ gfx::PNGCodec::EncodeBGRASkBitmap(sized_image, false, &image_data);
GetFaviconService()->SetFavicon(i->second.url, i->second.fav_icon_url,
image_data);
}
@@ -88,7 +87,7 @@
void FavIconHelper::UpdateFavIcon(NavigationEntry* entry,
const std::vector<unsigned char>& data) {
SkBitmap image;
- PNGDecoder::Decode(&data, &image);
+ gfx::PNGCodec::Decode(&data, &image);
UpdateFavIcon(entry, image);
}

Powered by Google App Engine
This is Rietveld 408576698