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

Unified Diff: core/fxge/ge/cfx_graphstatedata.cpp

Issue 2223213002: Refactor fx_ge part 3 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fxge/dib/fx_dib_main.cpp ('k') | core/fxge/ge/cfx_pathdata.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fxge/ge/cfx_graphstatedata.cpp
diff --git a/core/fxge/ge/fx_ge_path.cpp b/core/fxge/ge/cfx_graphstatedata.cpp
similarity index 88%
rename from core/fxge/ge/fx_ge_path.cpp
rename to core/fxge/ge/cfx_graphstatedata.cpp
index e0e30b88704b3e6cfeef98f07a52975b925c4b95..0a5b5e301c4e9ee1009469519d10c68d5494bea3 100644
--- a/core/fxge/ge/fx_ge_path.cpp
+++ b/core/fxge/ge/cfx_graphstatedata.cpp
@@ -1,11 +1,13 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
+// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+#include "core/fxge/include/cfx_graphstatedata.h"
+
+#include "core/fxcrt/include/fx_memory.h"
#include "core/fxcrt/include/fx_system.h"
-#include "core/fxge/include/fx_ge.h"
CFX_GraphStateData::CFX_GraphStateData()
: m_LineCap(LineCapButt),
@@ -44,8 +46,7 @@ void CFX_GraphStateData::SetDashCount(int count) {
FX_Free(m_DashArray);
m_DashArray = nullptr;
m_DashCount = count;
- if (count == 0) {
+ if (count == 0)
return;
- }
m_DashArray = FX_Alloc(FX_FLOAT, count);
}
« no previous file with comments | « core/fxge/dib/fx_dib_main.cpp ('k') | core/fxge/ge/cfx_pathdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698