| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 unsigned internalformat, | 113 unsigned internalformat, |
| 114 unsigned usage) override; | 114 unsigned usage) override; |
| 115 uint32 InsertSyncPoint() override; | 115 uint32 InsertSyncPoint() override; |
| 116 uint32 InsertFutureSyncPoint() override; | 116 uint32 InsertFutureSyncPoint() override; |
| 117 void RetireSyncPoint(uint32 sync_point) override; | 117 void RetireSyncPoint(uint32 sync_point) override; |
| 118 void SignalSyncPoint(uint32 sync_point, | 118 void SignalSyncPoint(uint32 sync_point, |
| 119 const base::Closure& callback) override; | 119 const base::Closure& callback) override; |
| 120 void SignalQuery(uint32 query_id, const base::Closure& callback) override; | 120 void SignalQuery(uint32 query_id, const base::Closure& callback) override; |
| 121 void SetSurfaceVisible(bool visible) override; | 121 void SetSurfaceVisible(bool visible) override; |
| 122 uint32 CreateStreamTexture(uint32 texture_id) override; | 122 uint32 CreateStreamTexture(uint32 texture_id) override; |
| 123 void SetLock(base::Lock*) override; |
| 123 | 124 |
| 124 // The serializer interface to the GPU service (i.e. thread). | 125 // The serializer interface to the GPU service (i.e. thread). |
| 125 class Service { | 126 class Service { |
| 126 public: | 127 public: |
| 127 Service(); | 128 Service(); |
| 128 virtual ~Service(); | 129 virtual ~Service(); |
| 129 | 130 |
| 130 virtual void AddRef() const = 0; | 131 virtual void AddRef() const = 0; |
| 131 virtual void Release() const = 0; | 132 virtual void Release() const = 0; |
| 132 | 133 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 255 |
| 255 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 256 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
| 256 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 257 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
| 257 | 258 |
| 258 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 259 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
| 259 }; | 260 }; |
| 260 | 261 |
| 261 } // namespace gpu | 262 } // namespace gpu |
| 262 | 263 |
| 263 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 264 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| OLD | NEW |