Move core/fxge/ge to core/fxge.

This brings the cpp and h files together and removes the
redundant ge/ path.

Change-Id: I36594b8ae719d362768ba4c2e4ce173e287363eb
Reviewed-on: https://pdfium-review.googlesource.com/7452
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index e99cc86..fff58b3 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -930,19 +930,37 @@
     "core/fxge/android/cfx_androidfontinfo.cpp",
     "core/fxge/android/cfx_androidfontinfo.h",
     "core/fxge/android/fx_android_imp.cpp",
+    "core/fxge/cfx_cliprgn.cpp",
+    "core/fxge/cfx_cliprgn.h",
     "core/fxge/cfx_defaultrenderdevice.h",
+    "core/fxge/cfx_facecache.cpp",
     "core/fxge/cfx_facecache.h",
+    "core/fxge/cfx_folderfontinfo.cpp",
+    "core/fxge/cfx_folderfontinfo.h",
+    "core/fxge/cfx_font.cpp",
+    "core/fxge/cfx_fontcache.cpp",
     "core/fxge/cfx_fontcache.h",
+    "core/fxge/cfx_fontmapper.cpp",
     "core/fxge/cfx_fontmapper.h",
+    "core/fxge/cfx_fontmgr.cpp",
     "core/fxge/cfx_fontmgr.h",
+    "core/fxge/cfx_gemodule.cpp",
     "core/fxge/cfx_gemodule.h",
+    "core/fxge/cfx_graphstate.cpp",
     "core/fxge/cfx_graphstate.h",
+    "core/fxge/cfx_graphstatedata.cpp",
     "core/fxge/cfx_graphstatedata.h",
+    "core/fxge/cfx_pathdata.cpp",
     "core/fxge/cfx_pathdata.h",
+    "core/fxge/cfx_renderdevice.cpp",
     "core/fxge/cfx_renderdevice.h",
+    "core/fxge/cfx_substfont.cpp",
     "core/fxge/cfx_substfont.h",
+    "core/fxge/cfx_unicodeencoding.cpp",
     "core/fxge/cfx_unicodeencoding.h",
     "core/fxge/cfx_windowsrenderdevice.h",
+    "core/fxge/cttfontdesc.cpp",
+    "core/fxge/cttfontdesc.h",
     "core/fxge/dib/cfx_bitmapcomposer.cpp",
     "core/fxge/dib/cfx_bitmapcomposer.h",
     "core/fxge/dib/cfx_bitmapstorer.cpp",
@@ -988,28 +1006,10 @@
     "core/fxge/fx_dib.h",
     "core/fxge/fx_font.h",
     "core/fxge/fx_freetype.h",
-    "core/fxge/ge/cfx_cliprgn.cpp",
-    "core/fxge/ge/cfx_cliprgn.h",
-    "core/fxge/ge/cfx_facecache.cpp",
-    "core/fxge/ge/cfx_folderfontinfo.cpp",
-    "core/fxge/ge/cfx_folderfontinfo.h",
-    "core/fxge/ge/cfx_font.cpp",
-    "core/fxge/ge/cfx_fontcache.cpp",
-    "core/fxge/ge/cfx_fontmapper.cpp",
-    "core/fxge/ge/cfx_fontmgr.cpp",
-    "core/fxge/ge/cfx_gemodule.cpp",
-    "core/fxge/ge/cfx_graphstate.cpp",
-    "core/fxge/ge/cfx_graphstatedata.cpp",
-    "core/fxge/ge/cfx_pathdata.cpp",
-    "core/fxge/ge/cfx_renderdevice.cpp",
-    "core/fxge/ge/cfx_substfont.cpp",
-    "core/fxge/ge/cfx_unicodeencoding.cpp",
-    "core/fxge/ge/cttfontdesc.cpp",
-    "core/fxge/ge/cttfontdesc.h",
-    "core/fxge/ge/fx_ge_fontmap.cpp",
-    "core/fxge/ge/fx_ge_linux.cpp",
-    "core/fxge/ge/fx_ge_text.cpp",
-    "core/fxge/ge/fx_text_int.h",
+    "core/fxge/fx_ge_fontmap.cpp",
+    "core/fxge/fx_ge_linux.cpp",
+    "core/fxge/fx_ge_text.cpp",
+    "core/fxge/fx_text_int.h",
     "core/fxge/ifx_renderdevicedriver.cpp",
     "core/fxge/ifx_renderdevicedriver.h",
     "core/fxge/ifx_systemfontinfo.h",
