diff options
author | awalker@google.com <awalker@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-14 17:47:00 +0000 |
---|---|---|
committer | awalker@google.com <awalker@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-14 17:47:00 +0000 |
commit | b49cbcf2cb1808755be7d629df962850756fe691 (patch) | |
tree | 66a1cbbeda98ff0a2be564fb164bbd274245aea8 /chrome/renderer | |
parent | 6328338ef2dcd7fe075cb4065c644847d5330a71 (diff) | |
download | chromium_src-b49cbcf2cb1808755be7d629df962850756fe691.zip chromium_src-b49cbcf2cb1808755be7d629df962850756fe691.tar.gz chromium_src-b49cbcf2cb1808755be7d629df962850756fe691.tar.bz2 |
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_view.cc | 8 | ||||
-rw-r--r-- | chrome/renderer/render_widget.cc | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 478efaa..2d93886 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -35,7 +35,7 @@ #include "base/command_line.h" #include "base/gfx/bitmap_header.h" -#include "base/gfx/bitmap_platform_device.h" +#include "base/gfx/bitmap_platform_device_win.h" #include "base/gfx/image_operations.h" #include "base/gfx/native_theme.h" #include "base/gfx/vector_canvas.h" @@ -456,7 +456,7 @@ void RenderView::PrintPage(const ViewMsg_PrintPage_Params& params, emf.CreateDc(NULL, NULL); HDC hdc = emf.hdc(); DCHECK(hdc); - gfx::PlatformDevice::InitializeDC(hdc); + gfx::PlatformDeviceWin::InitializeDC(hdc); gfx::Rect rect; frame->GetPageRect(params.page_number, &rect); @@ -480,7 +480,7 @@ void RenderView::PrintPage(const ViewMsg_PrintPage_Params& params, // GDI drawing code fails. // Mix of Skia and GDI based. - gfx::PlatformCanvas canvas(src_size_x, src_size_y, true); + gfx::PlatformCanvasWin canvas(src_size_x, src_size_y, true); canvas.drawARGB(255, 255, 255, 255, SkPorterDuff::kSrc_Mode); PlatformContextSkia context(&canvas); if (!frame->SpoolPage(params.page_number, &context)) { @@ -692,7 +692,7 @@ void RenderView::CaptureThumbnail(WebFrame* frame, double begin = time_util::GetHighResolutionTimeNow(); #endif - gfx::BitmapPlatformDevice device(frame->CaptureImage(true)); + gfx::BitmapPlatformDeviceWin device(frame->CaptureImage(true)); const SkBitmap& src_bmp = device.accessBitmap(false); SkRect dest_rect; diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc index 90ec7c6..749fd8c 100644 --- a/chrome/renderer/render_widget.cc +++ b/chrome/renderer/render_widget.cc @@ -35,7 +35,7 @@ #include "base/gfx/size.h" #include "base/logging.h" #include "base/message_loop.h" -#include "base/gfx/platform_canvas.h" +#include "base/gfx/platform_canvas_win.h" #include "base/scoped_ptr.h" #include "webkit/glue/webinputevent.h" #include "webkit/glue/webwidget.h" @@ -368,7 +368,7 @@ void RenderWidget::ClearFocus() { } void RenderWidget::PaintRect(const gfx::Rect& rect, SharedMemory* paint_buf) { - gfx::PlatformCanvas canvas(rect.width(), rect.height(), true, + gfx::PlatformCanvasWin canvas(rect.width(), rect.height(), true, paint_buf->handle()); // Bring the canvas into the coordinate system of the paint rect canvas.translate(static_cast<SkScalar>(-rect.x()), |