Rename IccModule::CreateTransform_sRGB().
Rename to CreateTransformSRGB(), per style guide.
Change-Id: I4b7ba7f5e5833239963886df66390fe8301cfd3d
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/55930
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fpdfapi/page/cpdf_iccprofile.cpp b/core/fpdfapi/page/cpdf_iccprofile.cpp
index 12590ff..ce522f2 100644
--- a/core/fpdfapi/page/cpdf_iccprofile.cpp
+++ b/core/fpdfapi/page/cpdf_iccprofile.cpp
@@ -26,7 +26,7 @@
return;
}
- m_Transform = IccModule::CreateTransform_sRGB(span);
+ m_Transform = IccModule::CreateTransformSRGB(span);
if (m_Transform)
m_nSrcComponents = m_Transform->components();
}
diff --git a/core/fxcodec/codec/iccmodule.cpp b/core/fxcodec/codec/iccmodule.cpp
index d27f200..83eebc7 100644
--- a/core/fxcodec/codec/iccmodule.cpp
+++ b/core/fxcodec/codec/iccmodule.cpp
@@ -51,7 +51,7 @@
}
// static
-std::unique_ptr<CLcmsCmm> IccModule::CreateTransform_sRGB(
+std::unique_ptr<CLcmsCmm> IccModule::CreateTransformSRGB(
pdfium::span<const uint8_t> span) {
ScopedCmsProfile srcProfile(cmsOpenProfileFromMem(span.data(), span.size()));
if (!srcProfile)
diff --git a/core/fxcodec/codec/iccmodule.h b/core/fxcodec/codec/iccmodule.h
index 7270f45..c09b32f 100644
--- a/core/fxcodec/codec/iccmodule.h
+++ b/core/fxcodec/codec/iccmodule.h
@@ -44,7 +44,7 @@
class IccModule {
public:
- static std::unique_ptr<CLcmsCmm> CreateTransform_sRGB(
+ static std::unique_ptr<CLcmsCmm> CreateTransformSRGB(
pdfium::span<const uint8_t> span);
static void Translate(CLcmsCmm* pTransform,
uint32_t nSrcComponents,
diff --git a/testing/fuzzers/pdf_codec_icc_fuzzer.cc b/testing/fuzzers/pdf_codec_icc_fuzzer.cc
index 06936b8..cf0615f 100644
--- a/testing/fuzzers/pdf_codec_icc_fuzzer.cc
+++ b/testing/fuzzers/pdf_codec_icc_fuzzer.cc
@@ -9,7 +9,7 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
std::unique_ptr<CLcmsCmm> transform =
- IccModule::CreateTransform_sRGB(pdfium::make_span(data, size));
+ IccModule::CreateTransformSRGB(pdfium::make_span(data, size));
if (transform) {
float src[4];