@@ -1029,8 +1029,8 @@
 
   if (pdf_enable_xfa) {
     sources += [
+      "core/fxge/cfx_unicodeencodingex.cpp",
       "core/fxge/cfx_unicodeencodingex.h",
-      "core/fxge/ge/cfx_unicodeencodingex.cpp",
     ]
   }
 
@@ -2000,7 +2000,7 @@
     "core/fpdfapi/render/fpdf_render_loadimage_embeddertest.cpp",
     "core/fpdfapi/render/fpdf_render_pattern_embeddertest.cpp",
     "core/fxcodec/codec/fx_codec_embeddertest.cpp",
-    "core/fxge/ge/fx_ge_text_embeddertest.cpp",
+    "core/fxge/fx_ge_text_embeddertest.cpp",
     "fpdfsdk/fpdf_dataavail_embeddertest.cpp",
     "fpdfsdk/fpdf_flatten_embeddertest.cpp",
     "fpdfsdk/fpdf_structtree_embeddertest.cpp",
diff --git a/core/fxge/agg/fx_agg_driver.cpp b/core/fxge/agg/fx_agg_driver.cpp
index 855ea2a..8469202 100644
--- a/core/fxge/agg/fx_agg_driver.cpp
+++ b/core/fxge/agg/fx_agg_driver.cpp
@@ -10,12 +10,12 @@
 #include <utility>
 
 #include "core/fxcodec/fx_codec.h"
+#include "core/fxge/cfx_cliprgn.h"
 #include "core/fxge/cfx_defaultrenderdevice.h"
 #include "core/fxge/cfx_graphstatedata.h"
 #include "core/fxge/cfx_pathdata.h"
 #include "core/fxge/dib/cfx_imagerenderer.h"
 #include "core/fxge/dib/cfx_imagestretcher.h"
-#include "core/fxge/ge/cfx_cliprgn.h"
 #include "third_party/agg23/agg_conv_dash.h"
 #include "third_party/agg23/agg_conv_stroke.h"
 #include "third_party/agg23/agg_curves.h"
diff --git a/core/fxge/apple/fx_apple_platform.cpp b/core/fxge/apple/fx_apple_platform.cpp
index 1a56b18..56b15b3 100644
--- a/core/fxge/apple/fx_apple_platform.cpp
+++ b/core/fxge/apple/fx_apple_platform.cpp
@@ -13,12 +13,12 @@
 #endif
 
 #include "core/fxge/apple/apple_int.h"
+#include "core/fxge/cfx_cliprgn.h"
 #include "core/fxge/cfx_facecache.h"
 #include "core/fxge/cfx_gemodule.h"
 #include "core/fxge/cfx_renderdevice.h"
 #include "core/fxge/fx_freetype.h"
-#include "core/fxge/ge/cfx_cliprgn.h"
-#include "core/fxge/ge/fx_text_int.h"
+#include "core/fxge/fx_text_int.h"
 
 #ifndef _SKIA_SUPPORT_
 
diff --git a/core/fxge/apple/fx_mac_imp.cpp b/core/fxge/apple/fx_mac_imp.cpp
index ced08d2..78fe164 100644
--- a/core/fxge/apple/fx_mac_imp.cpp
+++ b/core/fxge/apple/fx_mac_imp.cpp
@@ -9,8 +9,8 @@
 
 #include "core/fxcrt/fx_codepage.h"
 #include "core/fxge/apple/apple_int.h"
+#include "core/fxge/cfx_folderfontinfo.h"
 #include "core/fxge/cfx_gemodule.h"
-#include "core/fxge/ge/cfx_folderfontinfo.h"
 #include "core/fxge/ifx_systemfontinfo.h"
 #include "third_party/base/ptr_util.h"
 
