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

Side by Side Diff: core/src/fxge/agg/agg23/fx_agg_driver.cpp

Issue 1088733002: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase. Created 5 years, 8 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
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 "../../dib/dib_int.h" 8 #include "../../dib/dib_int.h"
9 #include "../../ge/text_int.h" 9 #include "../../ge/text_int.h"
10 #include "../../../../include/fxcodec/fx_codec.h" 10 #include "../../../../include/fxcodec/fx_codec.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 } 362 }
363 CAgg_PathData path_data; 363 CAgg_PathData path_data;
364 path_data.BuildPath(pPathData, NULL); 364 path_data.BuildPath(pPathData, NULL);
365 agg::rasterizer_scanline_aa rasterizer; 365 agg::rasterizer_scanline_aa rasterizer;
366 rasterizer.clip_box(0.0f, 0.0f, (FX_FLOAT)(GetDeviceCaps(FXDC_PIXEL_WIDTH)), (FX_FLOAT)(GetDeviceCaps(FXDC_PIXEL_HEIGHT))); 366 rasterizer.clip_box(0.0f, 0.0f, (FX_FLOAT)(GetDeviceCaps(FXDC_PIXEL_WIDTH)), (FX_FLOAT)(GetDeviceCaps(FXDC_PIXEL_HEIGHT)));
367 RasterizeStroke(rasterizer, path_data.m_PathData, pObject2Device, pGraphStat e); 367 RasterizeStroke(rasterizer, path_data.m_PathData, pObject2Device, pGraphStat e);
368 rasterizer.filling_rule(agg::fill_non_zero); 368 rasterizer.filling_rule(agg::fill_non_zero);
369 SetClipMask(rasterizer); 369 SetClipMask(rasterizer);
370 return TRUE; 370 return TRUE;
371 } 371 }
372 class CFX_Renderer : public CFX_Object 372 class CFX_Renderer
373 { 373 {
374 private: 374 private:
375 int m_Alpha, 375 int m_Alpha,
376 m_Red, 376 m_Red,
377 m_Green, 377 m_Green,
378 m_Blue, 378 m_Blue,
379 m_Gray; 379 m_Gray;
380 FX_DWORD m_Color; 380 FX_DWORD m_Color;
381 FX_BOOL m_bFullCover; 381 FX_BOOL m_bFullCover;
382 FX_BOOL m_bRgbByteOrder; 382 FX_BOOL m_bRgbByteOrder;
(...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 } 1622 }
1623 SetDeviceDriver(pDriver); 1623 SetDeviceDriver(pDriver);
1624 return TRUE; 1624 return TRUE;
1625 } 1625 }
1626 CFX_FxgeDevice::~CFX_FxgeDevice() 1626 CFX_FxgeDevice::~CFX_FxgeDevice()
1627 { 1627 {
1628 if (m_bOwnedBitmap && GetBitmap()) { 1628 if (m_bOwnedBitmap && GetBitmap()) {
1629 delete GetBitmap(); 1629 delete GetBitmap();
1630 } 1630 }
1631 } 1631 }
OLDNEW
« no previous file with comments | « core/src/fxge/agg/agg23/agg_vertex_sequence.h ('k') | core/src/fxge/agg/include/fx_agg_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698