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

Unified Diff: chrome/browser/extensions/extension_icon_manager.cc

Issue 6879013: skia::PlatformCanvas is being deprecated. Going forward we will use gfx::Canvas wherever we need ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/extensions/extension_icon_manager.cc
===================================================================
--- chrome/browser/extensions/extension_icon_manager.cc (revision 82144)
+++ chrome/browser/extensions/extension_icon_manager.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -24,9 +24,10 @@
// around the original bitmap.
static SkBitmap ApplyPadding(const SkBitmap& source,
const gfx::Insets& padding) {
- scoped_ptr<gfx::CanvasSkia> result(
- new gfx::CanvasSkia(source.width() + padding.width(),
- source.height() + padding.height(), false));
+ scoped_ptr<gfx::CanvasSkia> result(new gfx::CanvasSkia);
+ result->Init(source.width() + padding.width(),
+ source.height() + padding.height(),
+ false);
result->DrawBitmapInt(
source,
0, 0, source.width(), source.height(),
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698