Adding CreateFromData to NativeMetafileFactory
commit67c5be79a53904e4ab5a6617bf9cbad9f7f5de6f
authordpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 26 Mar 2011 00:28:36 +0000 (26 00:28 +0000)
committerdpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 26 Mar 2011 00:28:36 +0000 (26 00:28 +0000)
treed3d8e5c52a081276c4e7e5a44f77cc8d49a70c21
parent70ce2ea6a9312b849f9909b26d52c147e6033e38
Adding CreateFromData to NativeMetafileFactory

Also making Create method calling Init on the metafile before returning it.
Usually clients of the NativeMetafileFactory call Create and the Init or
InitFromData on the object to initialize it. Now the returned object will
already be initialized.

BUG=NONE
TEST=NONE

Review URL: http://codereview.chromium.org/6696076

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79475 0039d316-1c4b-4281-b951-d872f2087c98
chrome/renderer/mock_printer.cc
chrome/renderer/print_web_view_helper_linux.cc
chrome/renderer/print_web_view_helper_mac.mm
chrome/renderer/print_web_view_helper_win.cc
printing/image.cc
printing/native_metafile_factory.cc
printing/native_metafile_factory.h
webkit/plugins/ppapi/ppapi_plugin_instance.cc