| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 void AddFilter(IPC::MessageFilter* filter); | 142 void AddFilter(IPC::MessageFilter* filter); |
| 143 void RemoveFilter(IPC::MessageFilter* filter); | 143 void RemoveFilter(IPC::MessageFilter* filter); |
| 144 | 144 |
| 145 uint64_t GetMemoryUsage(); | 145 uint64_t GetMemoryUsage(); |
| 146 | 146 |
| 147 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer( | 147 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer( |
| 148 const gfx::GpuMemoryBufferHandle& handle, | 148 const gfx::GpuMemoryBufferHandle& handle, |
| 149 const gfx::Size& size, | 149 const gfx::Size& size, |
| 150 gfx::BufferFormat format, | 150 gfx::BufferFormat format, |
| 151 uint32_t internalformat); | 151 uint32_t internalformat, |
| 152 SurfaceHandle surface_handle); |
| 152 | 153 |
| 153 GpuChannelMessageFilter* filter() const { return filter_.get(); } | 154 GpuChannelMessageFilter* filter() const { return filter_.get(); } |
| 154 | 155 |
| 155 // Returns the global order number for the last processed IPC message. | 156 // Returns the global order number for the last processed IPC message. |
| 156 uint32_t GetProcessedOrderNum() const; | 157 uint32_t GetProcessedOrderNum() const; |
| 157 | 158 |
| 158 // Returns the global order number for the last unprocessed IPC message. | 159 // Returns the global order number for the last unprocessed IPC message. |
| 159 uint32_t GetUnprocessedOrderNum() const; | 160 uint32_t GetUnprocessedOrderNum() const; |
| 160 | 161 |
| 161 // Returns the shared sync point global order data for the stream. | 162 // Returns the shared sync point global order data for the stream. |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 scoped_refptr<PreemptionFlag> preempting_flag_; | 471 scoped_refptr<PreemptionFlag> preempting_flag_; |
| 471 scoped_refptr<PreemptionFlag> preempted_flag_; | 472 scoped_refptr<PreemptionFlag> preempted_flag_; |
| 472 SyncPointManager* const sync_point_manager_; | 473 SyncPointManager* const sync_point_manager_; |
| 473 | 474 |
| 474 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); | 475 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); |
| 475 }; | 476 }; |
| 476 | 477 |
| 477 } // namespace gpu | 478 } // namespace gpu |
| 478 | 479 |
| 479 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_H_ | 480 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_H_ |
| OLD | NEW |