diff --git a/core/fxge/apple/fx_quartz_device.cpp b/core/fxge/apple/fx_quartz_device.cpp
index ad09f91..f92db2b 100644
--- a/core/fxge/apple/fx_quartz_device.cpp
+++ b/core/fxge/apple/fx_quartz_device.cpp
@@ -15,7 +15,7 @@
 #include "core/fxge/cfx_pathdata.h"
 #include "core/fxge/cfx_renderdevice.h"
 #include "core/fxge/fx_freetype.h"
-#include "core/fxge/ge/fx_text_int.h"
+#include "core/fxge/fx_text_int.h"
 #include "third_party/base/ptr_util.h"
 
 #include "core/fxge/apple/apple_int.h"
diff --git a/core/fxge/ge/cfx_cliprgn.cpp b/core/fxge/cfx_cliprgn.cpp
similarity index 98%
rename from core/fxge/ge/cfx_cliprgn.cpp
rename to core/fxge/cfx_cliprgn.cpp
index e00cb7c..087c110 100644
--- a/core/fxge/ge/cfx_cliprgn.cpp
+++ b/core/fxge/cfx_cliprgn.cpp
@@ -4,7 +4,7 @@
 
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
-#include "core/fxge/ge/cfx_cliprgn.h"
+#include "core/fxge/cfx_cliprgn.h"
 
 #include <utility>
 
diff --git a/core/fxge/ge/cfx_cliprgn.h b/core/fxge/cfx_cliprgn.h
similarity index 90%
rename from core/fxge/ge/cfx_cliprgn.h
rename to core/fxge/cfx_cliprgn.h
index 800e6dd..866af9b 100644
--- a/core/fxge/ge/cfx_cliprgn.h
+++ b/core/fxge/cfx_cliprgn.h
@@ -4,8 +4,8 @@
 
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
-#ifndef CORE_FXGE_GE_CFX_CLIPRGN_H_
-#define CORE_FXGE_GE_CFX_CLIPRGN_H_
+#ifndef CORE_FXGE_CFX_CLIPRGN_H_
+#define CORE_FXGE_CFX_CLIPRGN_H_
 
 #include "core/fxcrt/fx_coordinates.h"
 
@@ -39,4 +39,4 @@
   CFX_RetainPtr<CFX_DIBitmap> m_Mask;
 };
 
-#endif  // CORE_FXGE_GE_CFX_CLIPRGN_H_
+#endif  // CORE_FXGE_CFX_CLIPRGN_H_
diff --git a/core/fxge/ge/cfx_facecache.cpp b/core/fxge/cfx_facecache.cpp
similarity index 99%
rename from core/fxge/ge/cfx_facecache.cpp
rename to core/fxge/cfx_facecache.cpp
index e675e11..eac2807 100644
--- a/core/fxge/ge/cfx_facecache.cpp
+++ b/core/fxge/cfx_facecache.cpp
@@ -17,7 +17,7 @@
 #include "core/fxge/cfx_pathdata.h"
 #include "core/fxge/cfx_substfont.h"
 #include "core/fxge/fx_freetype.h"
-#include "core/fxge/ge/fx_text_int.h"
+#include "core/fxge/fx_text_int.h"
 #include "third_party/base/numerics/safe_math.h"
 #include "third_party/base/ptr_util.h"
 
@@ -88,8 +88,7 @@
 {
 }
 
