summaryrefslogtreecommitdiffstats
path: root/chrome/plugin
diff options
context:
space:
mode:
authordpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-16 01:39:42 +0000
committerdpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-16 01:39:42 +0000
commit8f17cd3e165a4d0cc9a03c029ee5f4d39c5e77e7 (patch)
treefba63800e4b02432be8c45673e32f234d69cce9e /chrome/plugin
parent0da15e586f92f3488658034bfef5ecbf42656791 (diff)
downloadchromium_src-8f17cd3e165a4d0cc9a03c029ee5f4d39c5e77e7.zip
chromium_src-8f17cd3e165a4d0cc9a03c029ee5f4d39c5e77e7.tar.gz
chromium_src-8f17cd3e165a4d0cc9a03c029ee5f4d39c5e77e7.tar.bz2
Unifying NativeMetafile class interface (as much as possible) for Linux, Mac, Win
BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6611032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78320 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin')
-rw-r--r--chrome/plugin/webplugin_delegate_stub.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/plugin/webplugin_delegate_stub.cc b/chrome/plugin/webplugin_delegate_stub.cc
index e404b1e..ff7d55e 100644
--- a/chrome/plugin/webplugin_delegate_stub.cc
+++ b/chrome/plugin/webplugin_delegate_stub.cc
@@ -277,10 +277,10 @@ void WebPluginDelegateStub::OnPrint(base::SharedMemoryHandle* shared_memory,
NOTREACHED();
return;
}
- HDC hdc = metafile->hdc();
+ HDC hdc = metafile->context();
skia::PlatformDevice::InitializeDC(hdc);
delegate_->Print(hdc);
- if (!metafile->CloseDc()) {
+ if (!metafile->Close()) {
NOTREACHED();
return;
}