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

Side by Side Diff: gpu/command_buffer/common/gpu_control.h

Issue 165393003: gpu: Generate mailboxes on client side (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef GPU_COMMAND_BUFFER_COMMON_GPU_CONTROL_H_ 5 #ifndef GPU_COMMAND_BUFFER_COMMON_GPU_CONTROL_H_
6 #define GPU_COMMAND_BUFFER_COMMON_GPU_CONTROL_H_ 6 #define GPU_COMMAND_BUFFER_COMMON_GPU_CONTROL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 21 matching lines...) Expand all
32 // its ID or -1 on error. 32 // its ID or -1 on error.
33 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( 33 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(
34 size_t width, 34 size_t width,
35 size_t height, 35 size_t height,
36 unsigned internalformat, 36 unsigned internalformat,
37 int32* id) = 0; 37 int32* id) = 0;
38 38
39 // Destroy a gpu memory buffer. The ID must be positive. 39 // Destroy a gpu memory buffer. The ID must be positive.
40 virtual void DestroyGpuMemoryBuffer(int32 id) = 0; 40 virtual void DestroyGpuMemoryBuffer(int32 id) = 0;
41 41
42 // Generates n unique mailbox names that can be used with
43 // GL_texture_mailbox_CHROMIUM.
44 virtual bool GenerateMailboxNames(unsigned num,
45 std::vector<gpu::Mailbox>* names) = 0;
46
47 // Inserts a sync point, returning its ID. Sync point IDs are global and can 42 // Inserts a sync point, returning its ID. Sync point IDs are global and can
48 // be used for cross-context synchronization. 43 // be used for cross-context synchronization.
49 virtual uint32 InsertSyncPoint() = 0; 44 virtual uint32 InsertSyncPoint() = 0;
50 45
51 // Runs |callback| when a sync point is reached. 46 // Runs |callback| when a sync point is reached.
52 virtual void SignalSyncPoint(uint32 sync_point, 47 virtual void SignalSyncPoint(uint32 sync_point,
53 const base::Closure& callback) = 0; 48 const base::Closure& callback) = 0;
54 49
55 // Runs |callback| when a query created via glCreateQueryEXT() has cleared 50 // Runs |callback| when a query created via glCreateQueryEXT() has cleared
56 // passed the glEndQueryEXT() point. 51 // passed the glEndQueryEXT() point.
(...skipping 10 matching lines...) Expand all
67 // returns a stream identifier. 62 // returns a stream identifier.
68 virtual uint32 CreateStreamTexture(uint32 texture_id) = 0; 63 virtual uint32 CreateStreamTexture(uint32 texture_id) = 0;
69 64
70 private: 65 private:
71 DISALLOW_COPY_AND_ASSIGN(GpuControl); 66 DISALLOW_COPY_AND_ASSIGN(GpuControl);
72 }; 67 };
73 68
74 } // namespace gpu 69 } // namespace gpu
75 70
76 #endif // GPU_COMMAND_BUFFER_COMMON_GPU_CONTROL_H_ 71 #endif // GPU_COMMAND_BUFFER_COMMON_GPU_CONTROL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698