summaryrefslogtreecommitdiffstats
path: root/views/controls
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-23 20:54:48 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-23 20:54:48 +0000
commit96c2e8ec18feb0766c22acfb481a59f0983c572a (patch)
tree3b1d3f8312d8bdb9bc789bf9859298368021b681 /views/controls
parent9520ab113d86539f1deba7d107776f0b8ee72a12 (diff)
downloadchromium_src-96c2e8ec18feb0766c22acfb481a59f0983c572a.zip
chromium_src-96c2e8ec18feb0766c22acfb481a59f0983c572a.tar.gz
chromium_src-96c2e8ec18feb0766c22acfb481a59f0983c572a.tar.bz2
Reverting 26975.
Review URL: http://codereview.chromium.org/222011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26979 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls')
-rw-r--r--views/controls/button/image_button.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/views/controls/button/image_button.cc b/views/controls/button/image_button.cc
index adb4bc9..50a8f59 100644
--- a/views/controls/button/image_button.cc
+++ b/views/controls/button/image_button.cc
@@ -1,12 +1,12 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2006-2008 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.
#include "views/controls/button/image_button.h"
#include "app/gfx/canvas.h"
-#include "app/gfx/skbitmap_operations.h"
#include "app/throb_animation.h"
+#include "skia/ext/image_operations.h"
namespace views {
@@ -41,8 +41,9 @@ void ImageButton::SetBackground(SkColor color,
return;
}
- background_image_ =
- SkBitmapOperations::CreateButtonBackground(color, *image, *mask);
+ background_image_ = skia::ImageOperations::CreateButtonBackground(color,
+ *image,
+ *mask);
}
void ImageButton::SetImageAlignment(HorizontalAlignment h_align,
@@ -94,8 +95,8 @@ SkBitmap ImageButton::GetImageToPaint() {
SkBitmap img;
if (!images_[BS_HOT].isNull() && hover_animation_->IsAnimating()) {
- img = SkBitmapOperations::CreateBlendedBitmap(images_[BS_NORMAL],
- images_[BS_HOT], hover_animation_->GetCurrentValue());
+ img = skia::ImageOperations::CreateBlendedBitmap(images_[BS_NORMAL],
+ images_[BS_HOT], hover_animation_->GetCurrentValue());
} else {
img = images_[state_];
}