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

Side by Side Diff: core/src/fxge/ge/fx_ge_device.cpp

Issue 1747123002: Fix and enable lint checks. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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/freetype/fx_freetype.cpp ('k') | core/src/fxge/skia/fx_skia_blitter_new.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/include/fxge/fx_ge.h" 7 #include "core/include/fxge/fx_ge.h"
8 8
9 CFX_RenderDevice::CFX_RenderDevice() { 9 CFX_RenderDevice::CFX_RenderDevice() {
10 m_pDeviceDriver = NULL; 10 m_pDeviceDriver = NULL;
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 FX_FLOAT x2, 321 FX_FLOAT x2,
322 FX_FLOAT y2, 322 FX_FLOAT y2,
323 FX_DWORD color, 323 FX_DWORD color,
324 int fill_mode, 324 int fill_mode,
325 int alpha_flag, 325 int alpha_flag,
326 void* pIccTransform, 326 void* pIccTransform,
327 int blend_type) { 327 int blend_type) {
328 if (((m_RenderCaps & FXRC_ALPHA_PATH) && 328 if (((m_RenderCaps & FXRC_ALPHA_PATH) &&
329 (FXGETFLAG_COLORTYPE(alpha_flag) && 329 (FXGETFLAG_COLORTYPE(alpha_flag) &&
330 FXGETFLAG_ALPHA_FILL(alpha_flag) == 0xff)) || 330 FXGETFLAG_ALPHA_FILL(alpha_flag) == 0xff)) ||
331 color >= 0xff000000) 331 color >= 0xff000000) {
332 if (m_pDeviceDriver->DrawCosmeticLine(x1, y1, x2, y2, color, alpha_flag, 332 if (m_pDeviceDriver->DrawCosmeticLine(x1, y1, x2, y2, color, alpha_flag,
333 pIccTransform, blend_type)) { 333 pIccTransform, blend_type)) {
334 return TRUE; 334 return TRUE;
335 } 335 }
336 }
336 CFX_GraphStateData graph_state; 337 CFX_GraphStateData graph_state;
337 CFX_PathData path; 338 CFX_PathData path;
338 path.SetPointCount(2); 339 path.SetPointCount(2);
339 path.SetPoint(0, x1, y1, FXPT_MOVETO); 340 path.SetPoint(0, x1, y1, FXPT_MOVETO);
340 path.SetPoint(1, x2, y2, FXPT_LINETO); 341 path.SetPoint(1, x2, y2, FXPT_LINETO);
341 return m_pDeviceDriver->DrawPath(&path, NULL, &graph_state, 0, color, 342 return m_pDeviceDriver->DrawPath(&path, NULL, &graph_state, 0, color,
342 fill_mode, alpha_flag, pIccTransform, 343 fill_mode, alpha_flag, pIccTransform,
343 blend_type); 344 blend_type);
344 } 345 }
345 FX_BOOL CFX_RenderDevice::GetDIBits(CFX_DIBitmap* pBitmap, 346 FX_BOOL CFX_RenderDevice::GetDIBits(CFX_DIBitmap* pBitmap,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 return m_pDeviceDriver->StartDIBits(pBitmap, bitmap_alpha, argb, pMatrix, 465 return m_pDeviceDriver->StartDIBits(pBitmap, bitmap_alpha, argb, pMatrix,
465 flags, handle, alpha_flag, pIccTransform, 466 flags, handle, alpha_flag, pIccTransform,
466 blend_mode); 467 blend_mode);
467 } 468 }
468 FX_BOOL CFX_RenderDevice::ContinueDIBits(void* handle, IFX_Pause* pPause) { 469 FX_BOOL CFX_RenderDevice::ContinueDIBits(void* handle, IFX_Pause* pPause) {
469 return m_pDeviceDriver->ContinueDIBits(handle, pPause); 470 return m_pDeviceDriver->ContinueDIBits(handle, pPause);
470 } 471 }
471 void CFX_RenderDevice::CancelDIBits(void* handle) { 472 void CFX_RenderDevice::CancelDIBits(void* handle) {
472 m_pDeviceDriver->CancelDIBits(handle); 473 m_pDeviceDriver->CancelDIBits(handle);
473 } 474 }
OLDNEW
« no previous file with comments | « core/src/fxge/freetype/fx_freetype.cpp ('k') | core/src/fxge/skia/fx_skia_blitter_new.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698