Index: ui/gfx/BUILD.gn |
diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn |
index 43a7d7aa360cd2fa0e61d42227c722f05986846c..3440c18b7826dd91a07a52ee427a08a043a5b585 100644 |
--- a/ui/gfx/BUILD.gn |
+++ b/ui/gfx/BUILD.gn |
@@ -326,6 +326,16 @@ component("gfx") { |
configs += [ "//build/config/linux:fontconfig" ] |
} |
+ # Chrome OS |
+ if (is_chromeos) { |
+ # Robust JPEG decoding for the login screen. |
+ sources += [ |
+ "chromeos/codec/jpeg_codec_robust_slow.cc", |
+ "chromeos/codec/jpeg_codec_robust_slow.h", |
+ ] |
+ deps += [ "//third_party/libjpeg" ] |
+ } |
+ |
if (!use_aura) { |
sources -= [ |
"path_aura.cc", |
@@ -501,6 +511,10 @@ test("gfx_unittests") { |
sources -= [ "nine_image_painter_unittest.cc" ] |
} |
+ if (is_chromeos) { |
+ sources += [ "chromeos/codec/jpeg_codec_robust_slow_unittest.cc" ] |
+ } |
+ |
if (is_win) { |
sources += [ |
"color_profile_win_unittest.cc", |