1# Copyright 2014 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5component("surfaces") { 6 output_name = "cc_surfaces" 7 sources = [ 8 "display.cc", 9 "display.h", 10 "display_client.h", 11 "surface.cc", 12 "surface.h", 13 "surface_aggregator.cc", 14 "surface_aggregator.h", 15 "surface_factory.cc", 16 "surface_factory.h", 17 "surface_factory_client.h", 18 "surface_id.h", 19 "surface_id_allocator.cc", 20 "surface_id_allocator.h", 21 "surface_manager.cc", 22 "surface_manager.h", 23 "surface_resource_holder.cc", 24 "surface_resource_holder.h", 25 "surfaces_export.h", 26 ] 27 28 defines = [ "CC_SURFACES_IMPLEMENTATION=1" ] 29 30 deps = [ 31 "//base", 32 "//base/third_party/dynamic_annotations", 33 "//cc", 34 "//skia", 35 "//ui/gfx", 36 "//ui/gfx/geometry", 37 ] 38 39 if (is_android && !is_debug) { 40 configs -= [ "//build/config/compiler:optimize" ] 41 configs += [ "//build/config/compiler:optimize_max" ] 42 } 43} 44 45