summaryrefslogtreecommitdiffstats
path: root/ppapi/api/trusted/ppb_image_data_trusted.idl
blob: da942df6b2276b4ef33b350f6a986ef3024af28c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/**
 * This file defines the trusted ImageData interface.
 */

label Chrome {
  M14 = 0.4
};

/** Trusted interface */
[macro="PPB_IMAGEDATA_TRUSTED_INTERFACE"]
interface PPB_ImageDataTrusted {
  /**
   * Returns the internal shared memory pointer associated with the given
   * ImageData resource. Used for proxying. Returns PP_OK on success, or
   * PP_ERROR_* on failure.  On success, the size in bytes of the shared
   * memory region will be placed into |*byte_count|, and the handle for
   * the shared memory in |*handle|.
   */
  int32_t GetSharedMemory(
      [in] PP_Resource image_data,
      [out] handle_t handle,
      [out] uint32_t byte_count);
};