Index: chrome/browser/views/tabs/tab.cc |
=================================================================== |
--- chrome/browser/views/tabs/tab.cc (revision 50452) |
+++ chrome/browser/views/tabs/tab.cc (working copy) |
@@ -14,6 +14,7 @@ |
#include "chrome/browser/browser_theme_provider.h" |
#include "chrome/browser/defaults.h" |
#include "gfx/canvas.h" |
+#include "gfx/canvas_skia.h" |
#include "gfx/favicon_size.h" |
#include "gfx/font.h" |
#include "gfx/path.h" |
@@ -392,13 +393,13 @@ |
void Tab::PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas) { |
// Render the inactive tab background. We'll use this for clipping. |
- gfx::Canvas background_canvas(width(), height(), false); |
- PaintInactiveTabBackground(&background_canvas); |
+ gfx::CanvasSkia background_canvas(width(), height(), false); |
+ PaintInactiveTabBackground(background_canvas.AsCanvas()); |
SkBitmap background_image = background_canvas.ExtractBitmap(); |
// Draw a radial gradient to hover_canvas. |
- gfx::Canvas hover_canvas(width(), height(), false); |
+ gfx::CanvasSkia hover_canvas(width(), height(), false); |
int radius = kMiniTitleChangeGradientRadius; |
int x0 = width() + radius - kMiniTitleChangeInitialXOffset; |
int x1 = radius; |