-CFX_FaceCache::~CFX_FaceCache() {
-}
+CFX_FaceCache::~CFX_FaceCache() {}
 
 std::unique_ptr<CFX_GlyphBitmap> CFX_FaceCache::RenderGlyph(
     const CFX_Font* pFont,
diff --git a/core/fxge/ge/cfx_folderfontinfo.cpp b/core/fxge/cfx_folderfontinfo.cpp
similarity index 99%
rename from core/fxge/ge/cfx_folderfontinfo.cpp
rename to core/fxge/cfx_folderfontinfo.cpp
index a13af06..12e7dd2 100644
--- a/core/fxge/ge/cfx_folderfontinfo.cpp
+++ b/core/fxge/cfx_folderfontinfo.cpp
@@ -4,7 +4,7 @@
 
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
-#include "core/fxge/ge/cfx_folderfontinfo.h"
+#include "core/fxge/cfx_folderfontinfo.h"
 
 #include <limits>
 #include <utility>
diff --git a/core/fxge/ge/cfx_folderfontinfo.h b/core/fxge/cfx_folderfontinfo.h
similarity index 93%
rename from core/fxge/ge/cfx_folderfontinfo.h
rename to core/fxge/cfx_folderfontinfo.h
index ad363b5..82ed902 100644
--- a/core/fxge/ge/cfx_folderfontinfo.h
+++ b/core/fxge/cfx_folderfontinfo.h
@@ -4,8 +4,8 @@
 
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
-#ifndef CORE_FXGE_GE_CFX_FOLDERFONTINFO_H_
-#define CORE_FXGE_GE_CFX_FOLDERFONTINFO_H_
+#ifndef CORE_FXGE_CFX_FOLDERFONTINFO_H_
+#define CORE_FXGE_CFX_FOLDERFONTINFO_H_
 
 #include <map>
 #include <memory>
@@ -66,4 +66,4 @@
   CFX_UnownedPtr<CFX_FontMapper> m_pMapper;
 };
 
-#endif  // CORE_FXGE_GE_CFX_FOLDERFONTINFO_H_
+#endif  // CORE_FXGE_CFX_FOLDERFONTINFO_H_
diff --git a/core/fxge/ge/cfx_font.cpp b/core/fxge/cfx_font.cpp
similarity index 98%
rename from core/fxge/ge/cfx_font.cpp
rename to core/fxge/cfx_font.cpp
index 144675c..a8e271d 100644
--- a/core/fxge/ge/cfx_font.cpp
+++ b/core/fxge/cfx_font.cpp
@@ -21,7 +21,7 @@
 #include "core/fxge/cfx_pathdata.h"
 #include "core/fxge/cfx_substfont.h"
 #include "core/fxge/fx_freetype.h"
-#include "core/fxge/ge/fx_text_int.h"
+#include "core/fxge/fx_text_int.h"
 #include "third_party/base/ptr_util.h"
 
 #define EM_ADJUST(em, a) (em == 0 ? (a) : (a)*1000 / em)
@@ -560,9 +560,8 @@
       FXFT_Free(m_Face, pMasters);
       return;
     }
-    int param = min_param +
-                (max_param - min_param) * (dest_width - min_width) /
-                    (max_width - min_width);
+    int param = min_param + (max_param - min_param) * (dest_width - min_width) /
+                                (max_width - min_width);
     coords[1] = param;
   }
   FXFT_Free(m_Face, pMasters);
diff --git a/core/fxge/ge/cfx_fontcache.cpp b/core/fxge/cfx_fontcache.cpp
similarity index 100%
rename from core/fxge/ge/cfx_fontcache.cpp
rename to core/fxge/cfx_fontcache.cpp
diff --git a/core/fxge/ge/cfx_fontmapper.cpp b/core/fxge/cfx_fontmapper.cpp
similarity index 100%
rename from core/fxge/ge/cfx_fontmapper.cpp
rename to core/fxge/cfx_fontmapper.cpp
diff --git a/core/fxge/ge/cfx_fontmgr.cpp b/core/fxge/cfx_fontmgr.cpp
similarity index 99%
rename from core/fxge/ge/cfx_fontmgr.cpp
rename to core/fxge/cfx_fontmgr.cpp
index ec184ae..c8beb51 100644
--- a/core/fxge/ge/cfx_fontmgr.cpp
+++ b/core/fxge/cfx_fontmgr.cpp
@@ -11,9 +11,9 @@
 
 #include "core/fxge/cfx_fontmapper.h"
 #include "core/fxge/cfx_substfont.h"
+#include "core/fxge/cttfontdesc.h"
 #include "core/fxge/fontdata/chromefontdata/chromefontdata.h"
 #include "core/fxge/fx_font.h"
-#include "core/fxge/ge/cttfontdesc.h"
 #include "core/fxge/ifx_systemfontinfo.h"
 #include "third_party/base/ptr_util.h"
 
