Index: chrome/browser/views/tabs/dragged_tab_view.cc |
=================================================================== |
--- chrome/browser/views/tabs/dragged_tab_view.cc (revision 50452) |
+++ chrome/browser/views/tabs/dragged_tab_view.cc (working copy) |
@@ -6,6 +6,7 @@ |
#include "chrome/browser/views/tabs/native_view_photobooth.h" |
#include "gfx/canvas.h" |
+#include "gfx/canvas_skia.h" |
#include "third_party/skia/include/core/SkShader.h" |
#include "views/widget/widget.h" |
@@ -185,7 +186,7 @@ |
void DraggedTabView::PaintDetachedView(gfx::Canvas* canvas) { |
gfx::Size ps = GetPreferredSize(); |
- gfx::Canvas scale_canvas(ps.width(), ps.height(), false); |
+ gfx::CanvasSkia scale_canvas(ps.width(), ps.height(), false); |
SkBitmap& bitmap_device = const_cast<SkBitmap&>( |
scale_canvas.getTopPlatformDevice().accessBitmap(true)); |
bitmap_device.eraseARGB(0, 0, 0, 0); |
@@ -200,9 +201,9 @@ |
ps.height() - kTwiceDragFrameBorderSize - attached_tab_size_.height(); |
scale_canvas.FillRectInt(SK_ColorBLACK, image_x, image_y, image_w, image_h); |
photobooth_->PaintScreenshotIntoCanvas( |
- &scale_canvas, |
+ scale_canvas.AsCanvas(), |
gfx::Rect(image_x, image_y, image_w, image_h)); |
- renderer_->ProcessPaint(&scale_canvas); |
+ renderer_->ProcessPaint(scale_canvas.AsCanvas()); |
SkIRect subset; |
subset.set(0, 0, ps.width(), ps.height()); |