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 #include "ppapi/proxy/ppapi_command_buffer_proxy.h" | 5 #include "ppapi/proxy/ppapi_command_buffer_proxy.h" |
6 | 6 |
7 #include "ppapi/proxy/ppapi_messages.h" | 7 #include "ppapi/proxy/ppapi_messages.h" |
8 #include "ppapi/proxy/proxy_channel.h" | 8 #include "ppapi/proxy/proxy_channel.h" |
9 #include "ppapi/shared_impl/api_id.h" | 9 #include "ppapi/shared_impl/api_id.h" |
10 #include "ppapi/shared_impl/host_resource.h" | 10 #include "ppapi/shared_impl/host_resource.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 void PpapiCommandBufferProxy::SignalQuery(uint32 query, | 160 void PpapiCommandBufferProxy::SignalQuery(uint32 query, |
161 const base::Closure& callback) { | 161 const base::Closure& callback) { |
162 NOTREACHED(); | 162 NOTREACHED(); |
163 } | 163 } |
164 | 164 |
165 void PpapiCommandBufferProxy::SetSurfaceVisible(bool visible) { | 165 void PpapiCommandBufferProxy::SetSurfaceVisible(bool visible) { |
166 NOTREACHED(); | 166 NOTREACHED(); |
167 } | 167 } |
168 | 168 |
169 void PpapiCommandBufferProxy::SendManagedMemoryStats( | |
170 const gpu::ManagedMemoryStats& stats) { | |
171 NOTREACHED(); | |
172 } | |
173 | |
174 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { | 169 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { |
175 // TODO(boliu): Need to implement this to use cc in Pepper. Tracked in | 170 // TODO(boliu): Need to implement this to use cc in Pepper. Tracked in |
176 // crbug.com/325391. | 171 // crbug.com/325391. |
177 return gpu::Capabilities(); | 172 return gpu::Capabilities(); |
178 } | 173 } |
179 | 174 |
180 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer( | 175 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer( |
181 size_t width, | 176 size_t width, |
182 size_t height, | 177 size_t height, |
183 unsigned internalformat, | 178 unsigned internalformat, |
(...skipping 27 matching lines...) Expand all Loading... |
211 last_state_ = state; | 206 last_state_ = state; |
212 } | 207 } |
213 } else { | 208 } else { |
214 last_state_.error = gpu::error::kLostContext; | 209 last_state_.error = gpu::error::kLostContext; |
215 ++last_state_.generation; | 210 ++last_state_.generation; |
216 } | 211 } |
217 } | 212 } |
218 | 213 |
219 } // namespace proxy | 214 } // namespace proxy |
220 } // namespace ppapi | 215 } // namespace ppapi |
OLD | NEW |