OLD | NEW |
---|---|
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 # The files here go into the "gpu" component in a component build (with | 5 # The files here go into the "gpu" component in a component build (with |
6 # "command_buffer_common" just forwarding) and goes into a static library in | 6 # "command_buffer_common" just forwarding) and goes into a static library in |
7 # non-component build. This needs to match the GYP build which was likely an | 7 # non-component build. This needs to match the GYP build which was likely an |
8 # attempt to make larger components to help with loading. | 8 # attempt to make larger components to help with loading. |
9 import("//mojo/public/tools/bindings/mojom.gni") | 9 import("//mojo/public/tools/bindings/mojom.gni") |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 "value_state.cc", | 55 "value_state.cc", |
56 "value_state.h", | 56 "value_state.h", |
57 ] | 57 ] |
58 | 58 |
59 configs += [ "//gpu:gpu_implementation" ] | 59 configs += [ "//gpu:gpu_implementation" ] |
60 | 60 |
61 deps = [ | 61 deps = [ |
62 ":gles2_utils", | 62 ":gles2_utils", |
63 "//base", | 63 "//base", |
64 ] | 64 ] |
65 | |
66 # gpu_memory_buffer_support.cc includes //ui/gl/gl_bindings.h which doesn't | |
67 # compile on nacl. | |
piman
2016/04/04 20:49:10
Can you replace the include by <GLES2/gl2.h> and u
Peng
2016/04/04 20:54:35
gpu_memory_buffer_support.cc needs some chromium s
Peng
2016/04/06 14:28:54
Done.
| |
68 if (!is_nacl) { | |
69 sources += [ | |
70 "gpu_memory_buffer_support.cc", | |
71 "gpu_memory_buffer_support.h", | |
72 ] | |
73 public_deps = [ | |
74 "//ui/gfx", | |
75 "//ui/gfx/geometry", | |
76 ] | |
77 deps += [ "//ui/gl" ] | |
78 } | |
65 } | 79 } |
66 | 80 |
67 component("gles2_utils") { | 81 component("gles2_utils") { |
68 sources = [ | 82 sources = [ |
69 "gles2_cmd_utils.cc", | 83 "gles2_cmd_utils.cc", |
70 "gles2_cmd_utils.h", | 84 "gles2_cmd_utils.h", |
71 "gles2_utils_export.h", | 85 "gles2_utils_export.h", |
72 ] | 86 ] |
73 | 87 |
74 defines = [ "GLES2_UTILS_IMPLEMENTATION" ] | 88 defines = [ "GLES2_UTILS_IMPLEMENTATION" ] |
(...skipping 11 matching lines...) Expand all Loading... | |
86 "command_buffer.mojom", | 100 "command_buffer.mojom", |
87 "mailbox.mojom", | 101 "mailbox.mojom", |
88 "mailbox_holder.mojom", | 102 "mailbox_holder.mojom", |
89 "sync_token.mojom", | 103 "sync_token.mojom", |
90 "value_state.mojom", | 104 "value_state.mojom", |
91 ] | 105 ] |
92 | 106 |
93 typemaps = [ "mojo.typemap" ] | 107 typemaps = [ "mojo.typemap" ] |
94 typemap_deps = [ "//gpu/ipc/common:command_buffer_traits" ] | 108 typemap_deps = [ "//gpu/ipc/common:command_buffer_traits" ] |
95 } | 109 } |
OLD | NEW |