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

Side by Side Diff: core/fpdfapi/render/fpdf_render_image.cpp

Issue 2514263003: Make CPDF_ImageObject::m_Matrix private. (Closed)
Patch Set: nit Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « core/fpdfapi/page/cpdf_streamcontentparser.cpp ('k') | fpdfsdk/fpdfeditimg.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "core/fpdfapi/render/render_int.h" 7 #include "core/fpdfapi/render/render_int.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 m_pRenderStatus = pStatus; 371 m_pRenderStatus = pStatus;
372 m_bStdCS = bStdCS; 372 m_bStdCS = bStdCS;
373 m_pImageObject = pObj->AsImage(); 373 m_pImageObject = pObj->AsImage();
374 m_BlendType = blendType; 374 m_BlendType = blendType;
375 m_pObj2Device = pObj2Device; 375 m_pObj2Device = pObj2Device;
376 CPDF_Dictionary* pOC = m_pImageObject->GetImage()->GetOC(); 376 CPDF_Dictionary* pOC = m_pImageObject->GetImage()->GetOC();
377 if (pOC && m_pRenderStatus->m_Options.m_pOCContext && 377 if (pOC && m_pRenderStatus->m_Options.m_pOCContext &&
378 !m_pRenderStatus->m_Options.m_pOCContext->CheckOCGVisible(pOC)) { 378 !m_pRenderStatus->m_Options.m_pOCContext->CheckOCGVisible(pOC)) {
379 return false; 379 return false;
380 } 380 }
381 m_ImageMatrix = m_pImageObject->m_Matrix; 381 m_ImageMatrix = m_pImageObject->matrix();
382 m_ImageMatrix.Concat(*pObj2Device); 382 m_ImageMatrix.Concat(*pObj2Device);
383 if (StartLoadDIBSource()) { 383 if (StartLoadDIBSource())
384 return true; 384 return true;
385 }
386 return StartRenderDIBSource(); 385 return StartRenderDIBSource();
387 } 386 }
388 387
389 bool CPDF_ImageRenderer::Start(CPDF_RenderStatus* pStatus, 388 bool CPDF_ImageRenderer::Start(CPDF_RenderStatus* pStatus,
390 const CFX_DIBSource* pDIBSource, 389 const CFX_DIBSource* pDIBSource,
391 FX_ARGB bitmap_argb, 390 FX_ARGB bitmap_argb,
392 int bitmap_alpha, 391 int bitmap_alpha,
393 const CFX_Matrix* pImage2Device, 392 const CFX_Matrix* pImage2Device,
394 uint32_t flags, 393 uint32_t flags,
395 bool bStdCS, 394 bool bStdCS,
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 } 802 }
804 803
805 CCodec_ScanlineDecoder* FPDFAPI_CreateFlateDecoder( 804 CCodec_ScanlineDecoder* FPDFAPI_CreateFlateDecoder(
806 const uint8_t* src_buf, 805 const uint8_t* src_buf,
807 uint32_t src_size, 806 uint32_t src_size,
808 int width, 807 int width,
809 int height, 808 int height,
810 int nComps, 809 int nComps,
811 int bpc, 810 int bpc,
812 const CPDF_Dictionary* pParams); 811 const CPDF_Dictionary* pParams);
OLDNEW
« no previous file with comments | « core/fpdfapi/page/cpdf_streamcontentparser.cpp ('k') | fpdfsdk/fpdfeditimg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698