| Index: cc/BUILD.gn
 | 
| diff --git a/cc/BUILD.gn b/cc/BUILD.gn
 | 
| index b35560ade8cbb4edf7332a07377421a369b98bdf..67f796d3b38df20f8778da4dad1f777b1ea2ceeb 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,36 @@ component("cc") {
 | 
|    }
 | 
|  }
 | 
|  
 | 
| +source_set("cc_opts") {
 | 
| +  public_deps = [
 | 
| +    "//cc:cc_opts_sse",
 | 
| +  ]
 | 
| +}
 | 
| +
 | 
| +source_set("cc_opts_sse") {
 | 
| +  if (target_cpu == "x86" || 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.h",
 | 
| +      "resources/texture_compressor_etc1.h",
 | 
| +      "resources/texture_compressor_etc1_sse.cc",
 | 
| +      "resources/texture_compressor_etc1_sse.h",
 | 
| +    ]
 | 
| +
 | 
| +    cflags = [ "-msse2" ]
 | 
| +  }
 | 
| +}
 | 
| +
 | 
|  source_set("test_support") {
 | 
|    testonly = true
 | 
|    sources = [
 | 
| @@ -807,6 +838,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",
 | 
| 
 |