Index: cc/BUILD.gn |
diff --git a/cc/BUILD.gn b/cc/BUILD.gn |
index b35560ade8cbb4edf7332a07377421a369b98bdf..ce3def93cb5c63750071b56c4c7559e9f870f423 100644 |
--- a/cc/BUILD.gn |
+++ b/cc/BUILD.gn |
@@ -535,6 +535,7 @@ component("cc") { |
deps = [ |
"//base", |
"//base/third_party/dynamic_annotations", |
+ "//cc:cc_opts", |
"//cc/surfaces:surface_id", |
"//gpu", |
"//gpu/command_buffer/client:gles2_interface", |
@@ -552,6 +553,34 @@ component("cc") { |
} |
} |
+source_set("cc_opts") { |
+ deps = [ |
+ "//cc:cc_opts_sse", |
+ ] |
+} |
+ |
+source_set("cc_opts_sse") { |
+ if (target_cpu == "ia32" || target_cpu == "x64") { |
+ deps = [ |
+ "//base", |
+ ] |
+ |
+ defines = [ "CC_IMPLEMENTATION=1" ] |
+ |
+ if (!is_debug && (is_win || is_android)) { |
+ configs -= [ "//build/config/compiler:optimize" ] |
+ configs += [ "//build/config/compiler:optimize_max" ] |
+ } |
+ |
+ sources = [ |
+ "resources/texture_compressor_etc1_sse.cc", |
+ "resources/texture_compressor_etc1_sse.h", |
+ ] |
+ |
+ cflags = [ "-msse2" ] |
+ } |
+} |
+ |
source_set("test_support") { |
testonly = true |
sources = [ |
@@ -807,6 +836,7 @@ test("cc_unittests") { |
"resources/scoped_gpu_raster_unittest.cc", |
"resources/scoped_resource_unittest.cc", |
"resources/task_graph_runner_unittest.cc", |
+ "resources/texture_compressor_etc1_unittest.cc", |
"resources/texture_mailbox_deleter_unittest.cc", |
"resources/texture_uploader_unittest.cc", |
"resources/tile_manager_unittest.cc", |