Adds support for hittesting points on surface quads.
[chromium-blink-merge.git] / cc / surfaces / BUILD.gn
blob3345caa4ac280692a25d2d1618ee465b3bb2527c
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.
5 source_set("surface_id") {
6   sources = [
7     "surface_id.h",
8   ]
10   deps = [
11     "//base",
12   ]
15 component("surfaces") {
16   output_name = "cc_surfaces"
17   sources = [
18     "display.cc",
19     "display.h",
20     "display_client.h",
21     "display_scheduler.cc",
22     "display_scheduler.h",
23     "onscreen_display_client.cc",
24     "onscreen_display_client.h",
25     "surface.cc",
26     "surface.h",
27     "surface_aggregator.cc",
28     "surface_aggregator.h",
29     "surface_display_output_surface.cc",
30     "surface_display_output_surface.h",
31     "surface_factory.cc",
32     "surface_factory.h",
33     "surface_factory_client.h",
34     "surface_hittest.cc",
35     "surface_hittest.h",
36     "surface_id_allocator.cc",
37     "surface_id_allocator.h",
38     "surface_manager.cc",
39     "surface_manager.h",
40     "surface_resource_holder.cc",
41     "surface_resource_holder.h",
42     "surfaces_export.h",
43   ]
45   defines = [ "CC_SURFACES_IMPLEMENTATION=1" ]
47   deps = [
48     ":surface_id",
49     "//base",
50     "//base/third_party/dynamic_annotations",
51     "//cc",
52     "//gpu/command_buffer/client:gles2_interface",
53     "//skia",
54     "//ui/events:events_base",
55     "//ui/gfx",
56     "//ui/gfx/geometry",
57   ]
59   if (is_android && !is_debug) {
60     configs -= [ "//build/config/compiler:optimize" ]
61     configs += [ "//build/config/compiler:optimize_max" ]
62   }