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

Unified Diff: chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more two win fixes Created 8 years, 9 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/ui/views/autocomplete/autocomplete_popup_contents_view.cc
diff --git a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
index 6367b25ec766972c8ac5730e70d678d194f0ea36..d75be7d71b56f817eae469b89043734b879685be 100644
--- a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
+++ b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
@@ -27,7 +27,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/theme_provider.h"
-#include "ui/gfx/canvas_skia.h"
+#include "ui/gfx/canvas.h"
#include "ui/gfx/insets.h"
#include "ui/gfx/path.h"
#include "ui/views/bubble/bubble_border.h"
@@ -516,7 +516,7 @@ void AutocompletePopupContentsView::OnMouseExited(
////////////////////////////////////////////////////////////////////////////////
// AutocompletePopupContentsView, protected:
-void AutocompletePopupContentsView::PaintResultViews(gfx::CanvasSkia* canvas) {
+void AutocompletePopupContentsView::PaintResultViews(gfx::Canvas* canvas) {
canvas->sk_canvas()->drawColor(AutocompleteResultView::GetColor(
AutocompleteResultView::NORMAL, AutocompleteResultView::BACKGROUND));
View::PaintChildren(canvas);
@@ -553,7 +553,7 @@ void AutocompletePopupContentsView::OnPaint(gfx::Canvas* canvas) {
// Instead, we paint all our children into a second canvas and use that as a
// shader to fill a path representing the round-rect clipping region. This
// yields a nice anti-aliased edge.
- gfx::CanvasSkia contents_canvas(size(), true);
+ gfx::Canvas contents_canvas(size(), true);
PaintResultViews(&contents_canvas);
// We want the contents background to be slightly transparent so we can see

Powered by Google App Engine
This is Rietveld 408576698