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

Unified Diff: ui/views/controls/glow_hover_controller.cc

Issue 10437006: Converts ui/views/controls, ui/views/examples, ui/base/models to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 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: ui/views/controls/glow_hover_controller.cc
diff --git a/ui/views/controls/glow_hover_controller.cc b/ui/views/controls/glow_hover_controller.cc
index c998f340a18f16a4a9b98558c28e1bc83ab16012..f3b356b32a3960b7f3b8ed7b5b31f6e07b417711 100644
--- a/ui/views/controls/glow_hover_controller.cc
+++ b/ui/views/controls/glow_hover_controller.cc
@@ -4,9 +4,9 @@
#include "ui/views/controls/glow_hover_controller.h"
-#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
#include "ui/gfx/canvas.h"
+#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/skbitmap_operations.h"
#include "ui/views/view.h"
@@ -64,7 +64,7 @@ bool GlowHoverController::ShouldDraw() const {
}
void GlowHoverController::Draw(gfx::Canvas* canvas,
- const SkBitmap& mask_image) const {
+ const gfx::ImageSkia& mask_image) const {
if (!ShouldDraw())
return;
@@ -96,7 +96,7 @@ void GlowHoverController::Draw(gfx::Canvas* canvas,
location_.y() - radius,
radius * 2, radius * 2), paint);
}
- SkBitmap result = SkBitmapOperations::CreateMaskedBitmap(
+ gfx::ImageSkia result = SkBitmapOperations::CreateMaskedBitmap(
hover_canvas.ExtractBitmap(), mask_image);
canvas->DrawBitmapInt(result, (view_->width() - mask_image.width()) / 2,
(view_->height() - mask_image.height()) / 2);

Powered by Google App Engine
This is Rietveld 408576698