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

Side by Side Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual void WaitForTokenInRange(int32 start, int32 end) OVERRIDE; 91 virtual void WaitForTokenInRange(int32 start, int32 end) OVERRIDE;
92 virtual void WaitForGetOffsetInRange(int32 start, int32 end) OVERRIDE; 92 virtual void WaitForGetOffsetInRange(int32 start, int32 end) OVERRIDE;
93 virtual void SetGetBuffer(int32 shm_id) OVERRIDE; 93 virtual void SetGetBuffer(int32 shm_id) OVERRIDE;
94 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 94 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
95 int32* id) OVERRIDE; 95 int32* id) OVERRIDE;
96 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; 96 virtual void DestroyTransferBuffer(int32 id) OVERRIDE;
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(size_t width,
102 size_t width, 102 size_t height,
103 size_t height, 103 unsigned internalformat,
104 unsigned internalformat, 104 unsigned usage,
105 int32* id) OVERRIDE; 105 int32* id) OVERRIDE;
106 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; 106 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
107 virtual uint32 InsertSyncPoint() OVERRIDE; 107 virtual uint32 InsertSyncPoint() OVERRIDE;
108 virtual void SignalSyncPoint(uint32 sync_point, 108 virtual void SignalSyncPoint(uint32 sync_point,
109 const base::Closure& callback) OVERRIDE; 109 const base::Closure& callback) OVERRIDE;
110 virtual void SignalQuery(uint32 query, 110 virtual void SignalQuery(uint32 query,
111 const base::Closure& callback) OVERRIDE; 111 const base::Closure& callback) OVERRIDE;
112 virtual void SetSurfaceVisible(bool visible) OVERRIDE; 112 virtual void SetSurfaceVisible(bool visible) OVERRIDE;
113 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats) 113 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats)
114 OVERRIDE; 114 OVERRIDE;
115 virtual void Echo(const base::Closure& callback) OVERRIDE; 115 virtual void Echo(const base::Closure& callback) OVERRIDE;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; 228 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_;
229 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; 229 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_;
230 230
231 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 231 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
232 }; 232 };
233 233
234 } // namespace gpu 234 } // namespace gpu
235 235
236 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 236 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698