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