From a219f823813abcf778eceea2eb81f2d3967009a8 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> 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/drag_utils_win.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/drag_utils_win.cc') diff --git a/views/drag_utils_win.cc b/views/drag_utils_win.cc index 74663a6..3c951ed 100644 --- a/views/drag_utils_win.cc +++ b/views/drag_utils_win.cc @@ -10,7 +10,7 @@ #include "app/os_exchange_data.h" #include "app/os_exchange_data_provider_win.h" -#include "gfx/canvas.h" +#include "gfx/canvas_skia.h" #include "gfx/gdi_util.h" namespace drag_utils { @@ -47,7 +47,7 @@ static HBITMAP CreateBitmapFromCanvas(const gfx::Canvas& canvas, HDC compatible_dc = CreateCompatibleDC(screen_dc); HGDIOBJ old_object = SelectObject(compatible_dc, bitmap); BitBlt(compatible_dc, 0, 0, width, height, - canvas.getTopPlatformDevice().getBitmapDC(), + canvas.AsCanvasSkia()->getTopPlatformDevice().getBitmapDC(), 0, 0, SRCCOPY); SelectObject(compatible_dc, old_object); ReleaseDC(NULL, compatible_dc); -- cgit v1.1