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

Side by Side Diff: mojo/gles2/command_buffer_client_impl.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 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 #ifndef MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 5 #ifndef MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual void SetContextLostReason(gpu::error::ContextLostReason reason) 65 virtual void SetContextLostReason(gpu::error::ContextLostReason reason)
66 OVERRIDE; 66 OVERRIDE;
67 67
68 // gpu::GpuControl implementation: 68 // gpu::GpuControl implementation:
69 virtual gpu::Capabilities GetCapabilities() OVERRIDE; 69 virtual gpu::Capabilities GetCapabilities() OVERRIDE;
70 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width, 70 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width,
71 size_t height, 71 size_t height,
72 unsigned internalformat, 72 unsigned internalformat,
73 int32* id) OVERRIDE; 73 int32* id) OVERRIDE;
74 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; 74 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
75 virtual bool GenerateMailboxNames(unsigned num,
76 std::vector<gpu::Mailbox>* names) OVERRIDE;
77 virtual uint32 InsertSyncPoint() OVERRIDE; 75 virtual uint32 InsertSyncPoint() OVERRIDE;
78 virtual void SignalSyncPoint(uint32 sync_point, 76 virtual void SignalSyncPoint(uint32 sync_point,
79 const base::Closure& callback) OVERRIDE; 77 const base::Closure& callback) OVERRIDE;
80 virtual void SignalQuery(uint32 query, 78 virtual void SignalQuery(uint32 query,
81 const base::Closure& callback) OVERRIDE; 79 const base::Closure& callback) OVERRIDE;
82 virtual void SetSurfaceVisible(bool visible) OVERRIDE; 80 virtual void SetSurfaceVisible(bool visible) OVERRIDE;
83 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats) 81 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats)
84 OVERRIDE; 82 OVERRIDE;
85 virtual void Echo(const base::Closure& callback) OVERRIDE; 83 virtual void Echo(const base::Closure& callback) OVERRIDE;
86 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE; 84 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 int32 next_transfer_buffer_id_; 120 int32 next_transfer_buffer_id_;
123 std::queue<base::Closure> echo_closures_; 121 std::queue<base::Closure> echo_closures_;
124 122
125 bool initialize_result_; 123 bool initialize_result_;
126 }; 124 };
127 125
128 } // gles2 126 } // gles2
129 } // mojo 127 } // mojo
130 128
131 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 129 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698