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

Unified Diff: core/fxge/apple/fx_quartz_device.cpp

Issue 2078783002: Move ifx_renderdevicedriver to a separate file to share (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase to master Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fxge/apple/apple_int.h ('k') | core/fxge/ge/fx_ge_device.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fxge/apple/fx_quartz_device.cpp
diff --git a/core/fxge/apple/fx_quartz_device.cpp b/core/fxge/apple/fx_quartz_device.cpp
index 8adf6326c1f122feabe8c1474b12d7a638af4185..b3591a3da132eed48b8d6cacee31b3c686bc3c42 100644
--- a/core/fxge/apple/fx_quartz_device.cpp
+++ b/core/fxge/apple/fx_quartz_device.cpp
@@ -190,24 +190,20 @@ CFX_QuartzDeviceDriver::~CFX_QuartzDeviceDriver() {
CGContextRelease(m_context);
}
}
-int CFX_QuartzDeviceDriver::GetDeviceCaps(int capsID) {
+int CFX_QuartzDeviceDriver::GetDeviceCaps(int capsID) const {
switch (capsID) {
- case FXDC_DEVICE_CLASS: {
+ case FXDC_DEVICE_CLASS:
return m_deviceClass;
- }
- case FXDC_PIXEL_WIDTH: {
+ case FXDC_PIXEL_WIDTH:
return m_width;
- }
- case FXDC_PIXEL_HEIGHT: {
+ case FXDC_PIXEL_HEIGHT:
return m_height;
- }
- case FXDC_BITS_PIXEL: {
+ case FXDC_BITS_PIXEL:
return 32;
- }
- case FXDC_RENDER_CAPS: {
+ case FXDC_RENDER_CAPS:
return m_renderCaps;
- }
- default: { return 0; }
+ default:
+ return 0;
}
}
CFX_Matrix CFX_QuartzDeviceDriver::GetCTM() const {
« no previous file with comments | « core/fxge/apple/apple_int.h ('k') | core/fxge/ge/fx_ge_device.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698