OLD | NEW |
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 "xfa/fxgraphics/include/cfx_graphics.h" | 7 #include "xfa/fxgraphics/include/cfx_graphics.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, | 559 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, |
560 0x38, 0x38, 0x00, 0x00, 0x7c, 0x7c, 0x00, 0x00, 0xfe, 0xfe, 0x00, 0x00, | 560 0x38, 0x38, 0x00, 0x00, 0x7c, 0x7c, 0x00, 0x00, 0xfe, 0xfe, 0x00, 0x00, |
561 0x7c, 0x7c, 0x00, 0x00, 0x38, 0x38, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, | 561 0x7c, 0x7c, 0x00, 0x00, 0x38, 0x38, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, |
562 0x00, 0x00, 0x00, 0x00, | 562 0x00, 0x00, 0x00, 0x00, |
563 }}, | 563 }}, |
564 }; | 564 }; |
565 | 565 |
566 } // namespace | 566 } // namespace |
567 | 567 |
568 CFX_Graphics::CFX_Graphics() | 568 CFX_Graphics::CFX_Graphics() |
569 : m_renderDevice(nullptr), m_aggGraphics(nullptr) {} | 569 : m_type(FX_CONTEXT_None), |
| 570 m_renderDevice(nullptr), |
| 571 m_aggGraphics(nullptr) {} |
570 | 572 |
571 FX_ERR CFX_Graphics::Create(CFX_RenderDevice* renderDevice, | 573 FX_ERR CFX_Graphics::Create(CFX_RenderDevice* renderDevice, |
572 FX_BOOL isAntialiasing) { | 574 FX_BOOL isAntialiasing) { |
573 if (!renderDevice) | 575 if (!renderDevice) |
574 return FX_ERR_Parameter_Invalid; | 576 return FX_ERR_Parameter_Invalid; |
575 if (m_type != FX_CONTEXT_None) | 577 if (m_type != FX_CONTEXT_None) |
576 return FX_ERR_Property_Invalid; | 578 return FX_ERR_Property_Invalid; |
577 | 579 |
578 m_type = FX_CONTEXT_Device; | 580 m_type = FX_CONTEXT_Device; |
579 m_info.isAntialiasing = isAntialiasing; | 581 m_info.isAntialiasing = isAntialiasing; |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1557 CTM = other.CTM; | 1559 CTM = other.CTM; |
1558 isActOnDash = other.isActOnDash; | 1560 isActOnDash = other.isActOnDash; |
1559 strokeColor = other.strokeColor; | 1561 strokeColor = other.strokeColor; |
1560 fillColor = other.fillColor; | 1562 fillColor = other.fillColor; |
1561 font = other.font; | 1563 font = other.font; |
1562 fontSize = other.fontSize; | 1564 fontSize = other.fontSize; |
1563 fontHScale = other.fontHScale; | 1565 fontHScale = other.fontHScale; |
1564 fontSpacing = other.fontSpacing; | 1566 fontSpacing = other.fontSpacing; |
1565 return *this; | 1567 return *this; |
1566 } | 1568 } |
OLD | NEW |