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

Unified Diff: chrome/browser/ui/webui/web_ui_util.cc

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
« no previous file with comments | « chrome/browser/ui/webui/web_ui_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/web_ui_util.cc
diff --git a/chrome/browser/ui/webui/web_ui_util.cc b/chrome/browser/ui/webui/web_ui_util.cc
index 46d282442f42f54b72767cf3380296e4518dce9f..160ba0affe917651847c838cf8d3687689d815d8 100644
--- a/chrome/browser/ui/webui/web_ui_util.cc
+++ b/chrome/browser/ui/webui/web_ui_util.cc
@@ -14,12 +14,13 @@
#include "ui/base/layout.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/codec/png_codec.h"
+#include "ui/gfx/image/image_skia.h"
namespace web_ui_util {
-std::string GetImageDataUrl(const SkBitmap& bitmap) {
+std::string GetImageDataUrl(const gfx::ImageSkia& image) {
std::vector<unsigned char> output;
- gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, &output);
+ gfx::PNGCodec::EncodeBGRASkBitmap(*image.bitmap(), false, &output);
std::string str_url;
str_url.insert(str_url.end(), output.begin(), output.end());
« no previous file with comments | « chrome/browser/ui/webui/web_ui_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698