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

Side by Side Diff: mojo/services/gpu/public/interfaces/command_buffer.mojom

Issue 1398973004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 2). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_1
Patch Set: add missing copyright notices Created 5 years, 2 months 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
OLDNEW
(Empty)
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 [DartPackage="mojo_services"]
6 module mojo;
7
8 import "gpu/public/interfaces/gpu_capabilities.mojom";
9
10 struct CommandBufferState {
11 int32 num_entries;
12 int32 get_offset;
13 int32 put_offset;
14 int32 token;
15 int32 error; // TODO(piman): enum
16 int32 context_lost_reason; // TODO(piman): enum
17 uint32 generation;
18 };
19
20 interface CommandBufferSyncClient {
21 DidInitialize(bool success, GpuCapabilities capabilities);
22 DidMakeProgress(CommandBufferState state);
23 };
24
25 interface CommandBufferSyncPointClient {
26 DidInsertSyncPoint(uint32 sync_point);
27 };
28
29 interface CommandBufferLostContextObserver {
30 DidLoseContext(int32 context_lost_reason);
31 };
32
33 interface CommandBuffer {
34 // Initialize attempts to initialize the command buffer. Success or failure
35 // will be communicated via the CommandBufferSyncClient DidInitialize() call.
36 // If the context is lost after creation the LostContext method on the
37 // CommandBufferLostContextObserver's will be called then this pipe will be
38 // closed.
39 Initialize(CommandBufferSyncClient sync_client,
40 CommandBufferSyncPointClient sync_point_client,
41 CommandBufferLostContextObserver lost_observer,
42 handle<shared_buffer> shared_state);
43 SetGetBuffer(int32 buffer);
44 Flush(int32 put_offset);
45 MakeProgress(int32 last_get_offset);
46 RegisterTransferBuffer(
47 int32 id, handle<shared_buffer> transfer_buffer, uint32 size);
48 DestroyTransferBuffer(int32 id);
49
50 // InsertSyncPoint returns the sync point returned via DidInsertSyncPoint.
51 // If |retire| is true, the sync point is retired on insertion. Otherwise,
52 // explicitly call RetireSyncPoint to retire it.
53 InsertSyncPoint(bool retire);
54 RetireSyncPoint(uint32 sync_point);
55 Echo() => ();
56 };
OLDNEW
« no previous file with comments | « mojo/services/gpu/public/interfaces/BUILD.gn ('k') | mojo/services/gpu/public/interfaces/context_provider.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698