summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-02-06 16:53:14 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-06 16:53:14 +0000
commit41441c9da88210376a87c4d03d71232b390b7cee (patch)
tree3a3c4b1fa1704c39bf2ec935c36be39f1991692d /core/fxcodec/codec
parentb105152222f9dfb387efa6a70dedf3dd0ceb2cd5 (diff)
downloadpdfium-41441c9da88210376a87c4d03d71232b390b7cee.tar.xz
Convert BMP class name style to match other codecs
BMPDecompressor -> CFX_BmpDecompressor CBmpContext -> CFX_BmpContext BUG=chromium:808336 Change-Id: If8ef5294171e3619ae1d7c5175ddf23b7673ec78 Reviewed-on: https://pdfium-review.googlesource.com/25611 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/codec')
-rw-r--r--core/fxcodec/codec/ccodec_bmpmodule.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/core/fxcodec/codec/ccodec_bmpmodule.cpp b/core/fxcodec/codec/ccodec_bmpmodule.cpp
index 9fbb557008..260ebbd451 100644
--- a/core/fxcodec/codec/ccodec_bmpmodule.cpp
+++ b/core/fxcodec/codec/ccodec_bmpmodule.cpp
@@ -13,12 +13,11 @@
#include "core/fxge/fx_dib.h"
#include "third_party/base/ptr_util.h"
-CBmpContext::CBmpContext(CCodec_BmpModule* pModule,
- CCodec_BmpModule::Delegate* pDelegate)
- : m_pModule(pModule), m_pDelegate(pDelegate) {
-}
+CFX_BmpContext::CFX_BmpContext(CCodec_BmpModule* pModule,
+ CCodec_BmpModule::Delegate* pDelegate)
+ : m_pModule(pModule), m_pDelegate(pDelegate) {}
-CBmpContext::~CBmpContext() {}
+CFX_BmpContext::~CFX_BmpContext() {}
CCodec_BmpModule::CCodec_BmpModule() {}
@@ -26,7 +25,7 @@ CCodec_BmpModule::~CCodec_BmpModule() {}
std::unique_ptr<CCodec_BmpModule::Context> CCodec_BmpModule::Start(
Delegate* pDelegate) {
- auto p = pdfium::MakeUnique<CBmpContext>(this, pDelegate);
+ auto p = pdfium::MakeUnique<CFX_BmpContext>(this, pDelegate);
p->m_Bmp.context_ptr_ = p.get();
return p;
}
@@ -39,7 +38,7 @@ int32_t CCodec_BmpModule::ReadHeader(Context* pContext,
int32_t* pal_num,
std::vector<uint32_t>* palette,
CFX_DIBAttribute* pAttribute) {
- auto* ctx = static_cast<CBmpContext*>(pContext);
+ auto* ctx = static_cast<CFX_BmpContext*>(pContext);
if (setjmp(ctx->m_Bmp.jmpbuf_))
return 0;
@@ -63,7 +62,7 @@ int32_t CCodec_BmpModule::ReadHeader(Context* pContext,
}
int32_t CCodec_BmpModule::LoadImage(Context* pContext) {
- auto* ctx = static_cast<CBmpContext*>(pContext);
+ auto* ctx = static_cast<CFX_BmpContext*>(pContext);
if (setjmp(ctx->m_Bmp.jmpbuf_))
return 0;
@@ -72,13 +71,13 @@ int32_t CCodec_BmpModule::LoadImage(Context* pContext) {
uint32_t CCodec_BmpModule::GetAvailInput(Context* pContext,
uint8_t** avail_buf_ptr) {
- auto* ctx = static_cast<CBmpContext*>(pContext);
+ auto* ctx = static_cast<CFX_BmpContext*>(pContext);
return ctx->m_Bmp.GetAvailInput(avail_buf_ptr);
}
void CCodec_BmpModule::Input(Context* pContext,
const uint8_t* src_buf,
uint32_t src_size) {
- auto* ctx = static_cast<CBmpContext*>(pContext);
+ auto* ctx = static_cast<CFX_BmpContext*>(pContext);
ctx->m_Bmp.SetInputBuffer(const_cast<uint8_t*>(src_buf), src_size);
}