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 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1895 } | 1895 } |
1896 } | 1896 } |
1897 layer_bound_to_fullscreen_ = !!fullscreen_container_; | 1897 layer_bound_to_fullscreen_ = !!fullscreen_container_; |
1898 layer_is_hardware_ = want_3d_layer; | 1898 layer_is_hardware_ = want_3d_layer; |
1899 } | 1899 } |
1900 | 1900 |
1901 unsigned PepperPluginInstanceImpl::PrepareTexture() { | 1901 unsigned PepperPluginInstanceImpl::PrepareTexture() { |
1902 return 0; | 1902 return 0; |
1903 } | 1903 } |
1904 | 1904 |
1905 WebKit::WebGraphicsContext3D* PepperPluginInstanceImpl::Context3d() { | 1905 bool PepperPluginInstanceImpl::IsContextLost() { return false; } |
1906 return NULL; | 1906 void PepperPluginInstanceImpl::RateLimitContext() {} |
piman
2013/11/01 23:15:35
nit: NOTREACHED()
| |
1907 } | |
1908 | 1907 |
1909 bool PepperPluginInstanceImpl::PrepareTextureMailbox( | 1908 bool PepperPluginInstanceImpl::PrepareTextureMailbox( |
1910 cc::TextureMailbox* mailbox, | 1909 cc::TextureMailbox* mailbox, |
1911 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 1910 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
1912 bool use_shared_memory) { | 1911 bool use_shared_memory) { |
1913 if (!bound_graphics_2d_platform_) | 1912 if (!bound_graphics_2d_platform_) |
1914 return false; | 1913 return false; |
1915 return bound_graphics_2d_platform_->PrepareTextureMailbox( | 1914 return bound_graphics_2d_platform_->PrepareTextureMailbox( |
1916 mailbox, release_callback); | 1915 mailbox, release_callback); |
1917 } | 1916 } |
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3000 // Running out-of-process. Initiate an IPC call to notify the plugin | 2999 // Running out-of-process. Initiate an IPC call to notify the plugin |
3001 // process. | 3000 // process. |
3002 ppapi::proxy::HostDispatcher* dispatcher = | 3001 ppapi::proxy::HostDispatcher* dispatcher = |
3003 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); | 3002 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); |
3004 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( | 3003 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( |
3005 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); | 3004 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); |
3006 } | 3005 } |
3007 } | 3006 } |
3008 | 3007 |
3009 } // namespace content | 3008 } // namespace content |
OLD | NEW |