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

Side by Side Diff: mojo/services/gles2/command_buffer.mojom

Issue 384513003: Remove RequestAnimationFrame from mojo, add delayed tasks to RunLoop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
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 mojo { 5 module mojo {
6 6
7 struct CommandBufferState { 7 struct CommandBufferState {
8 int32 num_entries; 8 int32 num_entries;
9 int32 get_offset; 9 int32 get_offset;
10 int32 put_offset; 10 int32 put_offset;
(...skipping 13 matching lines...) Expand all
24 Initialize(CommandBufferSyncClient sync_client, 24 Initialize(CommandBufferSyncClient sync_client,
25 handle<shared_buffer> shared_state); 25 handle<shared_buffer> shared_state);
26 SetGetBuffer(int32 buffer); 26 SetGetBuffer(int32 buffer);
27 Flush(int32 put_offset); 27 Flush(int32 put_offset);
28 MakeProgress(int32 last_get_offset); 28 MakeProgress(int32 last_get_offset);
29 RegisterTransferBuffer( 29 RegisterTransferBuffer(
30 int32 id, handle<shared_buffer> transfer_buffer, uint32 size); 30 int32 id, handle<shared_buffer> transfer_buffer, uint32 size);
31 DestroyTransferBuffer(int32 id); 31 DestroyTransferBuffer(int32 id);
32 Echo() => (); 32 Echo() => ();
33 33
34 // TODO(piman): move to somewhere else (native_viewport?).
35 RequestAnimationFrames();
36 CancelAnimationFrames();
37
38 // TODO(piman): sync points 34 // TODO(piman): sync points
39 }; 35 };
40 36
41 interface CommandBufferClient { 37 interface CommandBufferClient {
42 DidDestroy(); 38 DidDestroy();
43 LostContext(int32 lost_reason); // TODO(piman): enum 39 LostContext(int32 lost_reason); // TODO(piman): enum
44
45 // TODO(piman): move to somewhere else (native_viewport?).
46 DrawAnimationFrame();
47 }; 40 };
48 41
49 } 42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698