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

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: no ozone 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 <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 int32* id) OVERRIDE; 93 int32* id) OVERRIDE;
94 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; 94 virtual void DestroyTransferBuffer(int32 id) OVERRIDE;
95 virtual gpu::error::Error GetLastError() OVERRIDE; 95 virtual gpu::error::Error GetLastError() OVERRIDE;
96 96
97 // GpuControl implementation: 97 // GpuControl implementation:
98 virtual gpu::Capabilities GetCapabilities() OVERRIDE; 98 virtual gpu::Capabilities GetCapabilities() OVERRIDE;
99 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( 99 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(
100 size_t width, 100 size_t width,
101 size_t height, 101 size_t height,
102 unsigned internalformat, 102 unsigned internalformat,
103 gfx::GpuMemoryBuffer::Usage usage,
103 int32* id) OVERRIDE; 104 int32* id) OVERRIDE;
104 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; 105 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
105 virtual uint32 InsertSyncPoint() OVERRIDE; 106 virtual uint32 InsertSyncPoint() OVERRIDE;
106 virtual void SignalSyncPoint(uint32 sync_point, 107 virtual void SignalSyncPoint(uint32 sync_point,
107 const base::Closure& callback) OVERRIDE; 108 const base::Closure& callback) OVERRIDE;
108 virtual void SignalQuery(uint32 query, 109 virtual void SignalQuery(uint32 query,
109 const base::Closure& callback) OVERRIDE; 110 const base::Closure& callback) OVERRIDE;
110 virtual void SetSurfaceVisible(bool visible) OVERRIDE; 111 virtual void SetSurfaceVisible(bool visible) OVERRIDE;
111 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats) 112 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats)
112 OVERRIDE; 113 OVERRIDE;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 224
224 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; 225 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_;
225 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; 226 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_;
226 227
227 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 228 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
228 }; 229 };
229 230
230 } // namespace gpu 231 } // namespace gpu
231 232
232 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 233 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698