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 module mus.mojom; | 5 module mus.mojom; |
6 | 6 |
7 import "components/mus/public/interfaces/command_buffer.mojom"; | 7 import "services/ui/public/interfaces/command_buffer.mojom"; |
8 | 8 |
9 struct GpuInfo { | 9 struct GpuInfo { |
10 uint32 vendor_id; | 10 uint32 vendor_id; |
11 uint32 device_id; | 11 uint32 device_id; |
12 string vendor_info; | 12 string vendor_info; |
13 string renderer_info; | 13 string renderer_info; |
14 string driver_version; | 14 string driver_version; |
15 }; | 15 }; |
16 | 16 |
17 interface Gpu { | 17 interface Gpu { |
18 // Creates a new offscreen OpenGL ES 2.0 context. | 18 // Creates a new offscreen OpenGL ES 2.0 context. |
19 CreateOffscreenGLES2Context(CommandBuffer& gles2_client); | 19 CreateOffscreenGLES2Context(CommandBuffer& gles2_client); |
20 | 20 |
21 // Query Gpu information | 21 // Query Gpu information |
22 GetGpuInfo() => (GpuInfo gpu_info); | 22 GetGpuInfo() => (GpuInfo gpu_info); |
23 }; | 23 }; |
OLD | NEW |