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

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

Issue 1346113003: Mandoline: WebGL: Pass context creation attributes to GPU. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 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 | « components/mus/gles2/command_buffer_impl.cc ('k') | components/pdf_viewer/pdf_viewer.cc » ('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 mojo; 5 module mojo;
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 {
(...skipping 22 matching lines...) Expand all
33 33
34 interface CommandBuffer { 34 interface CommandBuffer {
35 // Initialize attempts to initialize the command buffer. Success or failure 35 // Initialize attempts to initialize the command buffer. Success or failure
36 // will be communicated via the CommandBufferSyncClient DidInitialize() call. 36 // will be communicated via the CommandBufferSyncClient DidInitialize() call.
37 // If the context is lost after creation the LostContext method on the 37 // If the context is lost after creation the LostContext method on the
38 // CommandBufferLostContextObserver's will be called then this pipe will be 38 // CommandBufferLostContextObserver's will be called then this pipe will be
39 // closed. 39 // closed.
40 Initialize(CommandBufferSyncClient sync_client, 40 Initialize(CommandBufferSyncClient sync_client,
41 CommandBufferSyncPointClient sync_point_client, 41 CommandBufferSyncPointClient sync_point_client,
42 CommandBufferLostContextObserver lost_observer, 42 CommandBufferLostContextObserver lost_observer,
43 handle<shared_buffer> shared_state); 43 handle<shared_buffer> shared_state,
44 array<int32> attribs);
44 SetGetBuffer(int32 buffer); 45 SetGetBuffer(int32 buffer);
45 Flush(int32 put_offset); 46 Flush(int32 put_offset);
46 MakeProgress(int32 last_get_offset); 47 MakeProgress(int32 last_get_offset);
47 RegisterTransferBuffer( 48 RegisterTransferBuffer(
48 int32 id, handle<shared_buffer> transfer_buffer, uint32 size); 49 int32 id, handle<shared_buffer> transfer_buffer, uint32 size);
49 DestroyTransferBuffer(int32 id); 50 DestroyTransferBuffer(int32 id);
50 51
51 // InsertSyncPoint returns the sync point returned via DidInsertSyncPoint. 52 // InsertSyncPoint returns the sync point returned via DidInsertSyncPoint.
52 // If |retire| is true, the sync point is retired on insertion. Otherwise, 53 // If |retire| is true, the sync point is retired on insertion. Otherwise,
53 // explicitly call RetireSyncPoint to retire it. 54 // explicitly call RetireSyncPoint to retire it.
54 InsertSyncPoint(bool retire); 55 InsertSyncPoint(bool retire);
55 RetireSyncPoint(uint32 sync_point); 56 RetireSyncPoint(uint32 sync_point);
56 Echo() => (); 57 Echo() => ();
57 58
58 CreateImage(int32 id, 59 CreateImage(int32 id,
59 handle memory_handle, 60 handle memory_handle,
60 int32 type, 61 int32 type,
61 Size size, 62 Size size,
62 int32 format, 63 int32 format,
63 int32 internal_format); 64 int32 internal_format);
64 DestroyImage(int32 id); 65 DestroyImage(int32 id);
65 }; 66 };
OLDNEW
« no previous file with comments | « components/mus/gles2/command_buffer_impl.cc ('k') | components/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698