| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ppb_graphics_3d_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "gpu/command_buffer/client/gles2_implementation.h" | 9 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 10 #include "ppapi/c/ppp_graphics_3d.h" |
| 10 #include "webkit/plugins/ppapi/plugin_module.h" | 11 #include "webkit/plugins/ppapi/plugin_module.h" |
| 11 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 12 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 12 #include "webkit/plugins/ppapi/resource_helper.h" | 13 #include "webkit/plugins/ppapi/resource_helper.h" |
| 13 | 14 |
| 14 using ppapi::thunk::PPB_Graphics3D_API; | 15 using ppapi::thunk::PPB_Graphics3D_API; |
| 15 | 16 |
| 16 namespace webkit { | 17 namespace webkit { |
| 17 namespace ppapi { | 18 namespace ppapi { |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 const PPP_Graphics3D* ppp_graphics_3d = | 254 const PPP_Graphics3D* ppp_graphics_3d = |
| 254 static_cast<const PPP_Graphics3D*>( | 255 static_cast<const PPP_Graphics3D*>( |
| 255 instance->module()->GetPluginInterface( | 256 instance->module()->GetPluginInterface( |
| 256 PPP_GRAPHICS_3D_INTERFACE)); | 257 PPP_GRAPHICS_3D_INTERFACE)); |
| 257 if (ppp_graphics_3d) | 258 if (ppp_graphics_3d) |
| 258 ppp_graphics_3d->Graphics3DContextLost(pp_instance()); | 259 ppp_graphics_3d->Graphics3DContextLost(pp_instance()); |
| 259 } | 260 } |
| 260 | 261 |
| 261 } // namespace ppapi | 262 } // namespace ppapi |
| 262 } // namespace webkit | 263 } // namespace webkit |
| OLD | NEW |