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. 4 5 import("//mojo/public/tools/bindings/mojom.gni") 6 7 # GYP version: mojo/mojo_services.gypi:mojo_gles2_service 8 source_set("gles2") { 9 public_deps = [ 10 ":bindings", 11 ] 12 deps = [ 13 "//base", 14 "//gpu/command_buffer/service", 15 "//ui/gfx", 16 "//ui/gfx/geometry", 17 "//ui/gl", 18 ] 19 20 sources = [ 21 "command_buffer_impl.cc", 22 "command_buffer_impl.h", 23 ] 24 } 25 26 # GYP version: mojo/mojo_services.gypi:mojo_gles2_bindings 27 mojom("interfaces") { 28 sources = [ 29 "command_buffer.mojom", 30 ] 31 } 32 33 # GYP version: mojo/mojo_services.gypi:mojo_gles2_bindings 34 source_set("bindings") { 35 sources = [ 36 "command_buffer_type_conversions.cc", 37 "command_buffer_type_conversions.h", 38 "mojo_buffer_backing.cc", 39 "mojo_buffer_backing.h", 40 ] 41 42 public_deps = [ 43 ":interfaces", 44 ] 45 deps = [ 46 "//base", 47 "//gpu/command_buffer/common", 48 "//mojo/public/cpp/bindings", 49 "//mojo/services/gles2:interfaces", 50 ] 51 } 52