| 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 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the trusted ImageData interface. | 7 * This file defines the trusted ImageData interface. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 label Chrome { | 10 label Chrome { |
| 11 M14 = 0.4 | 11 M14 = 0.4 |
| 12 }; | 12 }; |
| 13 | 13 |
| 14 /** Trusted interface */ | 14 /** Trusted interface */ |
| 15 [macro="PPB_IMAGEDATA_TRUSTED_INTERFACE"] | 15 [macro="PPB_IMAGEDATA_TRUSTED_INTERFACE"] |
| 16 interface PPB_ImageDataTrusted { | 16 interface PPB_ImageDataTrusted { |
| 17 /** | 17 /** |
| 18 * Returns the internal shared memory pointer associated with the given | 18 * Returns the internal shared memory pointer associated with the given |
| 19 * ImageData resource. Used for proxying. Returns PP_OK on success, or | 19 * ImageData resource. Used for proxying. Returns PP_OK on success, or |
| 20 * PP_ERROR_* on failure. On success, the size in bytes of the shared | 20 * PP_ERROR_* on failure. On success, the size in bytes of the shared |
| 21 * memory region will be placed into |*byte_count|, and the handle for | 21 * memory region will be placed into |*byte_count|, and the handle for |
| 22 * the shared memory in |*handle|. | 22 * the shared memory in |*handle|. |
| 23 */ | 23 */ |
| 24 int32_t GetSharedMemory( | 24 int32_t GetSharedMemory( |
| 25 [in] PP_Resource image_data, | 25 [in] PP_Resource image_data, |
| 26 [out] handle_t handle, | 26 [out] handle_t handle, |
| 27 [out] uint32_t byte_count); | 27 [out] uint32_t byte_count); |
| 28 }; | 28 }; |
| 29 | 29 |
| OLD | NEW |