Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Side by Side Diff: components/mus/public/interfaces/command_buffer.mojom

Issue 1460833002: gpu: Implement the new fence syncs in mojo command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/mus/gles2/command_buffer_local.cc ('k') | gpu/command_buffer/common/constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/gpu_capabilities.mojom"; 7 import "components/mus/public/interfaces/gpu_capabilities.mojom";
8 import "ui/mojo/geometry/geometry.mojom"; 8 import "ui/mojo/geometry/geometry.mojom";
9 9
10 struct CommandBufferState { 10 struct CommandBufferState {
11 int32 num_entries; 11 int32 num_entries;
12 int32 get_offset; 12 int32 get_offset;
13 int32 put_offset; 13 int32 put_offset;
14 int32 token; 14 int32 token;
15 int32 error; // TODO(piman): enum 15 int32 error; // TODO(piman): enum
16 int32 context_lost_reason; // TODO(piman): enum 16 int32 context_lost_reason; // TODO(piman): enum
17 uint32 generation; 17 uint32 generation;
18 }; 18 };
19 19
20 interface CommandBufferSyncClient { 20 interface CommandBufferSyncClient {
21 // |capabilities| is null if |success| is false. 21 // |capabilities| is null if |success| is false.
22 DidInitialize(bool success, GpuCapabilities? capabilities); 22 DidInitialize(bool success,
23 int32 command_buffer_namespace,
24 uint64 command_buffer_id,
25 GpuCapabilities? capabilities);
23 DidMakeProgress(CommandBufferState state); 26 DidMakeProgress(CommandBufferState state);
24 }; 27 };
25 28
26 interface CommandBufferSyncPointClient { 29 interface CommandBufferSyncPointClient {
27 DidInsertSyncPoint(uint32 sync_point); 30 DidInsertSyncPoint(uint32 sync_point);
28 }; 31 };
29 32
30 interface CommandBufferLostContextObserver { 33 interface CommandBufferLostContextObserver {
31 DidLoseContext(int32 context_lost_reason); 34 DidLoseContext(int32 context_lost_reason);
32 }; 35 };
(...skipping 24 matching lines...) Expand all
57 Echo() => (); 60 Echo() => ();
58 61
59 CreateImage(int32 id, 62 CreateImage(int32 id,
60 handle memory_handle, 63 handle memory_handle,
61 int32 type, 64 int32 type,
62 mojo.Size size, 65 mojo.Size size,
63 int32 format, 66 int32 format,
64 int32 internal_format); 67 int32 internal_format);
65 DestroyImage(int32 id); 68 DestroyImage(int32 id);
66 }; 69 };
OLDNEW
« no previous file with comments | « components/mus/gles2/command_buffer_local.cc ('k') | gpu/command_buffer/common/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698