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

Unified Diff: cc/BUILD.gn

Issue 1096703002: Reland: Add ETC1 powered SSE encoder for tile texture compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comments, casts and other minor issues. Created 5 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 | « AUTHORS ('k') | cc/cc.gyp » ('j') | cc/resources/texture_compressor.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/BUILD.gn
diff --git a/cc/BUILD.gn b/cc/BUILD.gn
index b35560ade8cbb4edf7332a07377421a369b98bdf..2c72e418e01aabe235a72e0231e6510861d433ec 100644
--- a/cc/BUILD.gn
+++ b/cc/BUILD.gn
@@ -550,6 +550,14 @@ component("cc") {
configs -= [ "//build/config/compiler:optimize" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
+
+ if (target_cpu == "ia32" || target_cpu == "x64") {
reveman 2015/05/07 16:26:29 Should we add "source_set("cc_opts_sse")" here and
radu.velea 2015/05/08 10:52:10 Done.
+ sources += [
+ "resources/texture_compressor_etc1_sse.cc",
+ "resources/texture_compressor_etc1_sse.h",
+ ]
+ cflags = [ "-msse2" ]
+ }
}
source_set("test_support") {
@@ -807,6 +815,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",
« no previous file with comments | « AUTHORS ('k') | cc/cc.gyp » ('j') | cc/resources/texture_compressor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698