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

Side by Side Diff: gpu/command_buffer/service/in_process_command_buffer.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_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual gpu::error::Error GetLastError() OVERRIDE; 97 virtual gpu::error::Error GetLastError() OVERRIDE;
98 98
99 // GpuControl implementation: 99 // GpuControl implementation:
100 virtual gpu::Capabilities GetCapabilities() OVERRIDE; 100 virtual gpu::Capabilities GetCapabilities() OVERRIDE;
101 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( 101 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(
102 size_t width, 102 size_t width,
103 size_t height, 103 size_t height,
104 unsigned internalformat, 104 unsigned internalformat,
105 int32* id) OVERRIDE; 105 int32* id) OVERRIDE;
106 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; 106 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
107 virtual bool GenerateMailboxNames(unsigned num,
108 std::vector<gpu::Mailbox>* names) OVERRIDE;
109 virtual uint32 InsertSyncPoint() OVERRIDE; 107 virtual uint32 InsertSyncPoint() OVERRIDE;
110 virtual void SignalSyncPoint(uint32 sync_point, 108 virtual void SignalSyncPoint(uint32 sync_point,
111 const base::Closure& callback) OVERRIDE; 109 const base::Closure& callback) OVERRIDE;
112 virtual void SignalQuery(uint32 query, 110 virtual void SignalQuery(uint32 query,
113 const base::Closure& callback) OVERRIDE; 111 const base::Closure& callback) OVERRIDE;
114 virtual void SetSurfaceVisible(bool visible) OVERRIDE; 112 virtual void SetSurfaceVisible(bool visible) OVERRIDE;
115 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats) 113 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats)
116 OVERRIDE; 114 OVERRIDE;
117 virtual void Echo(const base::Closure& callback) OVERRIDE; 115 virtual void Echo(const base::Closure& callback) OVERRIDE;
118 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE; 116 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 219
222 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; 220 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_;
223 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; 221 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_;
224 222
225 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 223 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
226 }; 224 };
227 225
228 } // namespace gpu 226 } // namespace gpu
229 227
230 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 228 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698