From a219f823813abcf778eceea2eb81f2d3967009a8 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Thu, 24 Jun 2010 23:30:26 +0000 Subject: Canvas refactoring part 3. - Replace Canvas instance users with CanvasSkia users. - Rename Canvas2 to Canvas. - Delete Canvas subclass of CanvasSkia. This has created some ugliness around the fact that people that used SkCanvas methods on Canvas now have to go through AsCanvasSkia first. This is temporary ugliness that will be eradicated as I incrementally build out the new Canvas API. BUG=none TEST=none Review URL: http://codereview.chromium.org/2825018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50784 0039d316-1c4b-4281-b951-d872f2087c98 --- views/controls/progress_bar.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'views/controls/progress_bar.cc') diff --git a/views/controls/progress_bar.cc b/views/controls/progress_bar.cc index 19f10c5..1006acd 100644 --- a/views/controls/progress_bar.cc +++ b/views/controls/progress_bar.cc @@ -10,7 +10,7 @@ #include "app/resource_bundle.h" #include "base/logging.h" #include "base/string_util.h" -#include "gfx/canvas.h" +#include "gfx/canvas_skia.h" #include "gfx/color_utils.h" #include "gfx/font.h" #include "gfx/insets.h" @@ -75,7 +75,7 @@ static void FillRoundRect(gfx::Canvas* canvas, } else { paint.setColor(gradient_start_color); } - canvas->drawPath(path, paint); + canvas->AsCanvasSkia()->drawPath(path, paint); } static void StrokeRoundRect(gfx::Canvas* canvas, @@ -92,7 +92,7 @@ static void StrokeRoundRect(gfx::Canvas* canvas, paint.setStyle(SkPaint::kStroke_Style); paint.setFlags(SkPaint::kAntiAlias_Flag); paint.setStrokeWidth(SkIntToScalar(stroke_width)); - canvas->drawPath(path, paint); + canvas->AsCanvasSkia()->drawPath(path, paint); } } // anonymous namespace -- cgit v1.1