summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-31 03:49:49 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-31 03:49:49 +0000
commit99c72200c2aa50f3d1befea0a7b357c31eb429cf (patch)
tree88ef1391af913990363734f08ca0194493505a67 /chrome/renderer/render_view.cc
parenta5e2f667cecad6a1eea2b0ac51498d322b57db3d (diff)
downloadchromium_src-99c72200c2aa50f3d1befea0a7b357c31eb429cf.zip
chromium_src-99c72200c2aa50f3d1befea0a7b357c31eb429cf.tar.gz
chromium_src-99c72200c2aa50f3d1befea0a7b357c31eb429cf.tar.bz2
Make ImageBuffer creation and handling conform to proper WebKit form rather than using tacked-on functions on GraphicsContext. Clean up the associated GraphicsContext objects.
Merge SkGraphicsContext, SkPaintContext, and PlatformContextSkia into one class, PlatformContextSkia. This tries to change no code related to this, the code in PlatformContextSkia is just a concatenation of those existing files, and hopefully doesn't need much review. This file is in the wrong style and is a terrible mess, I will clean it up in successive passes so it can be reviewed reasonably. Review URL: http://codereview.chromium.org/8754 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4270 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.cc')
-rw-r--r--chrome/renderer/render_view.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index ce9ccdd..6912e8b 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -57,7 +57,7 @@
#include "webkit/glue/weburlrequest.h"
#include "webkit/glue/webview.h"
#include "webkit/glue/plugins/webplugin_delegate_impl.h"
-#include "webkit/port/platform/graphics/PlatformContextSkia.h"
+//#include "webkit/port/platform/graphics/PlatformContextSkia.h"
#include "generated_resources.h"
@@ -550,12 +550,11 @@ void RenderView::PrintPage(const ViewMsg_PrintPage_Params& params,
#else
// 100% GDI based.
gfx::VectorCanvas canvas(hdc, src_size_x, src_size_y);
- PlatformContextSkia context(&canvas);
// Set the clipping region to be sure to not overflow.
SkRect clip_rect;
clip_rect.set(0, 0, SkIntToScalar(src_size_x), SkIntToScalar(src_size_y));
canvas.clipRect(clip_rect);
- if (!frame->SpoolPage(params.page_number, &context)) {
+ if (!frame->SpoolPage(params.page_number, &canvas)) {
NOTREACHED() << "Printing page " << params.page_number << " failed.";
return;
}