diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-19 14:30:40 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-19 14:30:40 +0000 |
commit | 125b6200bbf1877afaa70c35f62b90232648fe7c (patch) | |
tree | c477624fc91ca064979175dfbd66bed75624754b /ui/gfx/skbitmap_operations.cc | |
parent | 1b99136e27d9051bbc997a3554c0510dc8f8d7ce (diff) | |
download | chromium_src-125b6200bbf1877afaa70c35f62b90232648fe7c.zip chromium_src-125b6200bbf1877afaa70c35f62b90232648fe7c.tar.gz chromium_src-125b6200bbf1877afaa70c35f62b90232648fe7c.tar.bz2 |
ui/gfx: Do not use the deprecated SkBitmap::getConfig() function.
Instead this patch uses SkBitmap::config() which is the preferred way.
R=asvitkine@chromium.org
TBR=brettw@chromium.org,thestig@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9720040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/skbitmap_operations.cc')
-rw-r--r-- | ui/gfx/skbitmap_operations.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gfx/skbitmap_operations.cc b/ui/gfx/skbitmap_operations.cc index fb0572e..269f10b 100644 --- a/ui/gfx/skbitmap_operations.cc +++ b/ui/gfx/skbitmap_operations.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -574,7 +574,7 @@ SkBitmap SkBitmapOperations::CreateHSLShiftedBitmap( SkBitmap SkBitmapOperations::CreateTiledBitmap(const SkBitmap& source, int src_x, int src_y, int dst_w, int dst_h) { - DCHECK(source.getConfig() == SkBitmap::kARGB_8888_Config); + DCHECK(source.config() == SkBitmap::kARGB_8888_Config); SkBitmap cropped; cropped.setConfig(SkBitmap::kARGB_8888_Config, dst_w, dst_h, 0); |