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

Unified Diff: ui/gfx/BUILD.gn

Issue 305993002: Update skia and ui GN builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gesture detection updates Created 6 years, 7 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 | « ui/events/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/BUILD.gn
diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn
index 776978865ca6f595e6284e2fd8e668b207b7f348..294704b796a214b31cbaf26354c5a78379bab044 100644
--- a/ui/gfx/BUILD.gn
+++ b/ui/gfx/BUILD.gn
@@ -156,12 +156,6 @@ component("gfx") {
"range/range.h",
"range/range_mac.mm",
"range/range_win.cc",
- "render_text.cc",
- "render_text.h",
- "render_text_mac.cc",
- "render_text_mac.h",
- "render_text_win.cc",
- "render_text_win.h",
"scoped_canvas.h",
"scoped_cg_context_save_gstate_mac.h",
"scoped_ns_graphics_context_save_gstate_mac.h",
@@ -199,7 +193,6 @@ component("gfx") {
"text_utils.h",
"text_utils_android.cc",
"text_utils_ios.mm",
- "text_utils_skia.cc",
"transform.cc",
"transform.h",
"transform_util.cc",
@@ -228,6 +221,7 @@ component("gfx") {
"//base:base_static",
"//base/third_party/dynamic_annotations",
"//skia",
+ "//third_party/harfbuzz-ng",
"//third_party/icu:icui18n",
"//third_party/icu:icuuc",
"//third_party/libpng",
@@ -235,6 +229,30 @@ component("gfx") {
"//ui/gfx/geometry",
]
+ # Text rendering conditions (complicated so separated out).
+ if (is_android || is_ios) {
+ # We don't support RenderText on these platforms.
+ } else {
+ # These text rendering files are supported everywhere text rendering is.
+ sources += [
+ "render_text.cc",
+ "render_text.h",
+ "render_text_harfbuzz.cc",
+ "render_text_harfbuzz.h",
+ "text_utils_skia.cc",
+ ]
+ # These are the "native" rendering routines, only one should apply.
+ if (is_win) {
+ sources += [ "render_text_win.cc" ]
+ } else if (is_mac) {
+ sources += [ "render_text_mac.cc" ]
+ } else if (use_pango) {
+ sources += [ "render_text_pango.cc" ]
+ } else if (use_ozone) {
+ sources += [ "render_text_ozone.cc" ]
+ }
+ }
+
# iOS.
if (is_ios) {
sources -= [
@@ -272,14 +290,6 @@ component("gfx") {
]
}
- if (is_android || is_ios) {
- sources -= [
- "render_text.cc",
- "render_text.h",
- "text_utils_skia.cc",
- ]
- }
-
# Windows.
if (is_win) {
cflags = [
@@ -305,7 +315,6 @@ component("gfx") {
if (use_ozone) {
sources += [
"platform_font_ozone.cc",
- "render_text_ozone.cc",
"ozone/impl/file_surface_factory.cc",
"ozone/impl/file_surface_factory.h",
"ozone/surface_factory_ozone.cc",
@@ -338,6 +347,7 @@ component("gfx") {
"nine_image_painter.cc",
"nine_image_painter.h",
"path_aura.cc",
+ "screen_aura.cc",
]
}
@@ -357,8 +367,6 @@ component("gfx") {
"pango_util.h",
"platform_font_pango.cc",
"platform_font_pango.h",
- "render_text_pango.cc",
- "render_text_pango.h",
]
configs += [ "//build/config/linux:pangocairo" ]
}
« no previous file with comments | « ui/events/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698