summaryrefslogtreecommitdiffstats
path: root/skia/ext/vector_platform_device_emf_win.cc
diff options
context:
space:
mode:
authorvitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-22 00:10:07 +0000
committervitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-22 00:10:07 +0000
commit60d77bde7e6aac08a05b00ce2b82f94144934965 (patch)
treee259f3205b1017c549b87e08497ad4172f990bdd /skia/ext/vector_platform_device_emf_win.cc
parentf26c77082295b9fc277cd7a5eb75cdf0edee1bbb (diff)
downloadchromium_src-60d77bde7e6aac08a05b00ce2b82f94144934965.zip
chromium_src-60d77bde7e6aac08a05b00ce2b82f94144934965.tar.gz
chromium_src-60d77bde7e6aac08a05b00ce2b82f94144934965.tar.bz2
Some printers has issue with metafiles produces from PDF so added switch and about:flag as workaround for affected users.
Rasterisation is implemented and RasterizeMetafile function. It replace metafile with new one where content is only bitmap created by playback of original metafile. FlattenTransparency replaced with full rasterisation. Fixed rectangle returned by Emf::GetPageBounds. Removed SkDevice::AlphaBlendUsed(). Removed return value from PrintWebViewHelper::RenderPage on windows. BUG=133527 Review URL: https://chromiumcodereview.appspot.com/10836330 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152681 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/vector_platform_device_emf_win.cc')
-rw-r--r--skia/ext/vector_platform_device_emf_win.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/skia/ext/vector_platform_device_emf_win.cc b/skia/ext/vector_platform_device_emf_win.cc
index 3c34800..73be491 100644
--- a/skia/ext/vector_platform_device_emf_win.cc
+++ b/skia/ext/vector_platform_device_emf_win.cc
@@ -100,8 +100,7 @@ VectorPlatformDeviceEmf::VectorPlatformDeviceEmf(HDC dc, const SkBitmap& bitmap)
: SkDevice(bitmap),
hdc_(dc),
previous_brush_(NULL),
- previous_pen_(NULL),
- alpha_blend_used_(false) {
+ previous_pen_(NULL) {
transform_.reset();
SetPlatformDevice(this, this);
}
@@ -854,8 +853,6 @@ void VectorPlatformDeviceEmf::InternalDrawBitmap(const SkBitmap& bitmap,
result = SetStretchBltMode(dc, previous_mode);
SkASSERT(result);
- alpha_blend_used_ = true;
-
::SelectObject(bitmap_dc, static_cast<HBITMAP>(old_bitmap));
DeleteObject(hbitmap);
DeleteDC(bitmap_dc);