| OLD | NEW |
| 1 // Copyright (c) 2012 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 #include "webkit/plugins/ppapi/resource_creation_impl.h" | 5 #include "webkit/plugins/ppapi/resource_creation_impl.h" |
| 6 | 6 |
| 7 #include "ppapi/c/pp_size.h" | 7 #include "ppapi/c/pp_size.h" |
| 8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
| 9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" | 9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" |
| 10 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 10 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 return PPB_Flash_Menu_Impl::Create(instance, menu_data); | 148 return PPB_Flash_Menu_Impl::Create(instance, menu_data); |
| 149 } | 149 } |
| 150 | 150 |
| 151 PP_Resource ResourceCreationImpl::CreateFlashMessageLoop(PP_Instance instance) { | 151 PP_Resource ResourceCreationImpl::CreateFlashMessageLoop(PP_Instance instance) { |
| 152 return PPB_Flash_MessageLoop_Impl::Create(instance); | 152 return PPB_Flash_MessageLoop_Impl::Create(instance); |
| 153 } | 153 } |
| 154 | 154 |
| 155 PP_Resource ResourceCreationImpl::CreateGraphics2D( | 155 PP_Resource ResourceCreationImpl::CreateGraphics2D( |
| 156 PP_Instance instance, | 156 PP_Instance instance, |
| 157 const PP_Size& size, | 157 const PP_Size& size, |
| 158 PP_Bool is_always_opaque) { | 158 PP_Bool is_always_opaque, |
| 159 return PPB_Graphics2D_Impl::Create(instance, size, is_always_opaque); | 159 float scale) { |
| 160 return PPB_Graphics2D_Impl::Create(instance, size, is_always_opaque, |
| 161 scale); |
| 160 } | 162 } |
| 161 | 163 |
| 162 PP_Resource ResourceCreationImpl::CreateGraphics3D( | 164 PP_Resource ResourceCreationImpl::CreateGraphics3D( |
| 163 PP_Instance instance, | 165 PP_Instance instance, |
| 164 PP_Resource share_context, | 166 PP_Resource share_context, |
| 165 const int32_t* attrib_list) { | 167 const int32_t* attrib_list) { |
| 166 return PPB_Graphics3D_Impl::Create(instance, share_context, attrib_list); | 168 return PPB_Graphics3D_Impl::Create(instance, share_context, attrib_list); |
| 167 } | 169 } |
| 168 | 170 |
| 169 PP_Resource ResourceCreationImpl::CreateGraphics3DRaw( | 171 PP_Resource ResourceCreationImpl::CreateGraphics3DRaw( |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 wheel_delta, wheel_ticks, scroll_by_page); | 313 wheel_delta, wheel_ticks, scroll_by_page); |
| 312 } | 314 } |
| 313 | 315 |
| 314 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 316 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
| 315 PP_Instance instance) { | 317 PP_Instance instance) { |
| 316 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 318 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
| 317 } | 319 } |
| 318 | 320 |
| 319 } // namespace ppapi | 321 } // namespace ppapi |
| 320 } // namespace webkit | 322 } // namespace webkit |
| OLD | NEW |