OLD | NEW |
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 unsigned internalformat, | 103 unsigned internalformat, |
104 unsigned usage, | 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) | |
114 OVERRIDE; | |
115 virtual void Echo(const base::Closure& callback) OVERRIDE; | 113 virtual void Echo(const base::Closure& callback) OVERRIDE; |
116 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE; | 114 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE; |
117 | 115 |
118 // The serializer interface to the GPU service (i.e. thread). | 116 // The serializer interface to the GPU service (i.e. thread). |
119 class Service { | 117 class Service { |
120 public: | 118 public: |
121 Service(); | 119 Service(); |
122 virtual ~Service(); | 120 virtual ~Service(); |
123 | 121 |
124 virtual void AddRef() const = 0; | 122 virtual void AddRef() const = 0; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 225 |
228 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 226 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
229 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 227 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
230 | 228 |
231 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 229 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
232 }; | 230 }; |
233 | 231 |
234 } // namespace gpu | 232 } // namespace gpu |
235 | 233 |
236 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 234 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
OLD | NEW |