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

Unified Diff: chrome/browser/views/detachable_toolbar_view.cc

Issue 2811032: Revert 50784 - Canvas refactoring part 3.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 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/views/detachable_toolbar_view.cc
===================================================================
--- chrome/browser/views/detachable_toolbar_view.cc (revision 50789)
+++ chrome/browser/views/detachable_toolbar_view.cc (working copy)
@@ -6,7 +6,7 @@
#include "app/resource_bundle.h"
#include "chrome/browser/browser_theme_provider.h"
-#include "gfx/canvas_skia.h"
+#include "gfx/canvas.h"
#include "gfx/skia_util.h"
#include "grit/theme_resources.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -70,7 +70,7 @@
paint.setAntiAlias(true);
paint.setColor(theme_provider->GetColor(BrowserThemeProvider::COLOR_TOOLBAR));
- canvas->AsCanvasSkia()->drawRoundRect(
+ canvas->drawRoundRect(
rect, SkDoubleToScalar(roundness), SkDoubleToScalar(roundness), paint);
}
@@ -85,9 +85,9 @@
border_paint.setAlpha(96);
border_paint.setAntiAlias(true);
- canvas->AsCanvasSkia()->drawRoundRect(
- rect, SkDoubleToScalar(roundness), SkDoubleToScalar(roundness),
- border_paint);
+ canvas->drawRoundRect(rect,
+ SkDoubleToScalar(roundness),
+ SkDoubleToScalar(roundness), border_paint);
}
// static
@@ -106,7 +106,7 @@
SkIntToScalar(vertical_padding + 1),
SkIntToScalar(x + 1),
SkIntToScalar(height / 2) };
- canvas->AsCanvasSkia()->drawRect(rc, paint);
+ canvas->drawRect(rc, paint);
// Draw the lower half of the divider.
SkPaint paint_down;
@@ -118,5 +118,5 @@
SkIntToScalar(height / 2),
SkIntToScalar(x + 1),
SkIntToScalar(height - vertical_padding) };
- canvas->AsCanvasSkia()->drawRect(rc_down, paint_down);
+ canvas->drawRect(rc_down, paint_down);
}
« no previous file with comments | « chrome/browser/views/create_application_shortcut_view.cc ('k') | chrome/browser/views/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698