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

Side by Side Diff: services/ui/public/interfaces/command_buffer.mojom

Issue 2096293002: Eliminate usage of InterfacePtr::WaitForIncomingResponse. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybots failure Created 4 years, 5 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
« no previous file with comments | « services/ui/public/cpp/lib/command_buffer_client_impl.cc ('k') | no next file » | 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 ui.mojom; 5 module ui.mojom;
6 6
7 import "gpu/ipc/common/capabilities.mojom"; 7 import "gpu/ipc/common/capabilities.mojom";
8 import "gpu/ipc/common/command_buffer.mojom"; 8 import "gpu/ipc/common/command_buffer.mojom";
9 import "gpu/ipc/common/mailbox.mojom"; 9 import "gpu/ipc/common/mailbox.mojom";
10 import "gpu/ipc/common/sync_token.mojom"; 10 import "gpu/ipc/common/sync_token.mojom";
(...skipping 15 matching lines...) Expand all
26 UpdateState(gpu.mojom.CommandBufferState state); 26 UpdateState(gpu.mojom.CommandBufferState state);
27 // TODO(penghuang): use base::TimeTicks & base::TimeDelta. 27 // TODO(penghuang): use base::TimeTicks & base::TimeDelta.
28 UpdateVSyncParameters(int64 timebase, int64 interval); 28 UpdateVSyncParameters(int64 timebase, int64 interval);
29 }; 29 };
30 30
31 interface CommandBuffer { 31 interface CommandBuffer {
32 // Initialize attempts to initialize the command buffer. 32 // Initialize attempts to initialize the command buffer.
33 // If the context is lost after creation the LostContext method on the 33 // If the context is lost after creation the LostContext method on the
34 // CommandBufferClient's will be called then this pipe will be 34 // CommandBufferClient's will be called then this pipe will be
35 // closed. 35 // closed.
36 [Sync]
36 Initialize(CommandBufferClient client, 37 Initialize(CommandBufferClient client,
37 handle<shared_buffer> shared_state, 38 handle<shared_buffer> shared_state,
38 array<int32> attribs) => (CommandBufferInitializeResult? result); 39 array<int32> attribs) => (CommandBufferInitializeResult? result);
39 SetGetBuffer(int32 buffer); 40 SetGetBuffer(int32 buffer);
40 Flush(int32 put_offset); 41 Flush(int32 put_offset);
42 [Sync]
41 MakeProgress(int32 last_get_offset) => (gpu.mojom.CommandBufferState state); 43 MakeProgress(int32 last_get_offset) => (gpu.mojom.CommandBufferState state);
42 RegisterTransferBuffer( 44 RegisterTransferBuffer(
43 int32 id, handle<shared_buffer> transfer_buffer, uint32 size); 45 int32 id, handle<shared_buffer> transfer_buffer, uint32 size);
44 DestroyTransferBuffer(int32 id); 46 DestroyTransferBuffer(int32 id);
45 CreateImage(int32 id, 47 CreateImage(int32 id,
46 handle memory_handle, 48 handle memory_handle,
47 int32 type, 49 int32 type,
48 gfx.mojom.Size size, 50 gfx.mojom.Size size,
49 int32 format, 51 int32 format,
50 int32 internal_format); 52 int32 internal_format);
51 DestroyImage(int32 id); 53 DestroyImage(int32 id);
52 CreateStreamTexture(uint32 client_texture_id) 54 CreateStreamTexture(uint32 client_texture_id)
53 => (int32 stream_id, bool succeeded); 55 => (int32 stream_id, bool succeeded);
54 TakeFrontBuffer(gpu.mojom.Mailbox mailbox); 56 TakeFrontBuffer(gpu.mojom.Mailbox mailbox);
55 ReturnFrontBuffer(gpu.mojom.Mailbox mailbox, bool is_lost); 57 ReturnFrontBuffer(gpu.mojom.Mailbox mailbox, bool is_lost);
56 SignalQuery(uint32 query, uint32 signal_id); 58 SignalQuery(uint32 query, uint32 signal_id);
57 SignalSyncToken(gpu.mojom.SyncToken sync_token, uint32 signal_id); 59 SignalSyncToken(gpu.mojom.SyncToken sync_token, uint32 signal_id);
58 WaitForGetOffsetInRange(int32 start, int32 end) 60 WaitForGetOffsetInRange(int32 start, int32 end)
59 => (gpu.mojom.CommandBufferState state); 61 => (gpu.mojom.CommandBufferState state);
60 WaitForTokenInRange(int32 start, int32 end) 62 WaitForTokenInRange(int32 start, int32 end)
61 => (gpu.mojom.CommandBufferState state); 63 => (gpu.mojom.CommandBufferState state);
62 }; 64 };
OLDNEW
« no previous file with comments | « services/ui/public/cpp/lib/command_buffer_client_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698