diff --git a/core/fxge/ge/cfx_gemodule.cpp b/core/fxge/cfx_gemodule.cpp
similarity index 93%
rename from core/fxge/ge/cfx_gemodule.cpp
rename to core/fxge/cfx_gemodule.cpp
index 4516d61..a28a882 100644
--- a/core/fxge/ge/cfx_gemodule.cpp
+++ b/core/fxge/cfx_gemodule.cpp
@@ -6,10 +6,10 @@
 
 #include "core/fxge/cfx_gemodule.h"
 
+#include "core/fxge/cfx_folderfontinfo.h"
 #include "core/fxge/cfx_fontcache.h"
 #include "core/fxge/cfx_fontmgr.h"
-#include "core/fxge/ge/cfx_folderfontinfo.h"
-#include "core/fxge/ge/fx_text_int.h"
+#include "core/fxge/fx_text_int.h"
 #include "third_party/base/ptr_util.h"
 
 namespace {
diff --git a/core/fxge/ge/cfx_graphstate.cpp b/core/fxge/cfx_graphstate.cpp
similarity index 100%
rename from core/fxge/ge/cfx_graphstate.cpp
rename to core/fxge/cfx_graphstate.cpp
diff --git a/core/fxge/ge/cfx_graphstatedata.cpp b/core/fxge/cfx_graphstatedata.cpp
similarity index 100%
rename from core/fxge/ge/cfx_graphstatedata.cpp
rename to core/fxge/cfx_graphstatedata.cpp
diff --git a/core/fxge/ge/cfx_pathdata.cpp b/core/fxge/cfx_pathdata.cpp
similarity index 100%
rename from core/fxge/ge/cfx_pathdata.cpp
rename to core/fxge/cfx_pathdata.cpp
diff --git a/core/fxge/ge/cfx_renderdevice.cpp b/core/fxge/cfx_renderdevice.cpp
similarity index 98%
rename from core/fxge/ge/cfx_renderdevice.cpp
rename to core/fxge/cfx_renderdevice.cpp
index 34c9744..266ae50 100644
--- a/core/fxge/ge/cfx_renderdevice.cpp
+++ b/core/fxge/cfx_renderdevice.cpp
@@ -427,16 +427,16 @@
     int width,
     int height) const {
   if (m_RenderCaps & FXRC_CMYK_OUTPUT) {
-    return pDIB->Create(width, height, m_RenderCaps & FXRC_ALPHA_OUTPUT
-                                           ? FXDIB_Cmyka
-                                           : FXDIB_Cmyk);
+    return pDIB->Create(
+        width, height,
+        m_RenderCaps & FXRC_ALPHA_OUTPUT ? FXDIB_Cmyka : FXDIB_Cmyk);
   }
   if (m_RenderCaps & FXRC_BYTEMASK_OUTPUT)
     return pDIB->Create(width, height, FXDIB_8bppMask);
 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ || defined _SKIA_SUPPORT_PATHS_
-  return pDIB->Create(width, height, m_RenderCaps & FXRC_ALPHA_OUTPUT
-                                         ? FXDIB_Argb
-                                         : FXDIB_Rgb32);
+  return pDIB->Create(
+      width, height,
+      m_RenderCaps & FXRC_ALPHA_OUTPUT ? FXDIB_Argb : FXDIB_Rgb32);
 #else
   return pDIB->Create(
       width, height, m_RenderCaps & FXRC_ALPHA_OUTPUT ? FXDIB_Argb : FXDIB_Rgb);
diff --git a/core/fxge/ge/cfx_substfont.cpp b/core/fxge/cfx_substfont.cpp
similarity index 100%
rename from core/fxge/ge/cfx_substfont.cpp
rename to core/fxge/cfx_substfont.cpp
diff --git a/core/fxge/ge/cfx_unicodeencoding.cpp b/core/fxge/cfx_unicodeencoding.cpp
similarity index 100%
rename from core/fxge/ge/cfx_unicodeencoding.cpp
rename to core/fxge/cfx_unicodeencoding.cpp
diff --git a/core/fxge/ge/cfx_unicodeencodingex.cpp b/core/fxge/cfx_unicodeencodingex.cpp
similarity index 100%
rename from core/fxge/ge/cfx_unicodeencodingex.cpp
rename to core/fxge/cfx_unicodeencodingex.cpp
diff --git a/core/fxge/ge/cttfontdesc.cpp b/core/fxge/cttfontdesc.cpp
similarity index 95%
rename from core/fxge/ge/cttfontdesc.cpp
rename to core/fxge/cttfontdesc.cpp
index f750395..cf900a8 100644
--- a/core/fxge/ge/cttfontdesc.cpp
+++ b/core/fxge/cttfontdesc.cpp
@@ -4,7 +4,7 @@
 
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
-#include "core/fxge/ge/cttfontdesc.h"
+#include "core/fxge/cttfontdesc.h"
 
 #include "core/fxge/fx_freetype.h"
 
diff --git a/core/fxge/ge/cttfontdesc.h b/core/fxge/cttfontdesc.h
similarity index 89%
rename from core/fxge/ge/cttfontdesc.h
rename to core/fxge/cttfontdesc.h
index d756cb9..6eb3636 100644
--- a/core/fxge/ge/cttfontdesc.h
+++ b/core/fxge/cttfontdesc.h
@@ -4,8 +4,8 @@
 
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
-#ifndef CORE_FXGE_GE_CTTFONTDESC_H_
-#define CORE_FXGE_GE_CTTFONTDESC_H_
+#ifndef CORE_FXGE_CTTFONTDESC_H_
+#define CORE_FXGE_CTTFONTDESC_H_
 
 #include "core/fxcrt/fx_system.h"
 #include "core/fxge/fx_font.h"
@@ -37,4 +37,4 @@
   int m_RefCount;
 };
 
