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

Side by Side Diff: core/src/fxge/skia/fx_skia_device.cpp

Issue 1171733003: Remove typdefs for pointer types in fx_system.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual fixes. Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « core/src/fxge/skia/fx_skia_device.h ('k') | core/src/fxge/win32/dwrite_int.h » ('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 #include "../../../include/fxge/fx_ge.h" 5 #include "../../../include/fxge/fx_ge.h"
6 //#define _SKIA_SUPPORT_ 6 //#define _SKIA_SUPPORT_
7 #if defined(_SKIA_SUPPORT_) 7 #if defined(_SKIA_SUPPORT_)
8 #include "../../../include/fxcodec/fx_codec.h" 8 #include "../../../include/fxcodec/fx_codec.h"
9 9
10 10
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 FX_BOOL CFX_SkiaDeviceDriver::StretchDIBits(const CFX_DIBSource* pSource, FX_DWO RD argb, int dest_left, int dest_top, 471 FX_BOOL CFX_SkiaDeviceDriver::StretchDIBits(const CFX_DIBSource* pSource, FX_DWO RD argb, int dest_left, int dest_top,
472 int dest_width, int dest _height, const FX_RECT* pClipRect, FX_DWORD flags, 472 int dest_width, int dest _height, const FX_RECT* pClipRect, FX_DWORD flags,
473 int alpha_flag, void* pI ccTransform) 473 int alpha_flag, void* pI ccTransform)
474 { 474 {
475 return m_pAggDriver->StretchDIBits(pSource, argb, dest_left, dest_top, 475 return m_pAggDriver->StretchDIBits(pSource, argb, dest_left, dest_top,
476 dest_width, dest_height, pClipRect, flags, 476 dest_width, dest_height, pClipRect, flags,
477 alpha_flag, pIccTransfor m); 477 alpha_flag, pIccTransfor m);
478 } 478 }
479 479
480 FX_BOOL CFX_SkiaDeviceDriver::StartDIBits(const CFX_DIBSource* pSource, int bitm ap_alpha, FX_DWORD argb, 480 FX_BOOL CFX_SkiaDeviceDriver::StartDIBits(const CFX_DIBSource* pSource, int bitm ap_alpha, FX_DWORD argb,
481 » » » » » » const CFX_AffineMatrix* pMatrix, FX_DWORD render_flags, FX_LPVOID& handle, 481 » » » » » » const CFX_AffineMatrix* pMatrix, FX_DWORD render_flags, void*& handle,
482 int alpha_flag, void* pIccTransf orm) 482 int alpha_flag, void* pIccTransf orm)
483 { 483 {
484 return m_pAggDriver->StartDIBits(pSource, bitmap_alpha, argb, 484 return m_pAggDriver->StartDIBits(pSource, bitmap_alpha, argb,
485 pMatrix, render_flags, handle, a lpha_flag, pIccTransform); 485 pMatrix, render_flags, handle, a lpha_flag, pIccTransform);
486 } 486 }
487 487
488 FX_BOOL»CFX_SkiaDeviceDriver::ContinueDIBits(FX_LPVOID pHandle, IFX_Pause* pPaus e) 488 FX_BOOL»CFX_SkiaDeviceDriver::ContinueDIBits(void* pHandle, IFX_Pause* pPause)
489 { 489 {
490 return m_pAggDriver->ContinueDIBits(pHandle, pPause); 490 return m_pAggDriver->ContinueDIBits(pHandle, pPause);
491 } 491 }
492 492
493 void CFX_SkiaDeviceDriver::CancelDIBits(FX_LPVOID pHandle) 493 void CFX_SkiaDeviceDriver::CancelDIBits(void* pHandle)
494 { 494 {
495 m_pAggDriver->CancelDIBits(pHandle); 495 m_pAggDriver->CancelDIBits(pHandle);
496 } 496 }
497 497
498 CFX_SkiaDevice::CFX_SkiaDevice() 498 CFX_SkiaDevice::CFX_SkiaDevice()
499 { 499 {
500 m_bOwnedBitmap = FALSE; 500 m_bOwnedBitmap = FALSE;
501 } 501 }
502 502
503 FX_BOOL CFX_SkiaDevice::Attach(CFX_DIBitmap* pBitmap, int dither_bits, FX_BOOL b RgbByteOrder, CFX_DIBitmap* pOriDevice, FX_BOOL bGroupKnockout) 503 FX_BOOL CFX_SkiaDevice::Attach(CFX_DIBitmap* pBitmap, int dither_bits, FX_BOOL b RgbByteOrder, CFX_DIBitmap* pOriDevice, FX_BOOL bGroupKnockout)
(...skipping 18 matching lines...) Expand all
522 CFX_SkiaDeviceDriver* pDriver = new CFX_SkiaDeviceDriver(pBitmap, dithe r_bits, FALSE, pOriDevice, FALSE); 522 CFX_SkiaDeviceDriver* pDriver = new CFX_SkiaDeviceDriver(pBitmap, dithe r_bits, FALSE, pOriDevice, FALSE);
523 SetDeviceDriver(pDriver); 523 SetDeviceDriver(pDriver);
524 return TRUE; 524 return TRUE;
525 } 525 }
526 CFX_SkiaDevice::~CFX_SkiaDevice() 526 CFX_SkiaDevice::~CFX_SkiaDevice()
527 { 527 {
528 if (m_bOwnedBitmap && GetBitmap()) delete GetBitmap(); 528 if (m_bOwnedBitmap && GetBitmap()) delete GetBitmap();
529 } 529 }
530 530
531 #endif 531 #endif
OLDNEW
« no previous file with comments | « core/src/fxge/skia/fx_skia_device.h ('k') | core/src/fxge/win32/dwrite_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698