diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-29 07:54:18 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-29 07:54:18 +0000 |
commit | 3890cfff20f5407c0f5e7526cb5b8941d00901fa (patch) | |
tree | e59430650a82399d8c47ac90d5ecf0c71fc3b571 /webkit | |
parent | 5d199d726c8b6ea5aa125c44b0c790672a2922c0 (diff) | |
download | chromium_src-3890cfff20f5407c0f5e7526cb5b8941d00901fa.zip chromium_src-3890cfff20f5407c0f5e7526cb5b8941d00901fa.tar.gz chromium_src-3890cfff20f5407c0f5e7526cb5b8941d00901fa.tar.bz2 |
Adds a printing proxy and example. This adds a printing example.
Review URL: http://codereview.chromium.org/9455083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124149 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/plugins/ppapi/ppapi_plugin_instance.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc index 1b6ff94..7dde8d7 100644 --- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc @@ -1513,11 +1513,7 @@ bool PluginInstance::PrintRasterOutput(PP_Resource print_output, PPB_ImageData_Impl* image = static_cast<PPB_ImageData_Impl*>(enter.object()); - // TODO(brettw) this should not require the image to be mapped. It should - // instead map on demand. The DCHECK here is to remind you if you see the - // assert fire, fix the bug rather than mapping the data. - DCHECK(image->is_mapped()); - if (!image->is_mapped()) + if (!image->Map()) return false; const SkBitmap* bitmap = image->GetMappedBitmap(); |