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

Unified Diff: chrome/browser/webdata/web_database.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/webdata/web_database.cc
===================================================================
--- chrome/browser/webdata/web_database.cc (revision 27832)
+++ chrome/browser/webdata/web_database.cc (working copy)
@@ -8,11 +8,10 @@
#include <limits>
#include <vector>
+#include "app/gfx/codec/png_codec.h"
#include "app/l10n_util.h"
#include "app/sql/statement.h"
#include "app/sql/transaction.h"
-#include "base/gfx/png_decoder.h"
-#include "base/gfx/png_encoder.h"
#include "base/string_util.h"
#include "base/time.h"
#include "chrome/browser/history/history_database.h"
@@ -187,7 +186,7 @@
return false;
std::vector<unsigned char> image_data;
- PNGEncoder::EncodeBGRASkBitmap(image, false, &image_data);
+ gfx::PNGCodec::EncodeBGRASkBitmap(image, false, &image_data);
s.BindString(0, history::HistoryDatabase::GURLToDatabaseURL(url));
s.BindInt(1, image.width());
@@ -212,7 +211,7 @@
if (col_bytes > 0) {
image_data.resize(col_bytes);
memcpy(&image_data[0], s.ColumnBlob(0), col_bytes);
- if (PNGDecoder::Decode(&image_data, &image)) {
+ if (gfx::PNGCodec::Decode(&image_data, &image)) {
images->push_back(image);
} else {
// Should only have valid image data in the db.

Powered by Google App Engine
This is Rietveld 408576698