| 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 CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 void CacheShader(const std::string& key, const std::string& shader); | 157 void CacheShader(const std::string& key, const std::string& shader); |
| 158 | 158 |
| 159 void AddFilter(IPC::MessageFilter* filter); | 159 void AddFilter(IPC::MessageFilter* filter); |
| 160 void RemoveFilter(IPC::MessageFilter* filter); | 160 void RemoveFilter(IPC::MessageFilter* filter); |
| 161 | 161 |
| 162 uint64 GetMemoryUsage(); | 162 uint64 GetMemoryUsage(); |
| 163 | 163 |
| 164 scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer( | 164 scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer( |
| 165 const gfx::GpuMemoryBufferHandle& handle, | 165 const gfx::GpuMemoryBufferHandle& handle, |
| 166 const gfx::Size& size, | 166 const gfx::Size& size, |
| 167 gfx::GpuMemoryBuffer::Format format, | 167 gfx::BufferFormat format, |
| 168 uint32 internalformat); | 168 uint32 internalformat); |
| 169 | 169 |
| 170 bool allow_future_sync_points() const { return allow_future_sync_points_; } | 170 bool allow_future_sync_points() const { return allow_future_sync_points_; } |
| 171 | 171 |
| 172 void HandleUpdateValueState(unsigned int target, | 172 void HandleUpdateValueState(unsigned int target, |
| 173 const gpu::ValueState& state); | 173 const gpu::ValueState& state); |
| 174 | 174 |
| 175 // Visible for testing. | 175 // Visible for testing. |
| 176 const gpu::ValueStateMap* pending_valuebuffer_state() const { | 176 const gpu::ValueStateMap* pending_valuebuffer_state() const { |
| 177 return pending_valuebuffer_state_.get(); | 177 return pending_valuebuffer_state_.get(); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // that any WeakPtrs to Controller are invalidated before its members | 265 // that any WeakPtrs to Controller are invalidated before its members |
| 266 // variable's destructors are executed, rendering them invalid. | 266 // variable's destructors are executed, rendering them invalid. |
| 267 base::WeakPtrFactory<GpuChannel> weak_factory_; | 267 base::WeakPtrFactory<GpuChannel> weak_factory_; |
| 268 | 268 |
| 269 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 269 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 270 }; | 270 }; |
| 271 | 271 |
| 272 } // namespace content | 272 } // namespace content |
| 273 | 273 |
| 274 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 274 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |