aboutsummaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_thumbnail.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2019-07-08 20:37:44 +0000
committerChromium commit bot <commit-bot@chromium.org>2019-07-08 20:37:44 +0000
commita04a654fee700efe8e27eb281230bfe76f567a89 (patch)
tree4bd9835a182a7b1a8d6cdbe9de35b64aa90889f3 /fpdfsdk/fpdf_thumbnail.cpp
parente780e48a7ce7a7427e1595e1d0f2716b9de3457f (diff)
downloadpdfium-a04a654fee700efe8e27eb281230bfe76f567a89.tar.gz
Shorten FPDFPage thumbnail API names.
The API names already start with "FPDFPage" to indicate they work with pages. So having "FromPage" in the API names is redundant. Bug: pdfium:1312 Change-Id: I3bdc0adddbf1adc421c9bd61f11e3b9b66a928b5 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/57370 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_thumbnail.cpp')
-rw-r--r--fpdfsdk/fpdf_thumbnail.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/fpdfsdk/fpdf_thumbnail.cpp b/fpdfsdk/fpdf_thumbnail.cpp
index e20684169..f0bd4d675 100644
--- a/fpdfsdk/fpdf_thumbnail.cpp
+++ b/fpdfsdk/fpdf_thumbnail.cpp
@@ -32,9 +32,9 @@ const CPDF_Stream* CPDFStreamForThumbnailFromPage(FPDF_PAGE page) {
} // namespace
FPDF_EXPORT unsigned long FPDF_CALLCONV
-FPDFPage_GetDecodedThumbnailDataFromPage(FPDF_PAGE page,
- void* buffer,
- unsigned long buflen) {
+FPDFPage_GetDecodedThumbnailData(FPDF_PAGE page,
+ void* buffer,
+ unsigned long buflen) {
const CPDF_Stream* thumb_stream = CPDFStreamForThumbnailFromPage(page);
if (!thumb_stream)
return 0u;
@@ -43,9 +43,9 @@ FPDFPage_GetDecodedThumbnailDataFromPage(FPDF_PAGE page,
}
FPDF_EXPORT unsigned long FPDF_CALLCONV
-FPDFPage_GetRawThumbnailDataFromPage(FPDF_PAGE page,
- void* buffer,
- unsigned long buflen) {
+FPDFPage_GetRawThumbnailData(FPDF_PAGE page,
+ void* buffer,
+ unsigned long buflen) {
const CPDF_Stream* thumb_stream = CPDFStreamForThumbnailFromPage(page);
if (!thumb_stream)
return 0u;
@@ -54,7 +54,7 @@ FPDFPage_GetRawThumbnailDataFromPage(FPDF_PAGE page,
}
FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV
-FPDFPage_GetThumbnailAsBitmapFromPage(FPDF_PAGE page) {
+FPDFPage_GetThumbnailAsBitmap(FPDF_PAGE page) {
const CPDF_Stream* thumb_stream = CPDFStreamForThumbnailFromPage(page);
if (!thumb_stream)
return nullptr;