Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1272)

Unified Diff: ppapi/c/private/ppb_pdf.h

Issue 10836055: Add PPB_PDF API to load scaled image resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/c/private/ppb_pdf.h
diff --git a/ppapi/c/private/ppb_pdf.h b/ppapi/c/private/ppb_pdf.h
index a465694c147f5465d4243f3ccec8fd99f447b1c4..8ef076dd63aa23948ebe90ed158c3d49d1269362 100644
--- a/ppapi/c/private/ppb_pdf.h
+++ b/ppapi/c/private/ppb_pdf.h
@@ -169,6 +169,12 @@ struct PPB_PDF {
void (*Print)(PP_Instance instance);
PP_Bool(*IsFeatureEnabled)(PP_PDFFeature feature);
+
+ // Returns a resource image appropriate for a device with |scale| density.
+ // Returns 0 (NULL resource) if there is no resource at that scale
+ PP_Resource (*GetResourceImageForScale)(PP_Instance instance,
+ PP_ResourceImage image_id,
+ float scale);
};
#endif // PPAPI_C_PRIVATE_PPB_PDF_H_
« chrome/renderer/pepper/ppb_pdf_impl.cc ('K') | « chrome/renderer/pepper/ppb_pdf_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698