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

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

Issue 205193006: gpu: Remove map_image field from gpu::Capabilities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move TODO Created 6 years, 9 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"
11 #include "gpu/command_buffer/common/gpu_control.h" 11 #include "gpu/command_buffer/common/gpu_control.h"
12 #include "ui/gfx/gpu_memory_buffer.h" 12 #include "ui/gfx/gpu_memory_buffer.h"
13 13
14 namespace gpu { 14 namespace gpu {
15 class GpuMemoryBufferFactory; 15 class GpuMemoryBufferFactory;
16 class GpuMemoryBufferManagerInterface; 16 class GpuMemoryBufferManagerInterface;
17 17
18 namespace gles2 { 18 namespace gles2 {
19 class MailboxManager; 19 class MailboxManager;
20 class QueryManager; 20 class QueryManager;
21 } 21 }
22 22
23 class GPU_EXPORT GpuControlService : public GpuControl { 23 class GPU_EXPORT GpuControlService : public GpuControl {
24 public: 24 public:
25 GpuControlService(GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager, 25 GpuControlService(GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager,
26 GpuMemoryBufferFactory* gpu_memory_buffer_factory, 26 GpuMemoryBufferFactory* gpu_memory_buffer_factory,
27 gles2::MailboxManager* mailbox_manager, 27 gles2::MailboxManager* mailbox_manager,
28 gles2::QueryManager* query_manager, 28 gles2::QueryManager* query_manager);
29 const gpu::Capabilities& decoder_capabilities);
30 virtual ~GpuControlService(); 29 virtual ~GpuControlService();
31 30
32
33 // GpuControl implementation. 31 // GpuControl implementation.
34 virtual gpu::Capabilities GetCapabilities() OVERRIDE;
35 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( 32 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(
36 size_t width, 33 size_t width,
37 size_t height, 34 size_t height,
38 unsigned internalformat, 35 unsigned internalformat,
39 int32* id) OVERRIDE; 36 int32* id) OVERRIDE;
40 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; 37 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
41 virtual uint32 InsertSyncPoint() OVERRIDE; 38 virtual uint32 InsertSyncPoint() OVERRIDE;
42 virtual void SignalSyncPoint(uint32 sync_point, 39 virtual void SignalSyncPoint(uint32 sync_point,
43 const base::Closure& callback) OVERRIDE; 40 const base::Closure& callback) OVERRIDE;
44 virtual void SignalQuery(uint32 query, 41 virtual void SignalQuery(uint32 query,
(...skipping 12 matching lines...) Expand all
57 size_t height, 54 size_t height,
58 unsigned internalformat); 55 unsigned internalformat);
59 56
60 private: 57 private:
61 GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager_; 58 GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager_;
62 GpuMemoryBufferFactory* gpu_memory_buffer_factory_; 59 GpuMemoryBufferFactory* gpu_memory_buffer_factory_;
63 gles2::MailboxManager* mailbox_manager_; 60 gles2::MailboxManager* mailbox_manager_;
64 gles2::QueryManager* query_manager_; 61 gles2::QueryManager* query_manager_;
65 typedef std::map<int32, linked_ptr<gfx::GpuMemoryBuffer> > GpuMemoryBufferMap; 62 typedef std::map<int32, linked_ptr<gfx::GpuMemoryBuffer> > GpuMemoryBufferMap;
66 GpuMemoryBufferMap gpu_memory_buffers_; 63 GpuMemoryBufferMap gpu_memory_buffers_;
67 gpu::Capabilities capabilities_;
68 64
69 DISALLOW_COPY_AND_ASSIGN(GpuControlService); 65 DISALLOW_COPY_AND_ASSIGN(GpuControlService);
70 }; 66 };
71 67
72 } // namespace gpu 68 } // namespace gpu
73 69
74 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_ 70 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gpu_control.h ('k') | gpu/command_buffer/service/gpu_control_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698