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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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 | « ui/views/controls/scrollbar/overlay_scroll_bar.cc ('k') | ui/views/controls/table/table_header.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/tabbed_pane/tabbed_pane.cc
diff --git a/ui/views/controls/tabbed_pane/tabbed_pane.cc b/ui/views/controls/tabbed_pane/tabbed_pane.cc
index f36f68083227ffe0517ac13fcd8a703def3e8bff..217e36b33bc7dc36359d9f91fb2dd706bfd35718 100644
--- a/ui/views/controls/tabbed_pane/tabbed_pane.cc
+++ b/ui/views/controls/tabbed_pane/tabbed_pane.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/macros.h"
+#include "skia/ext/cdl_paint.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/accessibility/ax_node_data.h"
@@ -331,7 +332,7 @@ const char* TabStrip::GetClassName() const {
}
void TabStrip::OnPaintBorder(gfx::Canvas* canvas) {
- SkPaint paint;
+ CdlPaint paint;
paint.setColor(kTabBorderColor);
paint.setStrokeWidth(kTabBorderThickness);
SkScalar line_y = SkIntToScalar(height()) - (kTabBorderThickness / 2);
@@ -352,8 +353,8 @@ void TabStrip::OnPaintBorder(gfx::Canvas* canvas) {
path.rLineTo(0, tab_height);
path.lineTo(line_end, line_y);
- SkPaint paint;
- paint.setStyle(SkPaint::kStroke_Style);
+ CdlPaint paint;
+ paint.setStyle(CdlPaint::kStroke_Style);
paint.setColor(kTabBorderColor);
paint.setStrokeWidth(kTabBorderThickness);
canvas->DrawPath(path, paint);
« no previous file with comments | « ui/views/controls/scrollbar/overlay_scroll_bar.cc ('k') | ui/views/controls/table/table_header.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698