15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "ppapi/proxy/proxy_array_output.h"
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "base/logging.h"
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace ppapi {
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace proxy {
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// static
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void* ArrayOutputAdapterBase::GetDataBufferThunk(void* user_data,
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)                                                 uint32_t element_count,
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)                                                 uint32_t element_size) {
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  return static_cast<ArrayOutputAdapterBase*>(user_data)->
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      GetDataBuffer(element_count, element_size);
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace proxy
215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace ppapi
22