summaryrefslogtreecommitdiffstats
path: root/webkit/common/gpu/BUILD.gn
blob: 862d4b54f4329b04944b3f957a88a0d0f8d3f24a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

component("gpu") {
  output_name = "webkit_gpu"

  sources = [
    "context_provider_in_process.cc",
    "context_provider_in_process.h",
    "context_provider_web_context.h",
    "grcontext_for_webgraphicscontext3d.cc",
    "grcontext_for_webgraphicscontext3d.h",
    "webgraphicscontext3d_impl.cc",
    "webgraphicscontext3d_impl.h",
    "webgraphicscontext3d_in_process_command_buffer_impl.cc",
    "webgraphicscontext3d_in_process_command_buffer_impl.h",
  ]

  defines = [ "WEBKIT_GPU_IMPLEMENTATION" ]
  configs += [ "//build/config/compiler:wexit_time_destructors" ]
  if (is_win) {
    # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
    cflags = [ "/wd4267" ]
  }

  deps = [
    "//base",
    "//base/third_party/dynamic_annotations",
    "//cc",
    "//gpu/command_buffer/common",
    "//gpu/command_buffer/service",
    "//gpu/command_buffer/client:gles2_c_lib",
    "//gpu/command_buffer/client:gles2_implementation",
    "//gpu/command_buffer/client:gl_in_process_context",
    "//gpu/skia_bindings",
    "//skia",
    #"//third_party/WebKit/public:blink_minimal",  TODO(GYP)
    "//third_party/angle:translator",
    "//ui/gl",
    "//ui/gfx",
    "//ui/gfx/geometry",
  ]
}