-#endif  // CORE_FXGE_GE_CTTFONTDESC_H_
+#endif  // CORE_FXGE_CTTFONTDESC_H_
diff --git a/core/fxge/dib/cfx_bitmapcomposer.cpp b/core/fxge/dib/cfx_bitmapcomposer.cpp
index 3f75fae..8664606 100644
--- a/core/fxge/dib/cfx_bitmapcomposer.cpp
+++ b/core/fxge/dib/cfx_bitmapcomposer.cpp
@@ -7,8 +7,8 @@
 #include "core/fxge/dib/cfx_bitmapcomposer.h"
 
 #include "core/fxcodec/fx_codec.h"
+#include "core/fxge/cfx_cliprgn.h"
 #include "core/fxge/dib/cfx_dibitmap.h"
-#include "core/fxge/ge/cfx_cliprgn.h"
 
 CFX_BitmapComposer::CFX_BitmapComposer()
     : m_bRgbByteOrder(false), m_BlendType(FXDIB_BLEND_NORMAL) {}
diff --git a/core/fxge/dib/cfx_dibitmap.cpp b/core/fxge/dib/cfx_dibitmap.cpp
index 43b0da0..02c3543 100644
--- a/core/fxge/dib/cfx_dibitmap.cpp
+++ b/core/fxge/dib/cfx_dibitmap.cpp
@@ -11,8 +11,8 @@
 #include <utility>
 
 #include "core/fxcodec/fx_codec.h"
+#include "core/fxge/cfx_cliprgn.h"
 #include "core/fxge/dib/cfx_scanlinecompositor.h"
-#include "core/fxge/ge/cfx_cliprgn.h"
 #include "third_party/base/ptr_util.h"
 
 #define MAX_OOM_LIMIT 12000000
diff --git a/core/fxge/dib/cfx_dibsource.cpp b/core/fxge/dib/cfx_dibsource.cpp
index 458baa5..e19619d 100644
--- a/core/fxge/dib/cfx_dibsource.cpp
+++ b/core/fxge/dib/cfx_dibsource.cpp
@@ -12,11 +12,11 @@
 #include <vector>
 
 #include "core/fxcodec/fx_codec.h"
+#include "core/fxge/cfx_cliprgn.h"
 #include "core/fxge/dib/cfx_bitmapstorer.h"
 #include "core/fxge/dib/cfx_dibitmap.h"
 #include "core/fxge/dib/cfx_imagestretcher.h"
 #include "core/fxge/dib/cfx_imagetransformer.h"
-#include "core/fxge/ge/cfx_cliprgn.h"
 #include "third_party/base/logging.h"
 #include "third_party/base/ptr_util.h"
 
