| 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_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 void SetMemoryAllocationChangedCallback( | 124 void SetMemoryAllocationChangedCallback( |
| 125 const MemoryAllocationChangedCallback& callback); | 125 const MemoryAllocationChangedCallback& callback); |
| 126 void AddDeletionObserver(DeletionObserver* observer); | 126 void AddDeletionObserver(DeletionObserver* observer); |
| 127 void RemoveDeletionObserver(DeletionObserver* observer); | 127 void RemoveDeletionObserver(DeletionObserver* observer); |
| 128 | 128 |
| 129 bool EnsureBackbuffer(); | 129 bool EnsureBackbuffer(); |
| 130 | 130 |
| 131 void SetOnConsoleMessageCallback( | 131 void SetOnConsoleMessageCallback( |
| 132 const GpuConsoleMessageCallback& callback); | 132 const GpuConsoleMessageCallback& callback); |
| 133 | 133 |
| 134 void SetLatencyInfo(const ui::LatencyInfo& latency_info); | 134 void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); |
| 135 | 135 |
| 136 // TODO(apatrick): this is a temporary optimization while skia is calling | 136 // TODO(apatrick): this is a temporary optimization while skia is calling |
| 137 // ContentGLContext::MakeCurrent prior to every GL call. It saves returning 6 | 137 // ContentGLContext::MakeCurrent prior to every GL call. It saves returning 6 |
| 138 // ints redundantly when only the error is needed for the | 138 // ints redundantly when only the error is needed for the |
| 139 // CommandBufferProxyImpl implementation. | 139 // CommandBufferProxyImpl implementation. |
| 140 virtual gpu::error::Error GetLastError() OVERRIDE; | 140 virtual gpu::error::Error GetLastError() OVERRIDE; |
| 141 | 141 |
| 142 GpuChannelHost* channel() const { return channel_; } | 142 GpuChannelHost* channel() const { return channel_; } |
| 143 | 143 |
| 144 private: | 144 private: |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 GpuMemoryBufferMap gpu_memory_buffers_; | 205 GpuMemoryBufferMap gpu_memory_buffers_; |
| 206 | 206 |
| 207 gpu::Capabilities capabilities_; | 207 gpu::Capabilities capabilities_; |
| 208 | 208 |
| 209 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 209 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
| 210 }; | 210 }; |
| 211 | 211 |
| 212 } // namespace content | 212 } // namespace content |
| 213 | 213 |
| 214 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 214 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| OLD | NEW |