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

Unified Diff: chrome/browser/ntp_background_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
Index: chrome/browser/ntp_background_util.cc
diff --git a/chrome/browser/ntp_background_util.cc b/chrome/browser/ntp_background_util.cc
index 297a0f084bab3634f36f684e78baed27e11571d3..ddd975eaca7895c2d5f06a9bf445ebf57290cff2 100644
--- a/chrome/browser/ntp_background_util.cc
+++ b/chrome/browser/ntp_background_util.cc
@@ -9,16 +9,16 @@
#include "base/logging.h"
#include "chrome/browser/themes/theme_service.h"
#include "grit/theme_resources.h"
-#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/canvas.h"
+#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/skia_util.h"
namespace {
void PaintThemeBackground(
- gfx::Canvas* canvas, SkBitmap* ntp_background, int tiling, int alignment,
- const gfx::Rect& area, int tab_contents_height) {
+ gfx::Canvas* canvas, gfx::ImageSkia* ntp_background, int tiling,
+ int alignment, const gfx::Rect& area, int tab_contents_height) {
int x_pos = 0;
int y_pos = 0;
int width = area.width() + ntp_background->width();
@@ -78,7 +78,8 @@ void NtpBackgroundUtil::PaintBackgroundDetachedMode(ui::ThemeProvider* tp,
int alignment;
if (tp->GetDisplayProperty(ThemeService::NTP_BACKGROUND_ALIGNMENT,
&alignment)) {
- SkBitmap* ntp_background = tp->GetBitmapNamed(IDR_THEME_NTP_BACKGROUND);
+ gfx::ImageSkia* ntp_background =
+ tp->GetImageSkiaNamed(IDR_THEME_NTP_BACKGROUND);
PaintThemeBackground(
canvas, ntp_background, tiling, alignment, area, tab_contents_height);
« no previous file with comments | « chrome/browser/media/media_stream_capture_indicator.cc ('k') | chrome/browser/speech/speech_recognition_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698