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

Side by Side Diff: core/fxge/include/cfx_fxgedevice.h

Issue 2182763002: add native draw bitmap with alpha mask (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 4 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/fxge/ifx_renderdevicedriver.cpp ('k') | core/fxge/include/cfx_renderdevice.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CORE_FXGE_INCLUDE_CFX_FXGEDEVICE_H_ 7 #ifndef CORE_FXGE_INCLUDE_CFX_FXGEDEVICE_H_
8 #define CORE_FXGE_INCLUDE_CFX_FXGEDEVICE_H_ 8 #define CORE_FXGE_INCLUDE_CFX_FXGEDEVICE_H_
9 9
10 #include "core/fxge/include/cfx_renderdevice.h" 10 #include "core/fxge/include/cfx_renderdevice.h"
(...skipping 10 matching lines...) Expand all
21 bool bRgbByteOrder, 21 bool bRgbByteOrder,
22 CFX_DIBitmap* pOriDevice, 22 CFX_DIBitmap* pOriDevice,
23 bool bGroupKnockout); 23 bool bGroupKnockout);
24 bool Create(int width, 24 bool Create(int width,
25 int height, 25 int height,
26 FXDIB_Format format, 26 FXDIB_Format format,
27 CFX_DIBitmap* pOriDevice); 27 CFX_DIBitmap* pOriDevice);
28 28
29 #ifdef _SKIA_SUPPORT_ 29 #ifdef _SKIA_SUPPORT_
30 bool AttachRecorder(SkPictureRecorder* recorder); 30 bool AttachRecorder(SkPictureRecorder* recorder);
31 void Clear(uint32_t color);
31 SkPictureRecorder* CreateRecorder(int size_x, int size_y); 32 SkPictureRecorder* CreateRecorder(int size_x, int size_y);
32 void DebugVerifyBitmapIsPreMultiplied() const override; 33 void DebugVerifyBitmapIsPreMultiplied() const override;
34 bool SetBitsWithMask(const CFX_DIBSource* pBitmap,
35 const CFX_DIBSource* pMask,
36 int left,
37 int top,
38 int bitmap_alpha,
39 int blend_type) override;
33 #endif 40 #endif
34 41
35 private: 42 private:
36 bool m_bOwnedBitmap; 43 bool m_bOwnedBitmap;
37 }; 44 };
38 45
39 #endif // CORE_FXGE_INCLUDE_CFX_FXGEDEVICE_H_ 46 #endif // CORE_FXGE_INCLUDE_CFX_FXGEDEVICE_H_
OLDNEW
« no previous file with comments | « core/fxge/ifx_renderdevicedriver.cpp ('k') | core/fxge/include/cfx_renderdevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698