| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_IPC_SERVICE_GPU_CHANNEL_H_ | 5 #ifndef GPU_IPC_SERVICE_GPU_CHANNEL_H_ |
| 6 #define GPU_IPC_SERVICE_GPU_CHANNEL_H_ | 6 #define GPU_IPC_SERVICE_GPU_CHANNEL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 uint64_t GetMemoryUsage(); | 150 uint64_t GetMemoryUsage(); |
| 151 | 151 |
| 152 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer( | 152 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer( |
| 153 const gfx::GpuMemoryBufferHandle& handle, | 153 const gfx::GpuMemoryBufferHandle& handle, |
| 154 const gfx::Size& size, | 154 const gfx::Size& size, |
| 155 gfx::BufferFormat format, | 155 gfx::BufferFormat format, |
| 156 uint32_t internalformat, | 156 uint32_t internalformat, |
| 157 SurfaceHandle surface_handle); | 157 SurfaceHandle surface_handle); |
| 158 | 158 |
| 159 std::unique_ptr<gl::GLFence> CreateFenceForGpuFence( | 159 scoped_refptr<gl::GLFence> CreateFenceForGpuFence( |
| 160 const gfx::GpuFenceHandle& handle); | 160 const gfx::GpuFenceHandle& handle); |
| 161 | 161 |
| 162 GpuChannelMessageFilter* filter() const { return filter_.get(); } | 162 GpuChannelMessageFilter* filter() const { return filter_.get(); } |
| 163 | 163 |
| 164 // Returns the global order number for the last processed IPC message. | 164 // Returns the global order number for the last processed IPC message. |
| 165 uint32_t GetProcessedOrderNum() const; | 165 uint32_t GetProcessedOrderNum() const; |
| 166 | 166 |
| 167 // Returns the global order number for the last unprocessed IPC message. | 167 // Returns the global order number for the last unprocessed IPC message. |
| 168 uint32_t GetUnprocessedOrderNum() const; | 168 uint32_t GetUnprocessedOrderNum() const; |
| 169 | 169 |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 scoped_refptr<PreemptionFlag> preempting_flag_; | 481 scoped_refptr<PreemptionFlag> preempting_flag_; |
| 482 scoped_refptr<PreemptionFlag> preempted_flag_; | 482 scoped_refptr<PreemptionFlag> preempted_flag_; |
| 483 SyncPointManager* const sync_point_manager_; | 483 SyncPointManager* const sync_point_manager_; |
| 484 | 484 |
| 485 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); | 485 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); |
| 486 }; | 486 }; |
| 487 | 487 |
| 488 } // namespace gpu | 488 } // namespace gpu |
| 489 | 489 |
| 490 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_H_ | 490 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_H_ |
| OLD | NEW |