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

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

Issue 404653005: Remove a few unused variables, functions, and tables. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 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/apple/fx_quartz_device.cpp ('k') | core/src/fxge/dib/fx_dib_engine.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_ge.h" 7 #include "../../../include/fxge/fx_ge.h"
8 #include "../../../include/fxcodec/fx_codec.h" 8 #include "../../../include/fxcodec/fx_codec.h"
9 #include "dib_int.h" 9 #include "dib_int.h"
10 const FX_BYTE g_GammaRamp[256] = { 10 const FX_BYTE g_GammaRamp[256] = {
(...skipping 2933 matching lines...) Expand 10 before | Expand all | Expand 10 after
2944 _BLEND(blend_type, back_color, *src_scan); 2944 _BLEND(blend_type, back_color, *src_scan);
2945 dest_scan[index] = FX_GAMMA_INVERSE(FXDIB_ALPHA_MERGE(back_color, bl ended, src_alpha)); 2945 dest_scan[index] = FX_GAMMA_INVERSE(FXDIB_ALPHA_MERGE(back_color, bl ended, src_alpha));
2946 src_scan ++; 2946 src_scan ++;
2947 } 2947 }
2948 dest_scan += dest_Bpp; 2948 dest_scan += dest_Bpp;
2949 src_scan ++; 2949 src_scan ++;
2950 } 2950 }
2951 } 2951 }
2952 inline void _CompositeRow_Rgb2Argb_NoBlend_NoClip_RgbByteOrder(FX_LPBYTE dest_sc an, FX_LPCBYTE src_scan, int width, int src_Bpp) 2952 inline void _CompositeRow_Rgb2Argb_NoBlend_NoClip_RgbByteOrder(FX_LPBYTE dest_sc an, FX_LPCBYTE src_scan, int width, int src_Bpp)
2953 { 2953 {
2954 int src_gap = src_Bpp - 3;
2955 for (int col = 0; col < width; col ++) { 2954 for (int col = 0; col < width; col ++) {
2956 if (src_Bpp == 4) { 2955 if (src_Bpp == 4) {
2957 FXARGB_SETRGBORDERDIB(dest_scan, 0xff000000 | FXARGB_GETDIB(src_scan )); 2956 FXARGB_SETRGBORDERDIB(dest_scan, 0xff000000 | FXARGB_GETDIB(src_scan ));
2958 } else { 2957 } else {
2959 FXARGB_SETRGBORDERDIB(dest_scan, FXARGB_MAKE(0xff, src_scan[2], src_ scan[1], src_scan[0])); 2958 FXARGB_SETRGBORDERDIB(dest_scan, FXARGB_MAKE(0xff, src_scan[2], src_ scan[1], src_scan[0]));
2960 } 2959 }
2961 dest_scan += 4; 2960 dest_scan += 4;
2962 src_scan += src_Bpp; 2961 src_scan += src_Bpp;
2963 } 2962 }
2964 } 2963 }
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after
4593 } 4592 }
4594 src_alpha_scan = m_pScanlineAlphaV; 4593 src_alpha_scan = m_pScanlineAlphaV;
4595 dest_alpha_scan = dest_alpha_buf; 4594 dest_alpha_scan = dest_alpha_buf;
4596 if (dest_alpha_scan) { 4595 if (dest_alpha_scan) {
4597 for (i = 0; i < m_DestHeight; i ++) { 4596 for (i = 0; i < m_DestHeight; i ++) {
4598 *dest_alpha_scan = *src_alpha_scan++; 4597 *dest_alpha_scan = *src_alpha_scan++;
4599 dest_alpha_scan += y_alpha_step; 4598 dest_alpha_scan += y_alpha_step;
4600 } 4599 }
4601 } 4600 }
4602 } 4601 }
OLDNEW
« no previous file with comments | « core/src/fxge/apple/fx_quartz_device.cpp ('k') | core/src/fxge/dib/fx_dib_engine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698