| 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 "content/renderer/pepper/pepper_plugin_instance_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2013 } else { | 2013 } else { |
| 2014 container_->setWebLayer(web_layer_.get()); | 2014 container_->setWebLayer(web_layer_.get()); |
| 2015 texture_layer_->SetContentsOpaque(opaque); | 2015 texture_layer_->SetContentsOpaque(opaque); |
| 2016 } | 2016 } |
| 2017 } | 2017 } |
| 2018 layer_bound_to_fullscreen_ = !!fullscreen_container_; | 2018 layer_bound_to_fullscreen_ = !!fullscreen_container_; |
| 2019 layer_is_hardware_ = want_3d_layer; | 2019 layer_is_hardware_ = want_3d_layer; |
| 2020 UpdateLayerTransform(); | 2020 UpdateLayerTransform(); |
| 2021 } | 2021 } |
| 2022 | 2022 |
| 2023 unsigned PepperPluginInstanceImpl::PrepareTexture() { | |
| 2024 return 0; | |
| 2025 } | |
| 2026 | |
| 2027 bool PepperPluginInstanceImpl::PrepareTextureMailbox( | 2023 bool PepperPluginInstanceImpl::PrepareTextureMailbox( |
| 2028 cc::TextureMailbox* mailbox, | 2024 cc::TextureMailbox* mailbox, |
| 2029 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 2025 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
| 2030 bool use_shared_memory) { | 2026 bool use_shared_memory) { |
| 2031 if (!bound_graphics_2d_platform_) | 2027 if (!bound_graphics_2d_platform_) |
| 2032 return false; | 2028 return false; |
| 2033 return bound_graphics_2d_platform_->PrepareTextureMailbox( | 2029 return bound_graphics_2d_platform_->PrepareTextureMailbox( |
| 2034 mailbox, release_callback); | 2030 mailbox, release_callback); |
| 2035 } | 2031 } |
| 2036 | 2032 |
| (...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3204 // Running out-of-process. Initiate an IPC call to notify the plugin | 3200 // Running out-of-process. Initiate an IPC call to notify the plugin |
| 3205 // process. | 3201 // process. |
| 3206 ppapi::proxy::HostDispatcher* dispatcher = | 3202 ppapi::proxy::HostDispatcher* dispatcher = |
| 3207 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); | 3203 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); |
| 3208 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( | 3204 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( |
| 3209 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); | 3205 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); |
| 3210 } | 3206 } |
| 3211 } | 3207 } |
| 3212 | 3208 |
| 3213 } // namespace content | 3209 } // namespace content |
| OLD | NEW |