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

Side by Side Diff: core/fpdfapi/fpdf_page/cpdf_colorstate.cpp

Issue 2377393002: Move core/fxge/include to core/fxge (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/fpdfapi/fpdf_page/cpdf_allstates.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_generalstate.h » ('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 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/fpdfapi/fpdf_page/cpdf_colorstate.h" 7 #include "core/fpdfapi/fpdf_page/cpdf_colorstate.h"
8 8
9 #include "core/fpdfapi/fpdf_page/cpdf_pattern.h" 9 #include "core/fpdfapi/fpdf_page/cpdf_pattern.h"
10 #include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h" 10 #include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h"
11 #include "core/fxge/include/fx_dib.h" 11 #include "core/fxge/fx_dib.h"
12 12
13 CPDF_ColorState::CPDF_ColorState() {} 13 CPDF_ColorState::CPDF_ColorState() {}
14 14
15 CPDF_ColorState::CPDF_ColorState(const CPDF_ColorState& that) 15 CPDF_ColorState::CPDF_ColorState(const CPDF_ColorState& that)
16 : m_Ref(that.m_Ref) {} 16 : m_Ref(that.m_Ref) {}
17 17
18 CPDF_ColorState::~CPDF_ColorState() {} 18 CPDF_ColorState::~CPDF_ColorState() {}
19 19
20 void CPDF_ColorState::Emplace() { 20 void CPDF_ColorState::Emplace() {
21 m_Ref.Emplace(); 21 m_Ref.Emplace();
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 146
147 CPDF_ColorState::ColorData::~ColorData() {} 147 CPDF_ColorState::ColorData::~ColorData() {}
148 148
149 void CPDF_ColorState::ColorData::SetDefault() { 149 void CPDF_ColorState::ColorData::SetDefault() {
150 m_FillRGB = 0; 150 m_FillRGB = 0;
151 m_StrokeRGB = 0; 151 m_StrokeRGB = 0;
152 m_FillColor.SetColorSpace(CPDF_ColorSpace::GetStockCS(PDFCS_DEVICEGRAY)); 152 m_FillColor.SetColorSpace(CPDF_ColorSpace::GetStockCS(PDFCS_DEVICEGRAY));
153 m_StrokeColor.SetColorSpace(CPDF_ColorSpace::GetStockCS(PDFCS_DEVICEGRAY)); 153 m_StrokeColor.SetColorSpace(CPDF_ColorSpace::GetStockCS(PDFCS_DEVICEGRAY));
154 } 154 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_allstates.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_generalstate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698