| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { | 174 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { |
| 175 // TODO(boliu): Need to implement this to use cc in Pepper. Tracked in | 175 // TODO(boliu): Need to implement this to use cc in Pepper. Tracked in |
| 176 // crbug.com/325391. | 176 // crbug.com/325391. |
| 177 return gpu::Capabilities(); | 177 return gpu::Capabilities(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer( | 180 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer( |
| 181 size_t width, | 181 size_t width, |
| 182 size_t height, | 182 size_t height, |
| 183 unsigned internalformat, | 183 unsigned internalformat, |
| 184 unsigned usage, |
| 184 int32* id) { | 185 int32* id) { |
| 185 NOTREACHED(); | 186 NOTREACHED(); |
| 186 return NULL; | 187 return NULL; |
| 187 } | 188 } |
| 188 | 189 |
| 189 void PpapiCommandBufferProxy::DestroyGpuMemoryBuffer(int32 id) { | 190 void PpapiCommandBufferProxy::DestroyGpuMemoryBuffer(int32 id) { |
| 190 NOTREACHED(); | 191 NOTREACHED(); |
| 191 } | 192 } |
| 192 | 193 |
| 193 bool PpapiCommandBufferProxy::Send(IPC::Message* msg) { | 194 bool PpapiCommandBufferProxy::Send(IPC::Message* msg) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 210 last_state_ = state; | 211 last_state_ = state; |
| 211 } | 212 } |
| 212 } else { | 213 } else { |
| 213 last_state_.error = gpu::error::kLostContext; | 214 last_state_.error = gpu::error::kLostContext; |
| 214 ++last_state_.generation; | 215 ++last_state_.generation; |
| 215 } | 216 } |
| 216 } | 217 } |
| 217 | 218 |
| 218 } // namespace proxy | 219 } // namespace proxy |
| 219 } // namespace ppapi | 220 } // namespace ppapi |
| OLD | NEW |