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

Side by Side Diff: core/src/fxge/dib/fx_dib_transform.cpp

Issue 1243953004: Re-land else-after-returns (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 5 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/dib/fx_dib_main.cpp ('k') | core/src/fxge/ge/fx_ge_device.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 "../../../include/fxge/fx_dib.h" 7 #include "../../../include/fxge/fx_dib.h"
8 #include "dib_int.h" 8 #include "dib_int.h"
9 int SDP_Table[513] = { 9 int SDP_Table[513] = {
10 256, 256, 256, 256, 256, 256, 256, 256, 256, 255, 255, 255, 255, 255, 255, 2 54, 254, 254, 254, 10 256, 256, 256, 256, 256, 256, 256, 256, 256, 255, 255, 255, 255, 255, 255, 2 54, 254, 254, 254,
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 FX_BOOL CFX_ImageTransformer::Continue(IFX_Pause* pPause) 338 FX_BOOL CFX_ImageTransformer::Continue(IFX_Pause* pPause)
339 { 339 {
340 if (m_Status == 1) { 340 if (m_Status == 1) {
341 if (m_Stretcher.Continue(pPause)) { 341 if (m_Stretcher.Continue(pPause)) {
342 return TRUE; 342 return TRUE;
343 } 343 }
344 if (m_Storer.GetBitmap()) { 344 if (m_Storer.GetBitmap()) {
345 m_Storer.Replace(m_Storer.GetBitmap()->SwapXY(m_pMatrix->c > 0, m_pM atrix->b < 0)); 345 m_Storer.Replace(m_Storer.GetBitmap()->SwapXY(m_pMatrix->c > 0, m_pM atrix->b < 0));
346 } 346 }
347 return FALSE; 347 return FALSE;
348 } else if (m_Status == 2) { 348 }
349 if (m_Status == 2) {
349 return m_Stretcher.Continue(pPause); 350 return m_Stretcher.Continue(pPause);
350 } else if (m_Status != 3) { 351 }
352 if (m_Status != 3) {
351 return FALSE; 353 return FALSE;
352 } 354 }
353 if (m_Stretcher.Continue(pPause)) { 355 if (m_Stretcher.Continue(pPause)) {
354 return TRUE; 356 return TRUE;
355 } 357 }
356 int stretch_width = m_StretchClip.Width(); 358 int stretch_width = m_StretchClip.Width();
357 int stretch_height = m_StretchClip.Height(); 359 int stretch_height = m_StretchClip.Height();
358 if (m_Storer.GetBitmap() == NULL) { 360 if (m_Storer.GetBitmap() == NULL) {
359 return FALSE; 361 return FALSE;
360 } 362 }
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 } 781 }
780 dest_pos += destBpp; 782 dest_pos += destBpp;
781 } 783 }
782 } 784 }
783 } 785 }
784 } 786 }
785 } 787 }
786 m_Storer.Replace(pTransformed); 788 m_Storer.Replace(pTransformed);
787 return FALSE; 789 return FALSE;
788 } 790 }
OLDNEW
« no previous file with comments | « core/src/fxge/dib/fx_dib_main.cpp ('k') | core/src/fxge/ge/fx_ge_device.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698