| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2011 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/mman.h> | 7 #include <sys/mman.h> |
| 8 #include "gpu/command_buffer/common/logging.h" | 8 #include "gpu/command_buffer/common/logging.h" |
| 9 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" | 9 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" |
| 10 #include "native_client/src/shared/ppapi_proxy/utility.h" | 10 #include "native_client/src/shared/ppapi_proxy/utility.h" |
| 11 #include "ppapi/c/ppb_core.h" | 11 #include "ppapi/c/ppb_core.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 gpu::CommandBuffer::State CommandBufferNacl::PpapiToGpuState( | 197 gpu::CommandBuffer::State CommandBufferNacl::PpapiToGpuState( |
| 198 PP_Graphics3DTrustedState s) { | 198 PP_Graphics3DTrustedState s) { |
| 199 gpu::CommandBuffer::State state; | 199 gpu::CommandBuffer::State state; |
| 200 state.num_entries = s.num_entries; | 200 state.num_entries = s.num_entries; |
| 201 state.get_offset = s.get_offset; | 201 state.get_offset = s.get_offset; |
| 202 state.put_offset = s.put_offset; | 202 state.put_offset = s.put_offset; |
| 203 state.token = s.token; | 203 state.token = s.token; |
| 204 state.error = static_cast<gpu::error::Error>(s.error); | 204 state.error = static_cast<gpu::error::Error>(s.error); |
| 205 return state; | 205 return state; |
| 206 } | 206 } |
| OLD | NEW |