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

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

Issue 24925002: Move Insert/SignalSyncPoint() to GpuControl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase past r226145 Created 7 years, 2 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_GPU_CONTROL_SERVICE_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
(...skipping 19 matching lines...) Expand all
30 virtual bool SupportsGpuMemoryBuffer() OVERRIDE; 30 virtual bool SupportsGpuMemoryBuffer() OVERRIDE;
31 31
32 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( 32 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(
33 size_t width, 33 size_t width,
34 size_t height, 34 size_t height,
35 unsigned internalformat, 35 unsigned internalformat,
36 int32* id) OVERRIDE; 36 int32* id) OVERRIDE;
37 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; 37 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
38 virtual bool GenerateMailboxNames(unsigned num, 38 virtual bool GenerateMailboxNames(unsigned num,
39 std::vector<gpu::Mailbox>* names) OVERRIDE; 39 std::vector<gpu::Mailbox>* names) OVERRIDE;
40 virtual uint32 InsertSyncPoint() OVERRIDE;
41 virtual void SignalSyncPoint(uint32 sync_point,
42 const base::Closure& callback) OVERRIDE;
40 43
41 // Register an existing gpu memory buffer and get an ID that can be used 44 // Register an existing gpu memory buffer and get an ID that can be used
42 // to identify it in the command buffer. 45 // to identify it in the command buffer.
43 bool RegisterGpuMemoryBuffer(int32 id, 46 bool RegisterGpuMemoryBuffer(int32 id,
44 gfx::GpuMemoryBufferHandle buffer, 47 gfx::GpuMemoryBufferHandle buffer,
45 size_t width, 48 size_t width,
46 size_t height, 49 size_t height,
47 unsigned internalformat); 50 unsigned internalformat);
48 51
49 private: 52 private:
50 GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager_; 53 GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager_;
51 GpuMemoryBufferFactory* gpu_memory_buffer_factory_; 54 GpuMemoryBufferFactory* gpu_memory_buffer_factory_;
52 gles2::MailboxManager* mailbox_manager_; 55 gles2::MailboxManager* mailbox_manager_;
53 typedef std::map<int32, linked_ptr<gfx::GpuMemoryBuffer> > GpuMemoryBufferMap; 56 typedef std::map<int32, linked_ptr<gfx::GpuMemoryBuffer> > GpuMemoryBufferMap;
54 GpuMemoryBufferMap gpu_memory_buffers_; 57 GpuMemoryBufferMap gpu_memory_buffers_;
55 58
56 DISALLOW_COPY_AND_ASSIGN(GpuControlService); 59 DISALLOW_COPY_AND_ASSIGN(GpuControlService);
57 }; 60 };
58 61
59 } // namespace gpu 62 } // namespace gpu
60 63
61 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_ 64 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/command_buffer_service.cc ('k') | gpu/command_buffer/service/gpu_control_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698