Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. |
|
Nick Bray
2012/09/06 17:11:58
Dito. Bad merge?
bradn
2012/09/06 18:53:16
Done.
| |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include "native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.h" | 7 #include "native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.h" |
| 8 | 8 |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include "native_client/src/shared/ppapi_proxy/ppruntime.h" | 10 #include "native_client/src/shared/ppapi_proxy/ppruntime.h" |
| 11 #include "native_client/src/untrusted/irt/irt.h" | 11 #include "native_client/src/untrusted/irt/irt.h" |
| 12 #include "native_client/src/untrusted/irt/irt_ppapi.h" | 12 #include "native_client/src/untrusted/irt/irt_ppapi.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 real_irt_ppapi_hook.ppapi_register_thread_creator; | 93 real_irt_ppapi_hook.ppapi_register_thread_creator; |
| 94 /* | 94 /* |
| 95 * Copy the interface structure into the client. | 95 * Copy the interface structure into the client. |
| 96 */ | 96 */ |
| 97 if (sizeof ppapi_hook <= tablesize) { | 97 if (sizeof ppapi_hook <= tablesize) { |
| 98 memcpy(table, &ppapi_hook, sizeof ppapi_hook); | 98 memcpy(table, &ppapi_hook, sizeof ppapi_hook); |
| 99 return sizeof ppapi_hook; | 99 return sizeof ppapi_hook; |
| 100 } | 100 } |
| 101 return 0; | 101 return 0; |
| 102 } | 102 } |
| OLD | NEW |