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 import("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
6 | 6 |
7 source_set("gpu") { | 7 source_set("gpu") { |
8 sources = [ | 8 sources = [ |
9 "gl_context.cc", | 9 "gl_context.cc", |
10 "gl_context.h", | 10 "gl_context.h", |
11 "gl_context_owner.cc", | 11 "gl_context_owner.cc", |
12 "gl_context_owner.h", | 12 "gl_context_owner.h", |
13 "gl_texture.cc", | 13 "gl_texture.cc", |
14 "gl_texture.h", | 14 "gl_texture.h", |
15 "mojo_context_support.cc", | 15 "mojo_context_support.cc", |
16 "mojo_context_support.h", | 16 "mojo_context_support.h", |
17 "mojo_gles2_impl_autogen.cc", | 17 "mojo_gles2_impl_autogen.cc", |
18 "mojo_gles2_impl_autogen.h", | 18 "mojo_gles2_impl_autogen.h", |
19 "texture_cache.cc", | |
20 "texture_cache.h", | |
21 "texture_uploader.cc", | |
22 "texture_uploader.h", | |
23 ] | 19 ] |
24 | 20 |
25 public_deps = [ | 21 public_deps = [ |
26 "//mojo/public/c/gpu", | 22 "//mojo/public/c/gpu", |
27 ] | 23 ] |
28 | 24 |
29 deps = [ | 25 deps = [ |
30 "//base", | 26 "//base", |
31 "//gpu/command_buffer/client:gles2_interface", | 27 "//gpu/command_buffer/client:gles2_interface", |
32 "//gpu/command_buffer/common", | 28 "//gpu/command_buffer/common", |
33 "//mojo/environment:chromium", | 29 "//mojo/environment:chromium", |
34 "//mojo/public/c/gpu:gpu_onscreen", | 30 "//mojo/public/c/gpu:gpu_onscreen", |
35 "//mojo/public/c/system", | 31 "//mojo/public/c/system", |
36 "//mojo/public/cpp/application", | 32 "//mojo/public/cpp/application", |
37 "//mojo/public/cpp/bindings", | 33 "//mojo/public/cpp/bindings", |
38 "//mojo/public/cpp/environment", | 34 "//mojo/public/cpp/environment", |
39 "//mojo/public/cpp/system", | 35 "//mojo/public/cpp/system", |
40 "//mojo/public/cpp/utility", | 36 "//mojo/public/cpp/utility", |
41 "//mojo/public/interfaces/application", | 37 "//mojo/public/interfaces/application", |
42 "//mojo/services/geometry/cpp", | 38 "//mojo/services/geometry/cpp", |
43 "//mojo/services/geometry/interfaces", | 39 "//mojo/services/geometry/interfaces", |
44 "//mojo/services/gpu/interfaces", | 40 "//mojo/services/gpu/interfaces", |
45 "//mojo/services/surfaces/cpp", | |
46 "//mojo/services/surfaces/interfaces", | |
47 "//mojo/services/surfaces/interfaces:surface_id", | |
48 ] | 41 ] |
49 } | 42 } |
50 | |
51 mojo_native_application("apptests") { | |
52 output_name = "texture_apptests" | |
53 | |
54 testonly = true | |
55 | |
56 sources = [ | |
57 "texture_cache_unittest.cc", | |
58 "texture_uploader_unittest.cc", | |
59 ] | |
60 | |
61 deps = [ | |
62 ":gpu", | |
63 "//base", | |
64 "//mojo/application", | |
65 "//mojo/application:test_support", | |
66 "//mojo/public/cpp/bindings:callback", | |
67 "//mojo/services/geometry/interfaces", | |
68 "//mojo/services/surfaces/interfaces:surface_id", | |
69 "//testing/gtest", | |
70 ] | |
71 } | |
OLD | NEW |