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 "ppapi/proxy/ppb_graphics_3d_proxy.h" | 5 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" |
6 | 6 |
7 #include "gpu/command_buffer/client/gles2_implementation.h" | 7 #include "gpu/command_buffer/client/gles2_implementation.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/proxy/enter_proxy.h" | 9 #include "ppapi/proxy/enter_proxy.h" |
10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { | 401 callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { |
402 } | 402 } |
403 | 403 |
404 PPB_Graphics3D_Proxy::~PPB_Graphics3D_Proxy() { | 404 PPB_Graphics3D_Proxy::~PPB_Graphics3D_Proxy() { |
405 } | 405 } |
406 | 406 |
407 // static | 407 // static |
408 const InterfaceProxy::Info* PPB_Graphics3D_Proxy::GetInfo() { | 408 const InterfaceProxy::Info* PPB_Graphics3D_Proxy::GetInfo() { |
409 static const Info info = { | 409 static const Info info = { |
410 thunk::GetPPB_Graphics3D_Thunk(), | 410 thunk::GetPPB_Graphics3D_Thunk(), |
411 PPB_GRAPHICS_3D_DEV_INTERFACE, | 411 PPB_GRAPHICS_3D_INTERFACE, |
412 INTERFACE_ID_PPB_GRAPHICS_3D, | 412 INTERFACE_ID_PPB_GRAPHICS_3D, |
413 false, | 413 false, |
414 &CreateGraphics3DProxy, | 414 &CreateGraphics3DProxy, |
415 }; | 415 }; |
416 return &info; | 416 return &info; |
417 } | 417 } |
418 | 418 |
419 // static | 419 // static |
420 PP_Resource PPB_Graphics3D_Proxy::CreateProxyResource( | 420 PP_Resource PPB_Graphics3D_Proxy::CreateProxyResource( |
421 PP_Instance instance, | 421 PP_Instance instance, |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 void PPB_Graphics3D_Proxy::SendSwapBuffersACKToPlugin( | 600 void PPB_Graphics3D_Proxy::SendSwapBuffersACKToPlugin( |
601 int32_t result, | 601 int32_t result, |
602 const HostResource& context) { | 602 const HostResource& context) { |
603 dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK( | 603 dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK( |
604 INTERFACE_ID_PPB_GRAPHICS_3D, context, result)); | 604 INTERFACE_ID_PPB_GRAPHICS_3D, context, result)); |
605 } | 605 } |
606 | 606 |
607 } // namespace proxy | 607 } // namespace proxy |
608 } // namespace ppapi | 608 } // namespace ppapi |
609 | 609 |
OLD | NEW |