| OLD | NEW |
| 1 // Copyright (c) 2011 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 "native_client/src/shared/ppapi_proxy/command_buffer_nacl.h" | 5 #include "native_client/src/shared/ppapi_proxy/command_buffer_nacl.h" |
| 6 | 6 |
| 7 #include <sys/types.h> |
| 7 #include <sys/mman.h> | 8 #include <sys/mman.h> |
| 8 #include "gpu/command_buffer/common/logging.h" | 9 #include "gpu/command_buffer/common/logging.h" |
| 9 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" | 10 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" |
| 10 #include "native_client/src/shared/ppapi_proxy/utility.h" | 11 #include "native_client/src/shared/ppapi_proxy/utility.h" |
| 11 #include "ppapi/c/ppb_core.h" | 12 #include "ppapi/c/ppb_core.h" |
| 12 | 13 |
| 13 #include "srpcgen/ppb_rpc.h" | 14 #include "srpcgen/ppb_rpc.h" |
| 14 | 15 |
| 15 using ppapi_proxy::DebugPrintf; | 16 using ppapi_proxy::DebugPrintf; |
| 16 | 17 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 gpu::CommandBuffer::State CommandBufferNacl::PpapiToGpuState( | 186 gpu::CommandBuffer::State CommandBufferNacl::PpapiToGpuState( |
| 186 PP_Graphics3DTrustedState s) { | 187 PP_Graphics3DTrustedState s) { |
| 187 gpu::CommandBuffer::State state; | 188 gpu::CommandBuffer::State state; |
| 188 state.num_entries = s.num_entries; | 189 state.num_entries = s.num_entries; |
| 189 state.get_offset = s.get_offset; | 190 state.get_offset = s.get_offset; |
| 190 state.put_offset = s.put_offset; | 191 state.put_offset = s.put_offset; |
| 191 state.token = s.token; | 192 state.token = s.token; |
| 192 state.error = static_cast<gpu::error::Error>(s.error); | 193 state.error = static_cast<gpu::error::Error>(s.error); |
| 193 return state; | 194 return state; |
| 194 } | 195 } |
| OLD | NEW |