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

Unified Diff: ui/gfx/BUILD.gn

Issue 2648043002: Create FP16 LUTs when needed (Closed)
Patch Set: mark all floats as floats (not doubles) Created 3 years, 11 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 | « cc/output/gl_renderer.cc ('k') | ui/gfx/half_float.h » ('j') | 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 f1fdaa7ce06e91a4ed7a0fe600b81911cc69fc80..b9f0a4a3a434eeae2907225b75dc8787e3f4b702 100644
--- a/ui/gfx/BUILD.gn
+++ b/ui/gfx/BUILD.gn
@@ -91,6 +91,8 @@ component("gfx") {
"gdi_util.h",
"gfx_paths.cc",
"gfx_paths.h",
+ "half_float.cc",
+ "half_float.h",
"icc_profile.cc",
"icc_profile.h",
"icc_profile_mac.mm",
@@ -439,6 +441,20 @@ source_set("color_space") {
]
}
+# Depend on this to use half_float.h without pulling in all of gfx.
+source_set("half_float") {
+ sources = [
+ "half_float.h",
+ ]
+
+ defines = [ "GFX_IMPLEMENTATION" ]
+
+ public_deps = [
+ ":gfx_export",
+ "//base",
+ ]
+}
+
# Depend on this to use native_widget_types.h without pulling in all of gfx.
source_set("native_widget_types") {
public = [
@@ -630,6 +646,7 @@ test("gfx_unittests") {
"geometry/size_unittest.cc",
"geometry/vector2d_unittest.cc",
"geometry/vector3d_unittest.cc",
+ "half_float_unittest.cc",
"icc_profile_unittest.cc",
"image/image_mac_unittest.mm",
"image/image_util_unittest.cc",
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | ui/gfx/half_float.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698