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

Unified Diff: chrome/browser/ui/gtk/infobars/infobar_arrow_model.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
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_service.cc ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/infobars/infobar_arrow_model.cc
===================================================================
--- chrome/browser/ui/gtk/infobars/infobar_arrow_model.cc (revision 82144)
+++ chrome/browser/ui/gtk/infobars/infobar_arrow_model.cc (working copy)
@@ -6,6 +6,7 @@
#include "chrome/browser/ui/gtk/infobars/infobar_gtk.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
+#include "ui/gfx/canvas_skia.h"
#include "ui/gfx/canvas_skia_paint.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/rect.h"
@@ -101,14 +102,15 @@
paint.setShader(gradient_shader);
gradient_shader->unref();
- gfx::CanvasSkiaPaint canvas(expose, false);
- canvas.drawPath(path, paint);
+ gfx::CanvasSkiaPaint canvas_paint(expose, false);
+ SkCanvas* canvas = canvas_paint.AsCanvas()->AsCanvasSkia()->skia_canvas();
+ canvas->drawPath(path, paint);
paint.setShader(NULL);
paint.setColor(SkColorSetA(gfx::GdkColorToSkColor(border_color),
SkColorGetA(colors.top)));
paint.setStyle(SkPaint::kStroke_Style);
- canvas.drawPath(path, paint);
+ canvas->drawPath(path, paint);
}
void InfoBarArrowModel::AnimationEnded(const ui::Animation* animation) {
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_service.cc ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698