diff --git a/core/fxge/dib/cfx_imagerenderer.cpp b/core/fxge/dib/cfx_imagerenderer.cpp
index db3fe02..6448014 100644
--- a/core/fxge/dib/cfx_imagerenderer.cpp
+++ b/core/fxge/dib/cfx_imagerenderer.cpp
@@ -8,9 +8,9 @@
 
 #include <memory>
 
+#include "core/fxge/cfx_cliprgn.h"
 #include "core/fxge/dib/cfx_imagestretcher.h"
 #include "core/fxge/dib/cfx_imagetransformer.h"
-#include "core/fxge/ge/cfx_cliprgn.h"
 #include "third_party/base/ptr_util.h"
 
 CFX_ImageRenderer::CFX_ImageRenderer(
diff --git a/core/fxge/ge/fx_ge_fontmap.cpp b/core/fxge/fx_ge_fontmap.cpp
similarity index 100%
rename from core/fxge/ge/fx_ge_fontmap.cpp
rename to core/fxge/fx_ge_fontmap.cpp
diff --git a/core/fxge/ge/fx_ge_linux.cpp b/core/fxge/fx_ge_linux.cpp
similarity index 98%
rename from core/fxge/ge/fx_ge_linux.cpp
rename to core/fxge/fx_ge_linux.cpp
index 4e4b205..d9fac3f 100644
--- a/core/fxge/ge/fx_ge_linux.cpp
+++ b/core/fxge/fx_ge_linux.cpp
@@ -8,8 +8,8 @@
 #include <utility>
 
 #include "core/fxcrt/fx_codepage.h"
+#include "core/fxge/cfx_folderfontinfo.h"
 #include "core/fxge/cfx_gemodule.h"
-#include "core/fxge/ge/cfx_folderfontinfo.h"
 #include "core/fxge/ifx_systemfontinfo.h"
 #include "third_party/base/ptr_util.h"
 
diff --git a/core/fxge/ge/fx_ge_text.cpp b/core/fxge/fx_ge_text.cpp
similarity index 98%
rename from core/fxge/ge/fx_ge_text.cpp
rename to core/fxge/fx_ge_text.cpp
index 8024452..0832f7a 100644
--- a/core/fxge/ge/fx_ge_text.cpp
+++ b/core/fxge/fx_ge_text.cpp
@@ -12,7 +12,7 @@
 #include "core/fxcrt/fx_safe_types.h"
 #include "core/fxge/cfx_pathdata.h"
 #include "core/fxge/fx_freetype.h"
-#include "core/fxge/ge/fx_text_int.h"
+#include "core/fxge/fx_text_int.h"
 #include "core/fxge/ifx_renderdevicedriver.h"
 
 namespace {
diff --git a/core/fxge/ge/fx_ge_text_embeddertest.cpp b/core/fxge/fx_ge_text_embeddertest.cpp
similarity index 100%
rename from core/fxge/ge/fx_ge_text_embeddertest.cpp
rename to core/fxge/fx_ge_text_embeddertest.cpp
diff --git a/core/fxge/ge/fx_text_int.h b/core/fxge/fx_text_int.h
similarity index 84%
rename from core/fxge/ge/fx_text_int.h
rename to core/fxge/fx_text_int.h
index dcd54ce..6af8eb9 100644
--- a/core/fxge/ge/fx_text_int.h
+++ b/core/fxge/fx_text_int.h
@@ -4,8 +4,8 @@
 
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
-#ifndef CORE_FXGE_GE_FX_TEXT_INT_H_
-#define CORE_FXGE_GE_FX_TEXT_INT_H_
+#ifndef CORE_FXGE_FX_TEXT_INT_H_
+#define CORE_FXGE_FX_TEXT_INT_H_
 
 #include <map>
 #include <memory>
@@ -28,4 +28,4 @@
   std::map<uint32_t, std::unique_ptr<CFX_GlyphBitmap>> m_GlyphMap;
 };
 
-#endif  // CORE_FXGE_GE_FX_TEXT_INT_H_
+#endif  // CORE_FXGE_FX_TEXT_INT_H_
diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp
index d56ac11..40b1ccb 100644
--- a/core/fxge/skia/fx_skia_device.cpp
+++ b/core/fxge/skia/fx_skia_device.cpp
@@ -40,7 +40,7 @@
 #include "third_party/skia/include/pathops/SkPathOps.h"
 
 #ifdef _SKIA_SUPPORT_PATHS_
-#include "core/fxge/ge/cfx_cliprgn.h"
+#include "core/fxge/cfx_cliprgn.h"
 #endif  // _SKIA_SUPPORT_PATHS_
 
 #ifdef _SKIA_SUPPORT_
diff --git a/core/fxge/win32/cfx_psrenderer.cpp b/core/fxge/win32/cfx_psrenderer.cpp
index b5260c1..c936553 100644
--- a/core/fxge/win32/cfx_psrenderer.cpp
+++ b/core/fxge/win32/cfx_psrenderer.cpp
@@ -17,7 +17,7 @@
 #include "core/fxge/cfx_pathdata.h"
 #include "core/fxge/cfx_renderdevice.h"
 #include "core/fxge/dib/cfx_dibextractor.h"
-#include "core/fxge/ge/fx_text_int.h"
+#include "core/fxge/fx_text_int.h"
 #include "core/fxge/win32/cpsoutput.h"
 #include "third_party/base/ptr_util.h"
 
diff --git a/core/fxge/win32/fx_win32_device.cpp b/core/fxge/win32/fx_win32_device.cpp
index f648118..ef3a7f2 100644
--- a/core/fxge/win32/fx_win32_device.cpp
+++ b/core/fxge/win32/fx_win32_device.cpp
@@ -15,6 +15,7 @@
 #include "core/fxcrt/fx_codepage.h"
 #include "core/fxcrt/fx_memory.h"
 #include "core/fxcrt/fx_system.h"
+#include "core/fxge/cfx_folderfontinfo.h"
 #include "core/fxge/cfx_gemodule.h"
 #include "core/fxge/cfx_windowsrenderdevice.h"
 #include "core/fxge/dib/cfx_dibextractor.h"
@@ -22,8 +23,7 @@
 #include "core/fxge/dib/cstretchengine.h"
 #include "core/fxge/fx_font.h"
 #include "core/fxge/fx_freetype.h"
-#include "core/fxge/ge/cfx_folderfontinfo.h"
-#include "core/fxge/ge/fx_text_int.h"
+#include "core/fxge/fx_text_int.h"
 #include "core/fxge/ifx_systemfontinfo.h"
 #include "core/fxge/win32/cfx_windowsdib.h"
 #include "core/fxge/win32/dwrite_int.h"
diff --git a/core/fxge/win32/fx_win32_dwrite.cpp b/core/fxge/win32/fx_win32_dwrite.cpp
index 91fb465..8b1786a 100644
--- a/core/fxge/win32/fx_win32_dwrite.cpp
+++ b/core/fxge/win32/fx_win32_dwrite.cpp
@@ -7,7 +7,7 @@
 #include <dwrite.h>
 
 #include "core/fxcrt/fx_system.h"
-#include "core/fxge/ge/cfx_cliprgn.h"
+#include "core/fxge/cfx_cliprgn.h"
 #include "core/fxge/win32/dwrite_int.h"
 
 typedef HRESULT(__stdcall* FuncType_DWriteCreateFactory)(
diff --git a/core/fxge/win32/fx_win32_print.cpp b/core/fxge/win32/fx_win32_print.cpp
index 8f7cbf5..d7444f4 100644
--- a/core/fxge/win32/fx_win32_print.cpp
+++ b/core/fxge/win32/fx_win32_print.cpp
@@ -16,7 +16,7 @@
 #include "core/fxge/dib/cfx_imagerenderer.h"
 #include "core/fxge/dib/cstretchengine.h"
 #include "core/fxge/fx_freetype.h"
-#include "core/fxge/ge/fx_text_int.h"
+#include "core/fxge/fx_text_int.h"
 #include "core/fxge/win32/cpsoutput.h"
 #include "core/fxge/win32/win32_int.h"
 #include "third_party/base/ptr_util.h"