diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-07 00:51:01 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-07 00:51:01 +0000 |
commit | 6117b82da99a439a5e2c02acfc320291d1c3abc2 (patch) | |
tree | c4fc666f220604f716b8e291ea8fa5c9766c0846 /ppapi/proxy/resource_creation_proxy.cc | |
parent | cec568d6f1e79bda1362bd5d64f494ccd79e6d08 (diff) | |
download | chromium_src-6117b82da99a439a5e2c02acfc320291d1c3abc2.zip chromium_src-6117b82da99a439a5e2c02acfc320291d1c3abc2.tar.gz chromium_src-6117b82da99a439a5e2c02acfc320291d1c3abc2.tar.bz2 |
Introduce PPB_ResourceArray_Dev.
TEST=test_resource_array.{h,cc}
BUG=None
Review URL: http://codereview.chromium.org/9111008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116789 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/resource_creation_proxy.cc')
-rw-r--r-- | ppapi/proxy/resource_creation_proxy.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ppapi/proxy/resource_creation_proxy.cc b/ppapi/proxy/resource_creation_proxy.cc index e758035..02f2723 100644 --- a/ppapi/proxy/resource_creation_proxy.cc +++ b/ppapi/proxy/resource_creation_proxy.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -35,6 +35,7 @@ #include "ppapi/shared_impl/ppb_audio_config_shared.h" #include "ppapi/shared_impl/ppb_font_shared.h" #include "ppapi/shared_impl/ppb_input_event_shared.h" +#include "ppapi/shared_impl/ppb_resource_array_shared.h" #include "ppapi/shared_impl/ppb_url_request_info_shared.h" #include "ppapi/shared_impl/var.h" #include "ppapi/thunk/enter.h" @@ -246,6 +247,15 @@ PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( return 0; } +PP_Resource ResourceCreationProxy::CreateResourceArray( + PP_Instance instance, + const PP_Resource elements[], + uint32_t size) { + PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( + PPB_ResourceArray_Shared::InitAsProxy(), instance, elements, size); + return object->GetReference(); +} + PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, PP_Bool vertical) { NOTIMPLEMENTED(); // Not proxied yet. |