OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/fxge/include/cfx_graphstate.h" | 7 #include "core/fxge/include/cfx_graphstate.h" |
8 | 8 |
9 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 9 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" |
10 | 10 |
11 CFX_GraphState::CFX_GraphState() {} | 11 CFX_GraphState::CFX_GraphState() {} |
12 | 12 |
13 CFX_GraphState::CFX_GraphState(const CFX_GraphState& that) | 13 CFX_GraphState::CFX_GraphState(const CFX_GraphState& that) |
14 : m_Ref(that.m_Ref) {} | 14 : m_Ref(that.m_Ref) {} |
15 | 15 |
16 CFX_GraphState::~CFX_GraphState() {} | 16 CFX_GraphState::~CFX_GraphState() {} |
17 | 17 |
18 void CFX_GraphState::Emplace() { | 18 void CFX_GraphState::Emplace() { |
19 m_Ref.Emplace(); | 19 m_Ref.Emplace(); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 m_Ref.GetPrivateCopy()->m_LineJoin = join; | 52 m_Ref.GetPrivateCopy()->m_LineJoin = join; |
53 } | 53 } |
54 | 54 |
55 FX_FLOAT CFX_GraphState::GetMiterLimit() const { | 55 FX_FLOAT CFX_GraphState::GetMiterLimit() const { |
56 return m_Ref.GetObject()->m_MiterLimit; | 56 return m_Ref.GetObject()->m_MiterLimit; |
57 } | 57 } |
58 | 58 |
59 void CFX_GraphState::SetMiterLimit(FX_FLOAT limit) { | 59 void CFX_GraphState::SetMiterLimit(FX_FLOAT limit) { |
60 m_Ref.GetPrivateCopy()->m_MiterLimit = limit; | 60 m_Ref.GetPrivateCopy()->m_MiterLimit = limit; |
61 } | 61 } |
OLD | NEW |